SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle when the JSON from WhatsMyName isn't parsed properly.
smicallef9b66eff6a83f
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.pyindex b037738b..c3154000 100644--- a/modules/sfp_accounts.py+++ b/modules/sfp_accounts.py@@ -77,7 +77,12 @@ class sfp_accounts(SpiderFootPlugin):self.sf.cachePut("sfaccounts", data['content'])content = data['content']- self.sites = json.loads(content)['sites']+ try:+ self.sites = json.loads(content)['sites']+ except BaseException as e:+ self.sf.error("Unable to parse social media accounts list.", False)+ self.errorState = True+ return None# What events is this module interested in for input# * = be notified about all events.