SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Reduce unnecessary queries.
Steve9db5bf30e42c
diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.pyindex 79238bbe..b102ab79 100644--- a/modules/sfp_haveibeenpwned.py+++ b/modules/sfp_haveibeenpwned.py@@ -60,10 +60,10 @@ class sfp_haveibeenpwned(SpiderFootPlugin):time.sleep(1.5)res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=hdrs)-+ if res['code'] == "200":+ breakif res['code'] == "404":return None-if res['code'] == "429":# Back off a little furthertime.sleep(2)