SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
modules: remove False argument from self.sf.error()
Brendan Colesa83d33e08ca4
diff --git a/modules/sfp_abusech.py b/modules/sfp_abusech.pyindex 4d747a2f..739daa25 100644--- a/modules/sfp_abusech.py+++ b/modules/sfp_abusech.py@@ -149,7 +149,7 @@ class sfp_abusech(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_abuseipdb.py b/modules/sfp_abuseipdb.pyindex a36c30f2..1d81360a 100644--- a/modules/sfp_abuseipdb.py+++ b/modules/sfp_abuseipdb.py@@ -278,8 +278,7 @@ class sfp_abuseipdb(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_adblock.py b/modules/sfp_adblock.pyindex f0dfb70a..0d86c771 100644--- a/modules/sfp_adblock.py+++ b/modules/sfp_adblock.py@@ -97,10 +97,10 @@ class sfp_adblock(SpiderFootPlugin):self.rules = adblockparser.AdblockRules(lines)except Exception as e:self.errorState = True- self.sf.error("Parsing error handling AdBlock list: " + str(e), False)+ self.sf.error("Parsing error handling AdBlock list: " + str(e))else:self.errorState = True- self.sf.error("Unable to download AdBlockPlus list: " + self.opts['blocklist'], False)+ self.sf.error("Unable to download AdBlockPlus list: " + self.opts['blocklist'])if "_EXTERNAL" in eventName:pagetype = "_EXTERNAL"@@ -119,7 +119,7 @@ class sfp_adblock(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)except Exception as e:- self.sf.error("Parsing error handling AdBlock list: " + str(e), False)+ self.sf.error("Parsing error handling AdBlock list: " + str(e))self.errorState = Truereturn Nonediff --git a/modules/sfp_alienvaultiprep.py b/modules/sfp_alienvaultiprep.pyindex 9a8e1894..4ebc7d4e 100644--- a/modules/sfp_alienvaultiprep.py+++ b/modules/sfp_alienvaultiprep.py@@ -114,7 +114,7 @@ class sfp_alienvaultiprep(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_badipscom.py b/modules/sfp_badipscom.pyindex 0ad0948e..f979f041 100644--- a/modules/sfp_badipscom.py+++ b/modules/sfp_badipscom.py@@ -79,12 +79,12 @@ class sfp_badipscom(SpiderFootPlugin):data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data["code"] != "200":- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Noneif data["content"] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_bambenek.py b/modules/sfp_bambenek.pyindex 62782bc6..3019d450 100644--- a/modules/sfp_bambenek.py+++ b/modules/sfp_bambenek.py@@ -129,7 +129,7 @@ class sfp_bambenek(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_binaryedge.py b/modules/sfp_binaryedge.pyindex 9af1c78d..1f42eab1 100644--- a/modules/sfp_binaryedge.py+++ b/modules/sfp_binaryedge.py@@ -192,8 +192,7 @@ class sfp_binaryedge(SpiderFootPlugin):if self.opts["binaryedge_api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_blocklistde.py b/modules/sfp_blocklistde.pyindex d1b8c48a..07588af9 100644--- a/modules/sfp_blocklistde.py+++ b/modules/sfp_blocklistde.py@@ -114,7 +114,7 @@ class sfp_blocklistde(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.pyindex 08beb961..99ba66c0 100644--- a/modules/sfp_botscout.py+++ b/modules/sfp_botscout.py@@ -106,7 +106,7 @@ class sfp_botscout(SpiderFootPlugin):timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None or "|" not in res['content']:- self.sf.error("Error encountered processing " + eventData, False)+ self.sf.error("Error encountered processing " + eventData)return Noneif res['content'].startswith("Y|"):diff --git a/modules/sfp_botvrij.py b/modules/sfp_botvrij.pyindex bebf6920..fbd6bc12 100644--- a/modules/sfp_botvrij.py+++ b/modules/sfp_botvrij.py@@ -98,7 +98,7 @@ class sfp_botvrij(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_cinsscore.py b/modules/sfp_cinsscore.pyindex ce2d8df8..d54a9d63 100644--- a/modules/sfp_cinsscore.py+++ b/modules/sfp_cinsscore.py@@ -73,12 +73,12 @@ class sfp_cinsscore(SpiderFootPlugin):data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data["code"] != "200":- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Noneif data["content"] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.pyindex 756b5050..13977742 100644--- a/modules/sfp_circllu.py+++ b/modules/sfp_circllu.py@@ -190,7 +190,7 @@ class sfp_circllu(SpiderFootPlugin):e = SpiderFootEvent("SSL_CERTIFICATE_ISSUED", r[0][0], self.__name__, ipe)self.notifyListeners(e)except Exception as e:- self.sf.error("Invalid response returned from CIRCL.LU: " + str(e), False)+ self.sf.error("Invalid response returned from CIRCL.LU: " + str(e))if eventName in ['IP_ADDRESS', 'INTERNET_NAME', 'DOMAIN_NAME']:ret = self.query(eventData, "PDNS")@@ -205,7 +205,7 @@ class sfp_circllu(SpiderFootPlugin):try:rec = json.loads(line)except Exception as e:- self.sf.error("Invalid response returned from CIRCL.LU: " + str(e), False)+ self.sf.error("Invalid response returned from CIRCL.LU: " + str(e))continueage_limit_ts = int(time.time()) - (86400 * self.opts['age_limit_days'])diff --git a/modules/sfp_cleantalk.py b/modules/sfp_cleantalk.pyindex c3f731af..2391925d 100644--- a/modules/sfp_cleantalk.py+++ b/modules/sfp_cleantalk.py@@ -95,12 +95,12 @@ class sfp_cleantalk(SpiderFootPlugin):data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data["code"] != "200":- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Noneif data["content"] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_coinblocker.py b/modules/sfp_coinblocker.pyindex b8f9ed61..4ce1a080 100644--- a/modules/sfp_coinblocker.py+++ b/modules/sfp_coinblocker.py@@ -127,7 +127,7 @@ class sfp_coinblocker(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneself.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.pyindex e9697c3a..4e123f5a 100644--- a/modules/sfp_commoncrawl.py+++ b/modules/sfp_commoncrawl.py@@ -186,7 +186,7 @@ class sfp_commoncrawl(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)except Exception as e:- self.sf.error("Malformed JSON from CommonCrawl.org: " + str(e), False)+ self.sf.error("Malformed JSON from CommonCrawl.org: " + str(e))return None# End of sfp_commoncrawl classdiff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.pyindex dca98bda..9c974387 100644--- a/modules/sfp_customfeed.py+++ b/modules/sfp_customfeed.py@@ -101,7 +101,7 @@ class sfp_customfeed(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_cybercrimetracker.py b/modules/sfp_cybercrimetracker.pyindex 4d5a5a47..6511af0a 100644--- a/modules/sfp_cybercrimetracker.py+++ b/modules/sfp_cybercrimetracker.py@@ -110,7 +110,7 @@ class sfp_cybercrimetracker(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_dnsraw.py b/modules/sfp_dnsraw.pyindex 7f2f3ae2..0c429544 100644--- a/modules/sfp_dnsraw.py+++ b/modules/sfp_dnsraw.py@@ -110,7 +110,7 @@ class sfp_dnsraw(SpiderFootPlugin):if not len(res.answer):continueexcept Exception as e:- self.sf.error("Failed to obtain DNS response for %s (%s)" % (eventData, e), False)+ self.sf.error("Failed to obtain DNS response for %s (%s)" % (eventData, e))continue# Iterate through DNS answersdiff --git a/modules/sfp_emailrep.py b/modules/sfp_emailrep.pyindex 400e29fb..67ffaa0d 100644--- a/modules/sfp_emailrep.py+++ b/modules/sfp_emailrep.py@@ -93,22 +93,22 @@ class sfp_emailrep(SpiderFootPlugin):return Noneif res['code'] == '400':- self.sf.error('API error: Bad request', False)+ self.sf.error('API error: Bad request')self.errorState = Truereturn Noneif res['code'] == '401':- self.sf.error('API error: Invalid API key', False)+ self.sf.error('API error: Invalid API key')self.errorState = Truereturn Noneif res['code'] == '429':- self.sf.error('API error: Too Many Requests', False)+ self.sf.error('API error: Too Many Requests')self.errorState = Truereturn Noneif res['code'] != '200':- self.sf.error('Unexpected reply from EmailRep.io: ' + res['code'], False)+ self.sf.error('Unexpected reply from EmailRep.io: ' + res['code'])self.errorState = Truereturn Nonediff --git a/modules/sfp_emergingthreats.py b/modules/sfp_emergingthreats.pyindex 85d05c39..afdced9e 100644--- a/modules/sfp_emergingthreats.py+++ b/modules/sfp_emergingthreats.py@@ -88,12 +88,12 @@ class sfp_emergingthreats(SpiderFootPlugin):data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data["code"] != "200":- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Noneif data["content"] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_fortinet.py b/modules/sfp_fortinet.pyindex fe158881..4b3a6193 100644--- a/modules/sfp_fortinet.py+++ b/modules/sfp_fortinet.py@@ -117,7 +117,7 @@ class sfp_fortinet(SpiderFootPlugin):res = self.sf.fetchUrl(url.format(target), timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error("Unable to fetch " + url.format(target), False)+ self.sf.error("Unable to fetch " + url.format(target))return Noneif self.contentMalicious(res['content'], malchecks[check]['goodregex'], malchecks[check]['badregex']):diff --git a/modules/sfp_fsecure_riddler.py b/modules/sfp_fsecure_riddler.pyindex a83da62c..cd062e82 100644--- a/modules/sfp_fsecure_riddler.py+++ b/modules/sfp_fsecure_riddler.py@@ -108,12 +108,12 @@ class sfp_fsecure_riddler(SpiderFootPlugin):try:token = data.get('response').get('user').get('authentication_token')except Exception:- self.sf.error('Login failed', False)+ self.sf.error('Login failed')self.errorState = Truereturn Noneif not token:- self.sf.error('Login failed', False)+ self.sf.error('Login failed')self.errorState = Truereturn None@@ -140,7 +140,7 @@ class sfp_fsecure_riddler(SpiderFootPlugin):time.sleep(1)if res['code'] in ["400", "401", "402", "403"]:- self.sf.error('Unexpected HTTP response code: ' + res['code'], False)+ self.sf.error('Unexpected HTTP response code: ' + res['code'])self.errorState = Truereturn None@@ -178,7 +178,7 @@ class sfp_fsecure_riddler(SpiderFootPlugin):return Noneif self.opts['username'] == '' or self.opts['password'] == '':- self.sf.error('You enabled sfp_fsecure_riddler but did not set an API username/password!', False)+ self.sf.error('You enabled sfp_fsecure_riddler but did not set an API username/password!')self.errorState = Truereturn Nonediff --git a/modules/sfp_fullcontact.py b/modules/sfp_fullcontact.pyindex 6e00baa2..4e8a231c 100644--- a/modules/sfp_fullcontact.py+++ b/modules/sfp_fullcontact.py@@ -169,8 +169,7 @@ class sfp_fullcontact(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_googlemaps.py b/modules/sfp_googlemaps.pyindex a0f539cd..7fb1c7db 100644--- a/modules/sfp_googlemaps.py+++ b/modules/sfp_googlemaps.py@@ -109,8 +109,7 @@ class sfp_googlemaps(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_greensnow.py b/modules/sfp_greensnow.pyindex be9008c2..fb7bbdab 100644--- a/modules/sfp_greensnow.py+++ b/modules/sfp_greensnow.py@@ -87,12 +87,12 @@ class sfp_greensnow(SpiderFootPlugin):data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data["code"] != "200":- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Noneif data["content"] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_hosting.py b/modules/sfp_hosting.pyindex a8c4e61c..a6f10108 100644--- a/modules/sfp_hosting.py+++ b/modules/sfp_hosting.py@@ -63,7 +63,7 @@ class sfp_hosting(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfipcat", data['content'])diff --git a/modules/sfp_hostio.py b/modules/sfp_hostio.pyindex 5b039b2e..502f7283 100644--- a/modules/sfp_hostio.py+++ b/modules/sfp_hostio.py@@ -128,8 +128,7 @@ class sfp_hostio(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.pyindex 99b29b77..f3026c33 100644--- a/modules/sfp_hunter.py+++ b/modules/sfp_hunter.py@@ -105,7 +105,7 @@ class sfp_hunter(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error("Error processing JSON response from hunter.io: %s" % e, False)+ self.sf.error("Error processing JSON response from hunter.io: %s" % e)return Nonereturn retdiff --git a/modules/sfp_hybrid_analysis.py b/modules/sfp_hybrid_analysis.pyindex e79e1e2a..72b2130b 100644--- a/modules/sfp_hybrid_analysis.py+++ b/modules/sfp_hybrid_analysis.py@@ -186,7 +186,7 @@ class sfp_hybrid_analysis(SpiderFootPlugin):# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from Hybrid Analysis: Unexpected response status %s" % res['code'], False)+ self.sf.error("Failed to retrieve content from Hybrid Analysis: Unexpected response status %s" % res['code'])self.errorState = Truereturn Nonediff --git a/modules/sfp_intelx.py b/modules/sfp_intelx.pyindex 553cb538..3d3ee9ed 100644--- a/modules/sfp_intelx.py+++ b/modules/sfp_intelx.py@@ -160,7 +160,7 @@ class sfp_intelx(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error("Error processing JSON response from IntelligenceX: " + str(e), False)+ self.sf.error("Error processing JSON response from IntelligenceX: " + str(e))return Nonestatus = ret['status']diff --git a/modules/sfp_isc.py b/modules/sfp_isc.pyindex 82463c96..7ee4ef8b 100644--- a/modules/sfp_isc.py+++ b/modules/sfp_isc.py@@ -125,7 +125,7 @@ class sfp_isc(SpiderFootPlugin):res = self.sf.fetchUrl(url.format(target), timeout=30, useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error("Unable to fetch " + url.format(target), False)+ self.sf.error("Unable to fetch " + url.format(target))return Noneif self.contentMalicious(res['content'], malchecks[check]['goodregex'], malchecks[check]['badregex']):diff --git a/modules/sfp_malwaredomainlist.py b/modules/sfp_malwaredomainlist.pyindex fdc62ffe..8c772229 100644--- a/modules/sfp_malwaredomainlist.py+++ b/modules/sfp_malwaredomainlist.py@@ -124,7 +124,7 @@ class sfp_malwaredomainlist(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_malwaredomains.py b/modules/sfp_malwaredomains.pyindex 5b596592..88b81480 100644--- a/modules/sfp_malwaredomains.py+++ b/modules/sfp_malwaredomains.py@@ -111,7 +111,7 @@ class sfp_malwaredomains(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_malwarepatrol.py b/modules/sfp_malwarepatrol.pyindex fa85da91..84336dd6 100644--- a/modules/sfp_malwarepatrol.py+++ b/modules/sfp_malwarepatrol.py@@ -86,7 +86,7 @@ class sfp_malwarepatrol(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmalwarepatrol", data['content'])diff --git a/modules/sfp_multiproxy.py b/modules/sfp_multiproxy.pyindex b0869173..1619419d 100644--- a/modules/sfp_multiproxy.py+++ b/modules/sfp_multiproxy.py@@ -110,7 +110,7 @@ class sfp_multiproxy(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_networksdb.py b/modules/sfp_networksdb.pyindex 4296de53..d8c7a7d9 100644--- a/modules/sfp_networksdb.py+++ b/modules/sfp_networksdb.py@@ -243,7 +243,7 @@ class sfp_networksdb(SpiderFootPlugin):self.sf.debug("Received warning from NetworksDB: " + data.get('warning'))if data.get('error'):- self.sf.error("Received error from NetworksDB: " + data.get('error'), False)+ self.sf.error("Received error from NetworksDB: " + data.get('error'))return datadiff --git a/modules/sfp_neutrinoapi.py b/modules/sfp_neutrinoapi.pyindex 934d4159..b4f21918 100644--- a/modules/sfp_neutrinoapi.py+++ b/modules/sfp_neutrinoapi.py@@ -146,7 +146,7 @@ class sfp_neutrinoapi(SpiderFootPlugin):if res['code'] == "400":if data.get('api-error-msg'):- self.sf.error("Error: " + data.get('api-error-msg'), False)+ self.sf.error("Error: " + data.get('api-error-msg'))if "EXCEED" in data.get('api-error-msg'):self.errorState = Truereturn Nonediff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.pyindex fcf2231b..f1d162f5 100644--- a/modules/sfp_numverify.py+++ b/modules/sfp_numverify.py@@ -103,17 +103,17 @@ class sfp_numverify(SpiderFootPlugin):return Noneif res['code'] == '101':- self.sf.error('API error: invalid API key', False)+ self.sf.error('API error: invalid API key')self.errorState = Truereturn Noneif res['code'] == '102':- self.sf.error('API error: user account deactivated', False)+ self.sf.error('API error: user account deactivated')self.errorState = Truereturn Noneif res['code'] == '104':- self.sf.error('API error: usage limit exceeded', False)+ self.sf.error('API error: usage limit exceeded')self.errorState = Truereturn None@@ -124,7 +124,7 @@ class sfp_numverify(SpiderFootPlugin):return Noneif data.get('error') is not None:- self.sf.error('API error: ' + str(data.get('error')), False)+ self.sf.error('API error: ' + str(data.get('error')))return Nonereturn datadiff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.pyindex e11c38a7..82649268 100644--- a/modules/sfp_onioncity.py+++ b/modules/sfp_onioncity.py@@ -130,7 +130,7 @@ class sfp_onioncity(SpiderFootPlugin):)self.notifyListeners(evt)else:- self.sf.error("Failed to fetch Google web search URL", exception=False)+ self.sf.error("Failed to fetch Google web search URL")# Check if we've been asked to stopif self.checkForStop():diff --git a/modules/sfp_onyphe.py b/modules/sfp_onyphe.pyindex d24d84a1..dcc6a169 100644--- a/modules/sfp_onyphe.py+++ b/modules/sfp_onyphe.py@@ -120,8 +120,7 @@ class sfp_onyphe(SpiderFootPlugin):info = json.loads(res["content"])if "status" in info and info["status"] == "nok":self.sf.error(- f"Unexpected error happened while requesting data from Onyphe. Error message: {info.get('text', '')}",- False,+ f"Unexpected error happened while requesting data from Onyphe. Error message: {info.get('text', '')}")self.errorState = Truereturn None@@ -145,8 +144,7 @@ class sfp_onyphe(SpiderFootPlugin):if page > self.opts["max_page"]:self.sf.error(- "Maximum number of pages from options for Onyphe reached.",- False,+ "Maximum number of pages from options for Onyphe reached.")return [info]retarr.append(info)@@ -158,8 +156,7 @@ class sfp_onyphe(SpiderFootPlugin):except ValueError:self.sf.error(- f"Unexpected value for page in response from Onyphe, url: https://www.onyphe.io/api/v2/simple/{endpoint}/{ip}?page={page}",- False,+ f"Unexpected value for page in response from Onyphe, url: https://www.onyphe.io/api/v2/simple/{endpoint}/{ip}?page={page}")self.errorState = Truereturn Nonediff --git a/modules/sfp_open_passive_dns_database.py b/modules/sfp_open_passive_dns_database.pyindex 8390029b..5de467c5 100644--- a/modules/sfp_open_passive_dns_database.py+++ b/modules/sfp_open_passive_dns_database.py@@ -109,7 +109,7 @@ class sfp_open_passive_dns_database(SpiderFootPlugin):continueif len(columns) != 7:- self.sf.error("Unexpected number of columns for row. Expected 7, Found " + str(len(columns)), False)+ self.sf.error("Unexpected number of columns for row. Expected 7, Found " + str(len(columns)))continuedata.append(columns)diff --git a/modules/sfp_openbugbounty.py b/modules/sfp_openbugbounty.pyindex 4b01d34d..6900d9e5 100644--- a/modules/sfp_openbugbounty.py+++ b/modules/sfp_openbugbounty.py@@ -91,7 +91,7 @@ class sfp_openbugbounty(SpiderFootPlugin):if m[1] == qry or m[1].endswith("." + qry):ret.append("From openbugbounty.org: <SFURL>" + base + m[0] + "</SFURL>")except Exception as e:- self.sf.error("Error processing response from openbugbounty.org: " + str(e), False)+ self.sf.error("Error processing response from openbugbounty.org: " + str(e))return Nonereturn retdiff --git a/modules/sfp_openphish.py b/modules/sfp_openphish.pyindex 0b357dec..381fa2f7 100644--- a/modules/sfp_openphish.py+++ b/modules/sfp_openphish.py@@ -109,7 +109,7 @@ class sfp_openphish(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_phishtank.py b/modules/sfp_phishtank.pyindex 36001c34..ef88d3e6 100644--- a/modules/sfp_phishtank.py+++ b/modules/sfp_phishtank.py@@ -105,7 +105,7 @@ class sfp_phishtank(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_recondev.py b/modules/sfp_recondev.pyindex d07016d6..ed8451d9 100644--- a/modules/sfp_recondev.py+++ b/modules/sfp_recondev.py@@ -148,8 +148,7 @@ class sfp_recondev(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.pyindex 1b1e1edb..1e06333c 100644--- a/modules/sfp_riskiq.py+++ b/modules/sfp_riskiq.py@@ -198,7 +198,7 @@ class sfp_riskiq(SpiderFootPlugin):self.__name__, event)self.notifyListeners(e)except Exception as e:- self.sf.error("Invalid response returned from RiskIQ: " + str(e), False)+ self.sf.error("Invalid response returned from RiskIQ: " + str(e))if eventName == 'EMAILADDR':ret = self.query(eventData, "WHOIS")diff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.pyindex 7b3f59d7..dd3f50e3 100644--- a/modules/sfp_securitytrails.py+++ b/modules/sfp_securitytrails.py@@ -141,7 +141,7 @@ class sfp_securitytrails(SpiderFootPlugin):else:return info.get('records', [])except Exception as e:- self.sf.error("Error processing JSON response from SecurityTrails: " + str(e), False)+ self.sf.error("Error processing JSON response from SecurityTrails: " + str(e))return None# Handle events sent to this modulediff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.pyindex 2196df8d..a528d6ce 100644--- a/modules/sfp_socialprofiles.py+++ b/modules/sfp_socialprofiles.py@@ -157,8 +157,7 @@ class sfp_socialprofiles(SpiderFootPlugin):if self.opts["method"].lower() == "yahoo":self.sf.error(- "Yahoo is no longer supported. Please try 'bing' or 'google'.",- False,+ "Yahoo is no longer supported. Please try 'bing' or 'google'.")return Nonediff --git a/modules/sfp_subdomain_takeover.py b/modules/sfp_subdomain_takeover.pyindex 9ad3e68f..c8f9e248 100644--- a/modules/sfp_subdomain_takeover.py+++ b/modules/sfp_subdomain_takeover.py@@ -54,7 +54,7 @@ class sfp_subdomain_takeover(SpiderFootPlugin):res = self.sf.fetchUrl(url, useragent="SpiderFoot")if res['content'] is None:- self.sf.error("Unable to fetch %s" % url, False)+ self.sf.error("Unable to fetch %s" % url)self.errorState = Truereturn Nonediff --git a/modules/sfp_talosintel.py b/modules/sfp_talosintel.pyindex 93aa81c9..df79904b 100644--- a/modules/sfp_talosintel.py+++ b/modules/sfp_talosintel.py@@ -114,7 +114,7 @@ class sfp_talosintel(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex 17f070fa..d26bd36b 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -229,7 +229,6 @@ class sfp_template(SpiderFootPlugin):# Report when unexpected things happen:# - debug(message) if it's only for debugging (user will see this if debugging is enabled)# - info(message) if it's not a bad thing- # - error(message, False) if it's a bad thing but SpiderFoot can continue# - error(message) if it's a bad thing and should cause the scan to abort# - fatal(message) if it's a horrible thing and should kill SpiderFoot completelyif res['content'] is None:diff --git a/modules/sfp_tool_cmseek.py b/modules/sfp_tool_cmseek.pyindex 92f9fbbe..2edcd70d 100644--- a/modules/sfp_tool_cmseek.py+++ b/modules/sfp_tool_cmseek.py@@ -105,7 +105,7 @@ class sfp_tool_cmseek(SpiderFootPlugin):# If tool is not found, abortif not os.path.isfile(exe):- self.sf.error("File does not exist: " + exe, False)+ self.sf.error("File does not exist: " + exe)self.errorState = Truereturn None@@ -135,10 +135,10 @@ class sfp_tool_cmseek(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)except Exception as e:- self.sf.error("Couldn't parse the JSON output of CMSeeK: " + str(e), False)+ self.sf.error("Couldn't parse the JSON output of CMSeeK: " + str(e))return Noneexcept Exception as e:- self.sf.error("Unable to run CMSeeK: " + str(e), False)+ self.sf.error("Unable to run CMSeeK: " + str(e))return None# End of sfp_tool_cmseek classdiff --git a/modules/sfp_tool_dnstwist.py b/modules/sfp_tool_dnstwist.pyindex 09cc5685..61a50dc3 100644--- a/modules/sfp_tool_dnstwist.py+++ b/modules/sfp_tool_dnstwist.py@@ -104,7 +104,7 @@ class sfp_tool_dnstwist(SpiderFootPlugin):# If tool is not found, abortif not os.path.isfile(exe):- self.sf.error("File does not exist: " + exe, False)+ self.sf.error("File does not exist: " + exe)self.errorState = Truereturn None@@ -134,10 +134,10 @@ class sfp_tool_dnstwist(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)except Exception as e:- self.sf.error("Couldn't parse the JSON output of DNSTwist: " + str(e), False)+ self.sf.error("Couldn't parse the JSON output of DNSTwist: " + str(e))return Noneexcept Exception as e:- self.sf.error("Unable to run DNSTwist: " + str(e), False)+ self.sf.error("Unable to run DNSTwist: " + str(e))return None# End of sfp_tool_dnstwist classdiff --git a/modules/sfp_tool_nmap.py b/modules/sfp_tool_nmap.pyindex a354ebab..628b0674 100644--- a/modules/sfp_tool_nmap.py+++ b/modules/sfp_tool_nmap.py@@ -129,7 +129,7 @@ class sfp_tool_nmap(SpiderFootPlugin):# If tool is not found, abortif not os.path.isfile(exe):- self.sf.error("File does not exist: " + exe, False)+ self.sf.error("File does not exist: " + exe)self.errorState = Truereturn None@@ -152,7 +152,7 @@ class sfp_tool_nmap(SpiderFootPlugin):self.sf.debug("Couldn't reliably detect the OS for " + eventData)return Noneexcept Exception as e:- self.sf.error("Unable to run Nmap: " + str(e), False)+ self.sf.error("Unable to run Nmap: " + str(e))return Noneif not content:@@ -169,7 +169,7 @@ class sfp_tool_nmap(SpiderFootPlugin):evt = SpiderFootEvent("OPERATING_SYSTEM", opsys, self.__name__, event)self.notifyListeners(evt)except Exception as e:- self.sf.error("Couldn't parse the output of Nmap: " + str(e), False)+ self.sf.error("Couldn't parse the output of Nmap: " + str(e))return Noneif eventName == "NETBLOCK_OWNER":diff --git a/modules/sfp_tool_whatweb.py b/modules/sfp_tool_whatweb.pyindex 8e445d41..cc2afff5 100644--- a/modules/sfp_tool_whatweb.py+++ b/modules/sfp_tool_whatweb.py@@ -97,7 +97,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):# If tool is not found, abortif not os.path.isfile(exe):- self.sf.error("File does not exist: " + exe, False)+ self.sf.error("File does not exist: " + exe)self.errorState = Truereturn Nonediff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.pyindex 71d0ec53..7f622890 100644--- a/modules/sfp_torexits.py+++ b/modules/sfp_torexits.py@@ -99,7 +99,7 @@ class sfp_torexits(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_totalhash.py b/modules/sfp_totalhash.pyindex 413eead2..7b3aeb6d 100644--- a/modules/sfp_totalhash.py+++ b/modules/sfp_totalhash.py@@ -122,7 +122,7 @@ class sfp_totalhash(SpiderFootPlugin):res = self.sf.fetchUrl(url.format(target), timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error("Unable to fetch " + url.format(target), False)+ self.sf.error("Unable to fetch " + url.format(target))return Noneif self.contentMalicious(res['content'], malchecks[check]['goodregex'], malchecks[check]['badregex']):diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.pyindex ae0b5563..d0af9f15 100644--- a/modules/sfp_virustotal.py+++ b/modules/sfp_virustotal.py@@ -178,8 +178,7 @@ class sfp_virustotal(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- f"You enabled {self.__class__.__name__} but did not set an API key!",- False,+ f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_voipbl.py b/modules/sfp_voipbl.pyindex 27cac8d7..6c6b0a81 100644--- a/modules/sfp_voipbl.py+++ b/modules/sfp_voipbl.py@@ -111,7 +111,7 @@ class sfp_voipbl(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_vxvault.py b/modules/sfp_vxvault.pyindex 965dd759..75bdbae0 100644--- a/modules/sfp_vxvault.py+++ b/modules/sfp_vxvault.py@@ -112,7 +112,7 @@ class sfp_vxvault(SpiderFootPlugin):if data['content'] is None:data = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)return Noneelse:self.sf.cachePut("sfmal_" + cid, data['content'])diff --git a/modules/sfp_watchguard.py b/modules/sfp_watchguard.pyindex 88389fae..eabc47a2 100644--- a/modules/sfp_watchguard.py+++ b/modules/sfp_watchguard.py@@ -114,7 +114,7 @@ class sfp_watchguard(SpiderFootPlugin):res = self.sf.fetchUrl(url.format(target), timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error("Unable to fetch " + url.format(target), False)+ self.sf.error("Unable to fetch " + url.format(target))return Noneif self.contentMalicious(res['content'], malchecks[check]['goodregex'], malchecks[check]['badregex']):diff --git a/modules/sfp_whatcms.py b/modules/sfp_whatcms.pyindex bfe30ecd..51054b8e 100644--- a/modules/sfp_whatcms.py+++ b/modules/sfp_whatcms.py@@ -124,7 +124,7 @@ class sfp_whatcms(SpiderFootPlugin):return Noneif res['code'] != '200':- self.sf.error('Unexpected reply from WhatCMS.org: ' + res['code'], False)+ self.sf.error('Unexpected reply from WhatCMS.org: ' + res['code'])self.errorState = Truereturn None@@ -136,53 +136,53 @@ class sfp_whatcms(SpiderFootPlugin):result = data.get('result')if result is None:- self.sf.error('API error: no results', False)+ self.sf.error('API error: no results')return Nonecode = str(result.get('code'))if code == '0':- self.sf.error('API error: Server failure', False)+ self.sf.error('API error: Server failure')self.errorState = Truereturn Noneif code == '101':- self.sf.error('API error: Invalid API Key', False)+ self.sf.error('API error: Invalid API Key')self.errorState = Truereturn Noneif code == '102':- self.sf.error('API error: Unauthenticated request. Invalid API key?', False)+ self.sf.error('API error: Unauthenticated request. Invalid API key?')self.errorState = Truereturn Noneif code == '111':- self.sf.error('API error: Invalid URL', False)+ self.sf.error('API error: Invalid URL')self.errorState = Truereturn Noneif code == '120':- self.sf.error('API error: Too many requests', False)+ self.sf.error('API error: Too many requests')self.errorState = Truereturn Noneif code == '121':- self.sf.error('API error: You have exceeded your monthly request quota', False)+ self.sf.error('API error: You have exceeded your monthly request quota')self.errorState = Truereturn Noneif code == '123':- self.sf.error('API error: Account disabled per violation of Terms and Conditions', False)+ self.sf.error('API error: Account disabled per violation of Terms and Conditions')self.errorState = Truereturn Noneif code == '201':- self.sf.error('API error: CMS or Host not found', False)+ self.sf.error('API error: CMS or Host not found')self.errorState = Truereturn Noneif code != '200':- self.sf.error('Unexpected status code from WhatCMS.org: ' + code, False)+ self.sf.error('Unexpected status code from WhatCMS.org: ' + code)self.errorState = Truereturn None@@ -198,7 +198,7 @@ class sfp_whatcms(SpiderFootPlugin):return Noneif self.opts['api_key'] == '':- self.sf.error('You enabled sfp_whatcms but did not set an API key!', False)+ self.sf.error('You enabled sfp_whatcms but did not set an API key!')self.errorState = Truereturn Nonediff --git a/modules/sfp_whois.py b/modules/sfp_whois.pyindex 5d00d4e7..2dc1cfa6 100644--- a/modules/sfp_whois.py+++ b/modules/sfp_whois.py@@ -86,10 +86,10 @@ class sfp_whois(SpiderFootPlugin):if whoisdata:data = str(whoisdata)if not data:- self.sf.error("Unable to perform WHOIS on " + eventData, False)+ self.sf.error("Unable to perform WHOIS on " + eventData)return Noneexcept Exception as e:- self.sf.error("Unable to perform WHOIS on " + eventData + ": " + str(e), False)+ self.sf.error("Unable to perform WHOIS on " + eventData + ": " + str(e))return None# This is likely to be an error about being throttled rather than real datadiff --git a/modules/sfp_whoisology.py b/modules/sfp_whoisology.pyindex 8eafa51f..bd3919f4 100644--- a/modules/sfp_whoisology.py+++ b/modules/sfp_whoisology.py@@ -99,7 +99,7 @@ class sfp_whoisology(SpiderFootPlugin):try:info = json.loads(res['content'])if info.get("domains") is None:- self.sf.error("Error querying Whoisology: " + info.get("status_reason", "Unknown"), False)+ self.sf.error("Error querying Whoisology: " + info.get("status_reason", "Unknown"))return Noneif len(info.get("domains", [])) == 0:diff --git a/modules/sfp_whoxy.py b/modules/sfp_whoxy.pyindex f65ebb1e..e742068b 100644--- a/modules/sfp_whoxy.py+++ b/modules/sfp_whoxy.py@@ -102,7 +102,7 @@ class sfp_whoxy(SpiderFootPlugin):try:info = json.loads(res['content'])if info.get("status", 0) == 0:- self.sf.error("Error querying Whoxy: " + info.get("status_reason", "Unknown"), False)+ self.sf.error("Error querying Whoxy: " + info.get("status_reason", "Unknown"))self.errorState = Truereturn Noneif info.get("total_pages", 1) > 1:@@ -119,7 +119,7 @@ class sfp_whoxy(SpiderFootPlugin):else:return info.get('search_result', [])except Exception as e:- self.sf.error("Error processing JSON response from Whoxy: " + str(e), False)+ self.sf.error("Error processing JSON response from Whoxy: " + str(e))return None# Handle events sent to this modulediff --git a/modules/sfp_zoneh.py b/modules/sfp_zoneh.pyindex 9a50f450..f549ce11 100644--- a/modules/sfp_zoneh.py+++ b/modules/sfp_zoneh.py@@ -140,7 +140,7 @@ class sfp_zoneh(SpiderFootPlugin):if content is None:data = self.sf.fetchUrl(url, useragent=self.opts['_useragent'])if data['content'] is None:- self.sf.error("Unable to fetch " + url, False)+ self.sf.error("Unable to fetch " + url)self.errorState = Truereturn Noneelse: