SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Now checks if netblocks contain malicious IPs.
smicallef60970140dcf6
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.pyindex b568878e..814866e8 100644--- a/modules/sfp_malcheck.py+++ b/modules/sfp_malcheck.py@@ -291,9 +291,17 @@ class sfp_malcheck(SpiderFootPlugin):iplist = data['content'].split('\n')for ip in iplist:- if IPAddress(ip) in IPNetwork(target):- sf.debug(ip + " found within netblock " + target + " in " + check)- return url+ if len(ip) < 8 or ip.startswith("#"):+ continue+ ip = ip.strip()++ try:+ if IPAddress(ip) in IPNetwork(target):+ sf.debug(ip + " found within netblock " + target + " in " + check)+ return url+ except Exception as e:+ sf.debug("Error encountered parsing: " + str(e))+ continuereturn None