SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Catch WEB_ANALYTICS_ID parsing errors
bcoles1fe1a0581652
diff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.pyindex d4fb382a..f95e8407 100644--- a/modules/sfp_shodan.py+++ b/modules/sfp_shodan.py@@ -136,8 +136,14 @@ class sfp_shodan(SpiderFootPlugin):self.notifyListeners(evt)if eventName == 'WEB_ANALYTICS_ID':- network = eventData.split(": ")[0]- analytics_id = eventData.split(": ")[1]+ try:+ network = eventData.split(": ")[0]+ analytics_id = eventData.split(": ")[1]+ except BaseException as e:+ self.sf.error("Unable to parse WEB_ANALYTICS_ID: " ++ eventData + " (" + str(e) + ")", False)+ return None+rec = self.searchHtml(analytics_id)if rec is None: