SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
More error handling.
Steve2ca5a0142045
diff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.pyindex 96f6630e..1c811b11 100644--- a/modules/sfp_xforce.py+++ b/modules/sfp_xforce.py@@ -78,8 +78,8 @@ class sfp_xforce(SpiderFootPlugin):url = xforce_url + "/" + querytype + "/" + qryres = self.sf.fetchUrl(url , timeout=self.opts['_fetchtimeout'], useragent="SpiderFoot", headers=headers)- if res['code'] in [ "401", "403", 401, 403 ]:- self.sf.error("XForce API key seems to have been rejected.", False)+ if res['code'] in [ "400", "401", "402", "403", 400, 401, 402, 403 ]:+ self.sf.error("XForce API key seems to have been rejected or you have exceeded usage limits for the month.", False)self.errorState = Truereturn None