SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
If Zone-H is down, don't keep trying.
smicallef1a2fe47f18da
diff --git a/modules/sfp_zoneh.py b/modules/sfp_zoneh.pyindex a5d249d4..2d81ae54 100644--- a/modules/sfp_zoneh.py+++ b/modules/sfp_zoneh.py@@ -35,11 +35,13 @@ class sfp_zoneh(SpiderFootPlugin):# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.- results = list()+ results = dict()+ errorState = Falsedef setup(self, sfc, userOpts=dict()):self.sf = sfc- self.results = list()+ self.results = dict()+ self.errorState = False# Clear / reset any other class member variables here# or you risk them persisting between threads.@@ -79,11 +81,14 @@ class sfp_zoneh(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)+ if self.errorState:+ return None+if eventData in self.results:self.sf.debug("Skipping " + eventData + ", already checked.")return Noneelse:- self.results.append(eventData)+ self.results[eventData] = Trueif eventName == 'CO_HOSTED_SITE' and not self.opts['checkcohosts']:return None@@ -114,6 +119,7 @@ class sfp_zoneh(SpiderFootPlugin):data = self.sf.fetchUrl(url, useragent=self.opts['_useragent'])if data['content'] is None:self.sf.error("Unable to fetch " + url, False)+ self.errorState = Truereturn Noneelse:self.sf.cachePut("sfzoneh", data['content'])