Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fixed phishtank detection bug (regex was too greedy.)

smicallef25e875a859cc
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.py
index 1570d963..9e164667 100644
--- a/modules/sfp_malcheck.py
+++ b/modules/sfp_malcheck.py
@@ -108,7 +108,7 @@ malchecks = {
'type': 'list',
'checks': ['domain'],
'url': 'http://data.phishtank.com/data/online-valid.csv',
- 'regex': '\d+,\w+://[^/]*{0}.*,http://www.phishtank.com/.*'
+ 'regex': '\d+,\w+://(.*\.)?[^a-zA-Z0-9]?{0}.*,http://www.phishtank.com/.*'
},
'malc0de.com List': {
'id': 'malc0de',