SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle parsing errors of accounts JSON.
Steved289bd5469d1
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.pyindex 570792cc..c3827fb5 100644--- a/modules/sfp_accounts.py+++ b/modules/sfp_accounts.py@@ -23,7 +23,7 @@ class sfp_accounts(SpiderFootPlugin):"generic": ["root", "abuse", "sysadm", "sysadmin", "noc", "support", "admin","contact", "help", "flame", "test", "info", "sales", "hostmaster"],"ignoredict": True,- "maxthreads": 50+ "maxthreads": 25}# Option descriptions@@ -93,19 +93,23 @@ class sfp_accounts(SpiderFootPlugin):self.siteResults[retname] = Falsereturn- found = False- if site['account_existence_code']:- if site['account_existence_code'] in [ res['code'], str(res['code']) ]:- found = True- if site['account_missing_code']:- if site['account_missing_code'] in [ res['code'], str(res['code']) ]:- found = False- if site['account_existence_string']:- if site['account_existence_string'] in res['content']:- found = True- if site['account_missing_string']:- if site['account_missing_string'] in res['content']:- found = False+ try:+ found = False+ if site['account_existence_code']:+ if site['account_existence_code'] in [ res['code'], str(res['code']) ]:+ found = True+ if site['account_missing_code']:+ if site['account_missing_code'] in [ res['code'], str(res['code']) ]:+ found = False+ if site['account_existence_string']:+ if site['account_existence_string'] in res['content']:+ found = True+ if site['account_missing_string']:+ if site['account_missing_string'] in res['content']:+ found = False+ except BaseException:+ self.sf.debug("Error parsing configuration: " + str(site))+ found = Falseself.siteResults[retname] = found