SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Better error handling.
Steve7cd575c64e8b
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.pyindex ba80fbe7..ff27c607 100644--- a/modules/sfp_accounts.py+++ b/modules/sfp_accounts.py@@ -43,12 +43,14 @@ class sfp_accounts(SpiderFootPlugin):reportedUsers = list()siteResults = dict()sites = dict()+ errorState = Falsedef setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = dict()self.commonNames = list()self.reportedUsers = list()+ self.errorState = Falseself.__dataSource__ = "Social Media"for opt in userOpts.keys():@@ -63,6 +65,7 @@ class sfp_accounts(SpiderFootPlugin):data = self.sf.fetchUrl(url, useragent="SpiderFoot")if data['content'] is None:self.sf.error("Unable to fetch " + url, False)+ self.errorState = Truereturn Noneelse:self.sf.cachePut("sfaccounts", data['content'])@@ -186,6 +189,9 @@ class sfp_accounts(SpiderFootPlugin):eventData = event.datausers = list()+ if self.errorState:+ return None+self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)if eventData not in self.results.keys():