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 Coles51c0c86283d8
diff --git a/modules/sfp_abuseipdb.py b/modules/sfp_abuseipdb.pyindex 869fed7d..a36c30f2 100644--- a/modules/sfp_abuseipdb.py+++ b/modules/sfp_abuseipdb.py@@ -117,22 +117,22 @@ class sfp_abuseipdb(SpiderFootPlugin):time.sleep(1)if res['code'] == '429':- self.sf.error("You are being rate-limited by AbuseIPDB", False)+ self.sf.error("You are being rate-limited by AbuseIPDB")self.errorState = Truereturn Noneif res['code'] != "200":- self.sf.error(f"Error retrieving search results, code {res['code']}", False)+ self.sf.error(f"Error retrieving search results, code {res['code']}")self.errorState = Truereturn Noneif res['code'] != "200":- self.sf.error("Error retrieving search results from AbuseIPDB", False)+ self.sf.error("Error retrieving search results from AbuseIPDB")self.errorState = Truereturn Noneif res['content'] is None:- self.sf.error("Received no content from AbuseIPDB", False)+ self.sf.error("Received no content from AbuseIPDB")self.errorState = Truereturn None@@ -193,17 +193,17 @@ class sfp_abuseipdb(SpiderFootPlugin):time.sleep(1)if res['code'] == '429':- self.sf.error("You are being rate-limited by AbuseIPDB", False)+ self.sf.error("You are being rate-limited by AbuseIPDB")self.errorState = Truereturn Noneif res['code'] != "200":- self.sf.error("Error retrieving search results from AbuseIPDB", False)+ self.sf.error("Error retrieving search results from AbuseIPDB")self.errorState = Truereturn Noneif res['content'] is None:- self.sf.error("Received no content from AbuseIPDB", False)+ self.sf.error("Received no content from AbuseIPDB")self.errorState = Truereturn None@@ -247,17 +247,17 @@ class sfp_abuseipdb(SpiderFootPlugin):time.sleep(1)if res['code'] == '429':- self.sf.error("You are being rate-limited by AbuseIPDB", False)+ self.sf.error("You are being rate-limited by AbuseIPDB")self.errorState = Truereturn Noneif res['code'] != "200":- self.sf.error("Error retrieving search results from AbuseIPDB", False)+ self.sf.error("Error retrieving search results from AbuseIPDB")self.errorState = Truereturn Noneif res['content'] is None:- self.sf.error("Received no content from AbuseIPDB", False)+ self.sf.error("Received no content from AbuseIPDB")self.errorState = Truereturn Nonediff --git a/modules/sfp_alienvault.py b/modules/sfp_alienvault.pyindex 7b5d0882..c8e54013 100644--- a/modules/sfp_alienvault.py+++ b/modules/sfp_alienvault.py@@ -131,7 +131,7 @@ class sfp_alienvault(SpiderFootPlugin):useragent="SpiderFoot", headers=headers)if res['code'] == "403":- self.sf.error("AlienVault OTX API key seems to have been rejected or you have exceeded usage limits for the month.", False)+ self.sf.error("AlienVault OTX API key seems to have been rejected or you have exceeded usage limits for the month.")self.errorState = Truereturn None@@ -142,7 +142,7 @@ class sfp_alienvault(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from AlienVault OTX: {e}", False)+ self.sf.error(f"Error processing JSON response from AlienVault OTX: {e}")return Nonereturn info@@ -159,7 +159,7 @@ class sfp_alienvault(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_alienvault but did not set an API key/password!", False)+ self.sf.error("You enabled sfp_alienvault but did not set an API key/password!")self.errorState = Truereturn Nonediff --git a/modules/sfp_apility.py b/modules/sfp_apility.pyindex b82ac589..3b6b5f37 100644--- a/modules/sfp_apility.py+++ b/modules/sfp_apility.py@@ -151,7 +151,7 @@ class sfp_apility(SpiderFootPlugin):# https://apility.io/docs/step-4-plans-pricing/# https://apility.io/docs/difference-hits-requests/if res['code'] == "429":- self.sf.error("You are being rate-limited by apility ", False)+ self.sf.error("You are being rate-limited by apility ")self.errorState = Truereturn None@@ -162,7 +162,7 @@ class sfp_apility(SpiderFootPlugin):return Noneif res['content'] == 'Unauthorized':- self.sf.error("Authentication failed", False)+ self.sf.error("Authentication failed")self.errorState = Truereturn None@@ -187,7 +187,7 @@ class sfp_apility(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_apility but did not set an API key!", False)+ self.sf.error("You enabled sfp_apility but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_archiveorg.py b/modules/sfp_archiveorg.pyindex 499901a0..42b3276f 100644--- a/modules/sfp_archiveorg.py+++ b/modules/sfp_archiveorg.py@@ -144,7 +144,7 @@ class sfp_archiveorg(SpiderFootPlugin):useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error(f"Unable to fetch {url}", False)+ self.sf.error(f"Unable to fetch {url}")continuetry:@@ -154,7 +154,7 @@ class sfp_archiveorg(SpiderFootPlugin):ret = Noneif not ret:- self.sf.error("Unable to process empty response from archive.org: {eventData}", False)+ self.sf.error("Unable to process empty response from archive.org: {eventData}")continueif len(ret['archived_snapshots']) < 1:diff --git a/modules/sfp_badpackets.py b/modules/sfp_badpackets.pyindex 801d7c1f..523ecdca 100644--- a/modules/sfp_badpackets.py+++ b/modules/sfp_badpackets.py@@ -123,20 +123,20 @@ class sfp_badpackets(SpiderFootPlugin):# Error codes as mentioned in Bad Packets Documentationif res['code'] == '400':- self.sf.error("Invalid IP Address", False)+ self.sf.error("Invalid IP Address")return Noneif res['code'] == '401':- self.sf.error("Unauthorized API Key", False)+ self.sf.error("Unauthorized API Key")return Noneif res['code'] == '403':- self.sf.error("Forbidden Request", False)+ self.sf.error("Forbidden Request")return None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from Bad Packets", False)+ self.sf.error("Failed to retrieve content from Bad Packets")return None# Always always always process external data with try/except since we cannot@@ -144,7 +144,7 @@ class sfp_badpackets(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from Bad Packets: {e}", False)+ self.sf.error(f"Error processing JSON response from Bad Packets: {e}")return Nonereturn data@@ -163,7 +163,7 @@ class sfp_badpackets(SpiderFootPlugin):# Always check if the API key is set and complain if it isn't, then set# self.errorState to avoid this being a continual complaint during the scan.if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_badpackets but did not set an API key!", False)+ self.sf.error("You enabled sfp_badpackets but did not set an API key!")self.errorState = Truereturn None@@ -242,7 +242,7 @@ class sfp_badpackets(SpiderFootPlugin):maliciousIP = record.get('source_ip_address')if maliciousIP != addr:- self.sf.error("Reported address doesn't match requested, skipping.", False)+ self.sf.error("Reported address doesn't match requested, skipping.")continueif maliciousIP:diff --git a/modules/sfp_binaryedge.py b/modules/sfp_binaryedge.pyindex 90f346f0..9af1c78d 100644--- a/modules/sfp_binaryedge.py+++ b/modules/sfp_binaryedge.py@@ -137,7 +137,7 @@ class sfp_binaryedge(SpiderFootPlugin):elif querytype == "passive":queryurl = "domains/ip"else:- self.sf.error(f"Invalid query type: {querytype}", False)+ self.sf.error(f"Invalid query type: {querytype}")return Noneheaders = {@@ -152,7 +152,7 @@ class sfp_binaryedge(SpiderFootPlugin):)if res['code'] in ["429", "500"]:- self.sf.error("BinaryEdge.io API key seems to have been rejected or you have exceeded usage limits for the month.", False)+ self.sf.error("BinaryEdge.io API key seems to have been rejected or you have exceeded usage limits for the month.")self.errorState = Truereturn None@@ -163,13 +163,13 @@ class sfp_binaryedge(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from BinaryEdge.io: {e}", False)+ self.sf.error(f"Error processing JSON response from BinaryEdge.io: {e}")return Noneif info.get('page') and info['total'] > info.get('pagesize', 100) * info.get('page', 0):page = info['page'] + 1if page > self.opts['maxpages']:- self.sf.error("Maximum number of pages reached.", False)+ self.sf.error("Maximum number of pages reached.")return [info]retarr.append(info)e = self.query(qry, querytype, page)diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.pyindex 0941fbf4..07328e43 100644--- a/modules/sfp_bingsearch.py+++ b/modules/sfp_bingsearch.py@@ -83,7 +83,7 @@ class sfp_bingsearch(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_bingsearch but did not set a Bing API key!", False)+ self.sf.error("You enabled sfp_bingsearch but did not set a Bing API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_bingsharedip.py b/modules/sfp_bingsharedip.pyindex 18a823f8..48e7106b 100644--- a/modules/sfp_bingsharedip.py+++ b/modules/sfp_bingsharedip.py@@ -97,7 +97,7 @@ class sfp_bingsharedip(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "" and self.opts['api_key'] == "":- self.sf.error("You enabled sfp_bingsharedip but did not set a Bing API key!", False)+ self.sf.error("You enabled sfp_bingsharedip but did not set a Bing API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_bitcoinabuse.py b/modules/sfp_bitcoinabuse.pyindex 9860944a..f8a673d9 100644--- a/modules/sfp_bitcoinabuse.py+++ b/modules/sfp_bitcoinabuse.py@@ -88,7 +88,7 @@ class sfp_bitcoinabuse(SpiderFootPlugin):try:info = json.loads(res["content"])except Exception as e:- self.sf.error(f"Error processing JSON response from BitcoinAbuse: {e}", False)+ self.sf.error(f"Error processing JSON response from BitcoinAbuse: {e}")return Nonereturn info@@ -104,7 +104,7 @@ class sfp_bitcoinabuse(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts["api_key"] == "":- self.sf.error("You enabled sfp_bitcoinabuse but did not set an API key!", False)+ self.sf.error("You enabled sfp_bitcoinabuse but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_bitcoinwhoswho.py b/modules/sfp_bitcoinwhoswho.pyindex 0e030892..c20644c3 100644--- a/modules/sfp_bitcoinwhoswho.py+++ b/modules/sfp_bitcoinwhoswho.py@@ -86,9 +86,7 @@ class sfp_bitcoinwhoswho(SpiderFootPlugin):try:info = json.loads(res["content"])except Exception as e:- self.sf.error(- f"Error processing JSON response from {self.meta['name']}: {e}", False- )+ self.sf.error(f"Error processing JSON response from {self.meta['name']}: {e}")return Nonereturn info@@ -117,7 +115,7 @@ class sfp_bitcoinwhoswho(SpiderFootPlugin):self.sf.debug(f"Received event, {event.eventType}, from {event.module}")if self.opts["api_key"] == "":- self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!", False)+ self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.pyindex 1b8327df..08beb961 100644--- a/modules/sfp_botscout.py+++ b/modules/sfp_botscout.py@@ -86,7 +86,7 @@ class sfp_botscout(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_botscout but did not set an API key!", False)+ self.sf.error("You enabled sfp_botscout but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_builtwith.py b/modules/sfp_builtwith.pyindex eaab5729..d04ad801 100644--- a/modules/sfp_builtwith.py+++ b/modules/sfp_builtwith.py@@ -102,7 +102,7 @@ class sfp_builtwith(SpiderFootPlugin):try:return json.loads(res['content'])['Relationships']except Exception as e:- self.sf.error(f"Error processing JSON response from builtwith.com: {e}", False)+ self.sf.error(f"Error processing JSON response from builtwith.com: {e}")return Nonedef queryDomainInfo(self, t):@@ -119,7 +119,7 @@ class sfp_builtwith(SpiderFootPlugin):try:return json.loads(res['content'])['Results'][0]except Exception as e:- self.sf.error(f"Error processing JSON response from builtwith.com: {e}", False)+ self.sf.error(f"Error processing JSON response from builtwith.com: {e}")return None# Handle events sent to this module@@ -134,7 +134,7 @@ class sfp_builtwith(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_builtwith but did not set an API key!", False)+ self.sf.error("You enabled sfp_builtwith but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_c99.py b/modules/sfp_c99.pyindex 15c5a190..8a346749 100644--- a/modules/sfp_c99.py+++ b/modules/sfp_c99.py@@ -95,12 +95,12 @@ class sfp_c99(SpiderFootPlugin):)if res["code"] == "429":- self.sf.error("Reaching rate limit on C99 API", False)+ self.sf.error("Reaching rate limit on C99 API")self.errorState = Truereturn Noneif res["code"] == 400:- self.sf.error("Invalid request or API key on C99 API", False)+ self.sf.error("Invalid request or API key on C99 API")self.errorState = Truereturn None@@ -112,7 +112,7 @@ class sfp_c99(SpiderFootPlugin):info = json.loads(res["content"])except Exception as e:self.errorState = True- self.sf.error(f"Error processing response from C99: {e}", False)+ self.sf.error(f"Error processing response from C99: {e}")return Nonereturn info@@ -375,7 +375,7 @@ class sfp_c99(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts["api_key"] == "":- self.sf.error("You enabled sfp_c99, but did not set an API key!", False)+ self.sf.error("You enabled sfp_c99, but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.pyindex 09378a68..756b5050 100644--- a/modules/sfp_circllu.py+++ b/modules/sfp_circllu.py@@ -118,7 +118,7 @@ class sfp_circllu(SpiderFootPlugin):useragent="SpiderFoot", headers=headers)if res['code'] not in ["200", "201"]:- self.sf.error("CIRCL.LU access seems to have been rejected or you have exceeded usage limits.", False)+ self.sf.error("CIRCL.LU access seems to have been rejected or you have exceeded usage limits.")self.errorState = Truereturn None@@ -146,7 +146,7 @@ class sfp_circllu(SpiderFootPlugin):return Noneif self.opts['api_key_login'] == "" or self.opts['api_key_password'] == "":- self.sf.error("You enabled sfp_circllu but did not set an credentials!", False)+ self.sf.error("You enabled sfp_circllu but did not set an credentials!")self.errorState = Truereturn Nonediff --git a/modules/sfp_clearbit.py b/modules/sfp_clearbit.pyindex 7289629b..ce2b1fbe 100644--- a/modules/sfp_clearbit.py+++ b/modules/sfp_clearbit.py@@ -101,13 +101,13 @@ class sfp_clearbit(SpiderFootPlugin):res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent="SpiderFoot", headers=headers)if res['code'] != "200":- self.sf.error("Return code indicates no results or potential API key failure or exceeded limits.", False)+ self.sf.error("Return code indicates no results or potential API key failure or exceeded limits.")return Nonetry:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from clearbit.io: {e}", False)+ self.sf.error(f"Error processing JSON response from clearbit.io: {e}")return Nonereturn ret@@ -122,7 +122,7 @@ class sfp_clearbit(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_clearbit but did not set an API key!", False)+ self.sf.error("You enabled sfp_clearbit but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.pyindex 6c6cac59..e9697c3a 100644--- a/modules/sfp_commoncrawl.py+++ b/modules/sfp_commoncrawl.py@@ -73,12 +73,12 @@ class sfp_commoncrawl(SpiderFootPlugin):useragent="SpiderFoot")if res['code'] in ["400", "401", "402", "403", "404"]:- self.sf.error("CommonCrawl search doesn't seem to be available.", False)+ self.sf.error("CommonCrawl search doesn't seem to be available.")self.errorState = Truereturn Noneif not res['content']:- self.sf.error("CommonCrawl search doesn't seem to be available.", False)+ self.sf.error("CommonCrawl search doesn't seem to be available.")self.errorState = Truereturn None@@ -92,12 +92,12 @@ class sfp_commoncrawl(SpiderFootPlugin):useragent="SpiderFoot")if res['code'] in ["400", "401", "402", "403", "404"]:- self.sf.error("CommonCrawl index collection doesn't seem to be available.", False)+ self.sf.error("CommonCrawl index collection doesn't seem to be available.")self.errorState = Truereturn list()if not res['content']:- self.sf.error("CommonCrawl index collection doesn't seem to be available.", False)+ self.sf.error("CommonCrawl index collection doesn't seem to be available.")self.errorState = Truereturn list()@@ -110,7 +110,7 @@ class sfp_commoncrawl(SpiderFootPlugin):topindexes = sorted(list(indexlist.keys()), reverse=True)[0:self.opts['indexes']]if len(topindexes) < self.opts['indexes']:- self.sf.error("Not able to find latest CommonCrawl indexes.", False)+ self.sf.error("Not able to find latest CommonCrawl indexes.")self.errorState = Truereturn list()@@ -150,16 +150,16 @@ class sfp_commoncrawl(SpiderFootPlugin):self.indexBase = self.getLatestIndexes()if not self.indexBase:- self.sf.error("Unable to fetch CommonCrawl index.", False)+ self.sf.error("Unable to fetch CommonCrawl index.")return Noneif len(self.indexBase) == 0:- self.sf.error("Unable to fetch CommonCrawl index.", False)+ self.sf.error("Unable to fetch CommonCrawl index.")return Nonedata = self.search(eventData)if not data:- self.sf.error("Unable to obtain content from CommonCrawl.", False)+ self.sf.error("Unable to obtain content from CommonCrawl.")return Nonesent = list()diff --git a/modules/sfp_cookie.py b/modules/sfp_cookie.pyindex 82ecfc5c..ee92bfa6 100644--- a/modules/sfp_cookie.py+++ b/modules/sfp_cookie.py@@ -71,7 +71,7 @@ class sfp_cookie(SpiderFootPlugin):if jdata is None:return Noneexcept Exception:- self.sf.error("Received HTTP headers from another module in an unexpected format.", False)+ self.sf.error("Received HTTP headers from another module in an unexpected format.")return Noneif 'set-cookie' in jdata:diff --git a/modules/sfp_crobat_api.py b/modules/sfp_crobat_api.pyindex 942b13a6..8de13ab7 100644--- a/modules/sfp_crobat_api.py+++ b/modules/sfp_crobat_api.py@@ -80,13 +80,13 @@ class sfp_crobat_api(SpiderFootPlugin):def parseAPIResponse(self, res):# Future proofing - Crobat API does not implement rate limitingif res['code'] == '429':- self.sf.error("You are being rate-limited by Crobat API", False)+ self.sf.error("You are being rate-limited by Crobat API")self.errorState = Truereturn None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from Crobat API", False)+ self.sf.error("Failed to retrieve content from Crobat API")self.errorState = Truereturn None@@ -104,7 +104,7 @@ class sfp_crobat_api(SpiderFootPlugin):return Noneif not isinstance(data, list):- self.sf.error("Failed to retrieve content from Crobat API", False)+ self.sf.error("Failed to retrieve content from Crobat API")return Nonereturn datadiff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.pyindex 9a0efa20..dca98bda 100644--- a/modules/sfp_customfeed.py+++ b/modules/sfp_customfeed.py@@ -183,7 +183,7 @@ class sfp_customfeed(SpiderFootPlugin):return Noneif self.opts['url'] == "":- self.sf.error("You enabled sfp_customfeed but defined no custom feed URL!", False)+ self.sf.error("You enabled sfp_customfeed but defined no custom feed URL!")self.errorState = Truereturn Nonediff --git a/modules/sfp_dnsgrep.py b/modules/sfp_dnsgrep.pyindex aab27cf9..0d52db4e 100644--- a/modules/sfp_dnsgrep.py+++ b/modules/sfp_dnsgrep.py@@ -102,7 +102,7 @@ class sfp_dnsgrep(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from DNSGrep: {e}", False)+ self.sf.error(f"Error processing JSON response from DNSGrep: {e}")return Nonereturn datadiff --git a/modules/sfp_dnsneighbor.py b/modules/sfp_dnsneighbor.pyindex 9f26601e..7c7dcae5 100644--- a/modules/sfp_dnsneighbor.py+++ b/modules/sfp_dnsneighbor.py@@ -81,14 +81,14 @@ class sfp_dnsneighbor(SpiderFootPlugin):try:ip = IPAddress(eventData)except Exception:- self.sf.error(f"Invalid IP address received: {eventData}", False)+ self.sf.error(f"Invalid IP address received: {eventData}")return Nonetry:minip = IPAddress(int(ip) - self.opts['lookasidecount'])maxip = IPAddress(int(ip) + self.opts['lookasidecount'])except Exception:- self.sf.error(f"Received an invalid IP address: {eventData}", False)+ self.sf.error(f"Received an invalid IP address: {eventData}")return Noneself.sf.debug("Lookaside max: " + str(maxip) + ", min: " + str(minip))diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.pyindex 8fc78073..0410e018 100644--- a/modules/sfp_dnsresolve.py+++ b/modules/sfp_dnsresolve.py@@ -201,7 +201,7 @@ class sfp_dnsresolve(SpiderFootPlugin):m = matchself.processHost(m, parentEvent, False)except Exception as e:- self.sf.error(f"Error applying regex to data ({e})", False)+ self.sf.error(f"Error applying regex to data ({e})")offset = data.find(name, start + len(chunkhost))diff --git a/modules/sfp_dnszonexfer.py b/modules/sfp_dnszonexfer.pyindex f5e0d406..30f78134 100644--- a/modules/sfp_dnszonexfer.py+++ b/modules/sfp_dnszonexfer.py@@ -87,7 +87,7 @@ class sfp_dnszonexfer(SpiderFootPlugin):nsip = nbreakelse:- self.sf.error("Couldn't resolve the name server, so not attempting zone transfer.", False)+ self.sf.error("Couldn't resolve the name server, so not attempting zone transfer.")return Noneelse:nsip = eventDatadiff --git a/modules/sfp_duckduckgo.py b/modules/sfp_duckduckgo.pyindex ca0d0600..34ff666e 100644--- a/modules/sfp_duckduckgo.py+++ b/modules/sfp_duckduckgo.py@@ -90,13 +90,13 @@ class sfp_duckduckgo(SpiderFootPlugin):useragent="SpiderFoot")if res['content'] is None:- self.sf.error(f"Unable to fetch {url}", False)+ self.sf.error(f"Unable to fetch {url}")return Nonetry:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from DuckDuckGo: {e}", False)+ self.sf.error(f"Error processing JSON response from DuckDuckGo: {e}")return Noneif not ret['Heading']:diff --git a/modules/sfp_emailcrawlr.py b/modules/sfp_emailcrawlr.pyindex fe829695..6a46beea 100644--- a/modules/sfp_emailcrawlr.py+++ b/modules/sfp_emailcrawlr.py@@ -112,23 +112,23 @@ class sfp_emailcrawlr(SpiderFootPlugin):return Noneif res['code'] == "401":- self.sf.error("Invalid EmailCrawlr API key.", False)+ self.sf.error("Invalid EmailCrawlr API key.")self.errorState = Truereturn Noneif res['code'] == '429':- self.sf.error("You are being rate-limited by EmailCrawlr", False)+ self.sf.error("You are being rate-limited by EmailCrawlr")self.errorState = Truereturn Noneif res['code'] == '503':- self.sf.error("EmailCrawlr service unavailable", False)+ self.sf.error("EmailCrawlr service unavailable")self.errorState = Truereturn None# Catch all other non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from EmailCrawlr", False)+ self.sf.error("Failed to retrieve content from EmailCrawlr")self.errorState = Truereturn None@@ -156,7 +156,7 @@ class sfp_emailcrawlr(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_emailcrawlr but did not set an API key!", False)+ self.sf.error("You enabled sfp_emailcrawlr but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_emailrep.py b/modules/sfp_emailrep.pyindex 93b07215..400e29fb 100644--- a/modules/sfp_emailrep.py+++ b/modules/sfp_emailrep.py@@ -133,7 +133,7 @@ class sfp_emailrep(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == '':- self.sf.error("Warning: You enabled sfp_emailrep but did not set an API key! Queries will be rate limited.", False)+ self.sf.error("Warning: You enabled sfp_emailrep but did not set an API key! Queries will be rate limited.")res = self.query(eventData)diff --git a/modules/sfp_filemeta.py b/modules/sfp_filemeta.pyindex bdc8b419..3ed06397 100644--- a/modules/sfp_filemeta.py+++ b/modules/sfp_filemeta.py@@ -89,13 +89,11 @@ class sfp_filemeta(SpiderFootPlugin):sizeLimit=10000000,verify=False)if ret['content'] is None:- self.sf.error("Unable to fetch file for meta analysis: "- + eventData, False)+ self.sf.error(f"Unable to fetch file for meta analysis: {eventData}")return Noneif len(ret['content']) < 512:- self.sf.error("Strange content encountered, size of "- + str(len(ret['content'])), False)+ self.sf.error(f"Strange content encountered, size of {len(ret['content'])}")return Nonemeta = None@@ -110,8 +108,7 @@ class sfp_filemeta(SpiderFootPlugin):meta = str(data)self.sf.debug("Obtained meta data from " + eventData)except Exception as e:- self.sf.error("Unable to parse meta data from: "- + eventData + "(" + str(e) + ")", False)+ self.sf.error(f"Unable to parse meta data from: {eventData} ({e})")return Noneif fileExt.lower() in ["docx"]:@@ -125,8 +122,7 @@ class sfp_filemeta(SpiderFootPlugin):data = [_f for _f in [a, c] if _f]meta = ", ".join(data)except Exception as e:- self.sf.error("Unable to process file: "- + eventData + "(" + str(e) + ")", False)+ self.sf.error(f"Unable to process file: {eventData} ({e})")return Noneif fileExt.lower() in ["pptx"]:@@ -140,8 +136,7 @@ class sfp_filemeta(SpiderFootPlugin):data = [_f for _f in [a, c] if _f]meta = ", ".join(data)except Exception as e:- self.sf.error("Unable to process file: "- + eventData + "(" + str(e) + ")", False)+ self.sf.error(f"Unable to process file: {eventData} ({e})")return Noneif fileExt.lower() in ["jpg", "jpeg", "tiff"]:@@ -152,8 +147,7 @@ class sfp_filemeta(SpiderFootPlugin):continuemeta = str(data)except Exception as e:- self.sf.error("Unable to parse meta data from: "- + eventData + "(" + str(e) + ")", False)+ self.sf.error(f"Unable to parse meta data from: {eventData} ({e})")return Noneif meta is not None and data is not None:@@ -175,7 +169,7 @@ class sfp_filemeta(SpiderFootPlugin):if "Image Software" in data:val.append(str(data['Image Software']))except Exception as e:- self.sf.error("Failed to parse PDF, " + eventData + ": " + str(e), False)+ self.sf.error("Failed to parse PDF, " + eventData + ": " + str(e))return Nonefor v in val:diff --git a/modules/sfp_flickr.py b/modules/sfp_flickr.pyindex efb5be91..04fa1242 100644--- a/modules/sfp_flickr.py+++ b/modules/sfp_flickr.py@@ -156,7 +156,7 @@ class sfp_flickr(SpiderFootPlugin):api_key = self.retrieveApiKey()if not api_key:- self.sf.error("Failed to obtain API key", False)+ self.sf.error("Failed to obtain API key")return Noneself.sf.debug(f"Retrieved API key: {api_key}")diff --git a/modules/sfp_fraudguard.py b/modules/sfp_fraudguard.pyindex cdbc0ab3..33f567cb 100644--- a/modules/sfp_fraudguard.py+++ b/modules/sfp_fraudguard.py@@ -110,7 +110,7 @@ class sfp_fraudguard(SpiderFootPlugin):useragent="SpiderFoot", headers=headers)if res['code'] in ["400", "429", "500", "403"]:- self.sf.error("Fraudguard.io API key seems to have been rejected or you have exceeded usage limits for the month.", False)+ self.sf.error("Fraudguard.io API key seems to have been rejected or you have exceeded usage limits for the month.")self.errorState = Truereturn None@@ -121,7 +121,7 @@ class sfp_fraudguard(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from Fraudguard.io: {e}", False)+ self.sf.error(f"Error processing JSON response from Fraudguard.io: {e}")return Nonereturn info@@ -138,7 +138,7 @@ class sfp_fraudguard(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['fraudguard_api_key_account'] == "" or self.opts['fraudguard_api_key_password'] == "":- self.sf.error("You enabled sfp_fraudguard but did not set an API username/password!", False)+ self.sf.error("You enabled sfp_fraudguard but did not set an API username/password!")self.errorState = Truereturn Nonediff --git a/modules/sfp_fullcontact.py b/modules/sfp_fullcontact.pyindex 978f032a..6e00baa2 100644--- a/modules/sfp_fullcontact.py+++ b/modules/sfp_fullcontact.py@@ -101,13 +101,13 @@ class sfp_fullcontact(SpiderFootPlugin):)if res['code'] in ["401", "400"]:- self.sf.error("API key rejected by FullContact", False)+ self.sf.error("API key rejected by FullContact")self.errorState = Truereturn Noneif res['code'] == "403":if failcount == 3:- self.sf.error("Throttled or other blocking by FullContact", False)+ self.sf.error("Throttled or other blocking by FullContact")return Nonetime.sleep(2)@@ -115,13 +115,13 @@ class sfp_fullcontact(SpiderFootPlugin):return self.query(url, data, failcount)if not res['content']:- self.sf.error("No content returned from FullContact", False)+ self.sf.error("No content returned from FullContact")return Nonetry:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from FullContact: {e}", False)+ self.sf.error(f"Error processing JSON response from FullContact: {e}")return Noneif "updated" in ret and int(self.opts['max_age_days']) > 0:diff --git a/modules/sfp_github.py b/modules/sfp_github.pyindex 02ce0a28..074476fd 100644--- a/modules/sfp_github.py+++ b/modules/sfp_github.py@@ -102,7 +102,7 @@ class sfp_github(SpiderFootPlugin):network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")except Exception as e:- self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})")return Noneif not network == "Github":@@ -179,7 +179,7 @@ class sfp_github(SpiderFootPlugin):)if res['content'] is None:- self.sf.error(f"Unable to fetch {url}", False)+ self.sf.error(f"Unable to fetch {url}")failed = Trueif not failed:@@ -190,7 +190,7 @@ class sfp_github(SpiderFootPlugin):ret = Noneif ret is None:- self.sf.error(f"Unable to process empty response from Github for: {username}", False)+ self.sf.error(f"Unable to process empty response from Github for: {username}")failed = Trueif not failed:@@ -218,17 +218,17 @@ class sfp_github(SpiderFootPlugin):)if res['content'] is None:- self.sf.error(f"Unable to fetch {url}", False)+ self.sf.error(f"Unable to fetch {url}")failed = Trueif not failed:try:ret = json.loads(res['content'])if ret is None:- self.sf.error(f"Unable to process empty response from Github for: {username}", False)+ self.sf.error(f"Unable to process empty response from Github for: {username}")failed = Trueexcept Exception:- self.sf.error(f"Unable to process invalid response from Github for: {username}", False)+ self.sf.error(f"Unable to process invalid response from Github for: {username}")failed = Trueif not failed:@@ -248,17 +248,17 @@ class sfp_github(SpiderFootPlugin):useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error(f"Unable to fetch {url}", False)+ self.sf.error(f"Unable to fetch {url}")continuetry:repret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Invalid JSON returned from Github: {e}", False)+ self.sf.error(f"Invalid JSON returned from Github: {e}")continueif repret is None:- self.sf.error(f"Unable to process empty response from Github for: {username}", False)+ self.sf.error(f"Unable to process empty response from Github for: {username}")continuefor item in repret:diff --git a/modules/sfp_googlesafebrowsing.py b/modules/sfp_googlesafebrowsing.pyindex 3e70f987..2e7eaa0f 100644--- a/modules/sfp_googlesafebrowsing.py+++ b/modules/sfp_googlesafebrowsing.py@@ -130,26 +130,25 @@ class sfp_googlesafebrowsing(SpiderFootPlugin):)if res["code"] == "400":- self.sf.error("Invalid request payload on Google Safe Browsing API", False)+ self.sf.error("Invalid request payload on Google Safe Browsing API")self.errorState = Truereturn Noneif res["code"] == "429":- self.sf.error("Reaching rate limit on Google Safe Browsing API", False)+ self.sf.error("Reaching rate limit on Google Safe Browsing API")self.errorState = Truereturn Noneif res["code"] == "403":self.sf.error(- "Permission denied, invalid API key on Google Safe Browsing API", False+ "Permission denied, invalid API key on Google Safe Browsing API")self.errorState = Truereturn Noneif res["code"] in ["500", "503", "504"]:self.sf.error(- "Google Safe Browsing API is having some troubles or unavailable.",- False,+ "Google Safe Browsing API is having some troubles or unavailable.")self.errorState = Truereturn None@@ -161,7 +160,7 @@ class sfp_googlesafebrowsing(SpiderFootPlugin):return Noneexcept Exception as e:- self.sf.error(f"Error processing JSON response from SHODAN: {e}", False)+ self.sf.error(f"Error processing JSON response from SHODAN: {e}")return Nonereturn info@@ -178,7 +177,7 @@ class sfp_googlesafebrowsing(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- "You enabled sfp_googlesafebrowsing but did not set an API key!", False+ "You enabled sfp_googlesafebrowsing but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.pyindex ce9345a4..422ddb45 100644--- a/modules/sfp_googlesearch.py+++ b/modules/sfp_googlesearch.py@@ -90,7 +90,7 @@ class sfp_googlesearch(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_googlesearch but did not set a Google API key!", False)+ self.sf.error("You enabled sfp_googlesearch but did not set a Google API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_greynoise.py b/modules/sfp_greynoise.pyindex deed045f..2642257f 100644--- a/modules/sfp_greynoise.py+++ b/modules/sfp_greynoise.py@@ -108,14 +108,14 @@ class sfp_greynoise(SpiderFootPlugin):useragent="SpiderFoot", headers=header)if res['code'] not in ["200"]:- self.sf.error("Greynoise API key seems to have been rejected or you have exceeded usage limits.", False)+ self.sf.error("Greynoise API key seems to have been rejected or you have exceeded usage limits.")self.errorState = Truereturn Nonetry:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from Greynoise: {e}", False)+ self.sf.error(f"Error processing JSON response from Greynoise: {e}")return Nonereturn info@@ -132,7 +132,7 @@ class sfp_greynoise(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_greynoise but did not set an API key!", False)+ self.sf.error("You enabled sfp_greynoise but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_h1nobbdde.py b/modules/sfp_h1nobbdde.pyindex 6e359736..3d2371a9 100644--- a/modules/sfp_h1nobbdde.py+++ b/modules/sfp_h1nobbdde.py@@ -82,7 +82,7 @@ class sfp_h1nobbdde(SpiderFootPlugin):if qry in m[1]:ret.append(m[1] + "\n<SFURL>" + m[0] + "</SFURL>")except Exception as e:- self.sf.error(f"Error processing response from h1.nobbd.de: {e}", False)+ self.sf.error(f"Error processing response from h1.nobbd.de: {e}")return Nonereturn retdiff --git a/modules/sfp_hackertarget.py b/modules/sfp_hackertarget.pyindex 10bf49ea..5f102d9f 100644--- a/modules/sfp_hackertarget.py+++ b/modules/sfp_hackertarget.py@@ -151,7 +151,7 @@ class sfp_hackertarget(SpiderFootPlugin):timeout=self.opts['_fetchtimeout'])if res['content'] is None:- self.sf.error("Unable to fetch HTTP headers for " + ip + " from HackerTarget.com.", False)+ self.sf.error("Unable to fetch HTTP headers for " + ip + " from HackerTarget.com.")return Noneif not res['content'].startswith('HTTP/'):@@ -176,7 +176,7 @@ class sfp_hackertarget(SpiderFootPlugin):timeout=self.opts['_fetchtimeout'])if res['content'] is None:- self.sf.error("Unable to fetch DNS zone for " + ip + " from HackerTarget.com.", False)+ self.sf.error("Unable to fetch DNS zone for " + ip + " from HackerTarget.com.")return Nonerecords = list()@@ -196,7 +196,7 @@ class sfp_hackertarget(SpiderFootPlugin):useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout'])if res['content'] is None:- self.sf.error("Unable to fetch hackertarget.com content.", False)+ self.sf.error("Unable to fetch hackertarget.com content.")return Noneif "No records" in res['content']:diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.pyindex fd517257..7213206a 100644--- a/modules/sfp_haveibeenpwned.py+++ b/modules/sfp_haveibeenpwned.py@@ -104,14 +104,14 @@ class sfp_haveibeenpwned(SpiderFootPlugin):retry += 1if res['code'] == "401":- self.sf.error("Failed to authenticate key with HaveIBeenPwned.com.", False)+ self.sf.error("Failed to authenticate key with HaveIBeenPwned.com.")self.errorState = Truereturn Nonetry:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from HaveIBeenPwned?: {e}", False)+ self.sf.error(f"Error processing JSON response from HaveIBeenPwned?: {e}")return Nonereturn retdiff --git a/modules/sfp_honeypot.py b/modules/sfp_honeypot.pyindex df19719d..16838995 100644--- a/modules/sfp_honeypot.py+++ b/modules/sfp_honeypot.py@@ -182,7 +182,7 @@ class sfp_honeypot(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_honeypot but did not set an API key!", False)+ self.sf.error("You enabled sfp_honeypot but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_hostio.py b/modules/sfp_hostio.pyindex ac14a545..5b039b2e 100644--- a/modules/sfp_hostio.py+++ b/modules/sfp_hostio.py@@ -111,7 +111,7 @@ class sfp_hostio(SpiderFootPlugin):try:info = json.loads(res["content"])except Exception as e:- self.sf.error(f"Error processing JSON response from Host.io: {e}", False)+ self.sf.error(f"Error processing JSON response from Host.io: {e}")return Nonereturn info@@ -141,7 +141,7 @@ class sfp_hostio(SpiderFootPlugin):data = self.query(event.data)if not data:- self.sf.error(f"No data received for {event.data}", False)+ self.sf.error(f"No data received for {event.data}")return Nonefound = Falsediff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.pyindex c8ac47bc..99b29b77 100644--- a/modules/sfp_hunter.py+++ b/modules/sfp_hunter.py@@ -129,7 +129,7 @@ class sfp_hunter(SpiderFootPlugin):self.results[eventData] = Trueif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_hunter but did not set an API key!", False)+ self.sf.error("You enabled sfp_hunter but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_hybrid_analysis.py b/modules/sfp_hybrid_analysis.pyindex 507f2dbd..e79e1e2a 100644--- a/modules/sfp_hybrid_analysis.py+++ b/modules/sfp_hybrid_analysis.py@@ -174,13 +174,13 @@ class sfp_hybrid_analysis(SpiderFootPlugin):"""if res['code'] == '400':- self.sf.error("Failed to retrieve content from Hybrid Analysis: Invalid request", False)+ self.sf.error("Failed to retrieve content from Hybrid Analysis: Invalid request")self.sf.debug("API response: %s" % res['content'])return None# Future proofing - Hybrid Analysis does not implement rate limitingif res['code'] == '429':- self.sf.error("Failed to retrieve content from Hybrid Analysis: rate limit exceeded", False)+ self.sf.error("Failed to retrieve content from Hybrid Analysis: rate limit exceeded")self.errorState = Truereturn Nonediff --git a/modules/sfp_iknowwhatyoudownload.py b/modules/sfp_iknowwhatyoudownload.pyindex 3ee14a20..e1152737 100644--- a/modules/sfp_iknowwhatyoudownload.py+++ b/modules/sfp_iknowwhatyoudownload.py@@ -101,13 +101,13 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from iknowwhatyoudownload.com: {e}", False)+ self.sf.error(f"Error processing JSON response from iknowwhatyoudownload.com: {e}")return Noneif 'error' in ret:if ret['error'] == "INVALID_DAYS":self.errorState = True- self.sf.error("The number of days you have configured is not accepted. If you have the demo key, try 30 days or less.", False)+ self.sf.error("The number of days you have configured is not accepted. If you have the demo key, try 30 days or less.")return Noneif 'contents' not in ret:@@ -134,7 +134,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_iknowwhatyoudownload but did not set an API key!", False)+ self.sf.error("You enabled sfp_iknowwhatyoudownload but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_instagram.py b/modules/sfp_instagram.pyindex 2fbd0153..db800e67 100644--- a/modules/sfp_instagram.py+++ b/modules/sfp_instagram.py@@ -89,7 +89,7 @@ class sfp_instagram(SpiderFootPlugin):network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")except Exception as e:- self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})")return Noneif not network == 'Instagram':diff --git a/modules/sfp_intelx.py b/modules/sfp_intelx.pyindex 3d3ae5c8..553cb538 100644--- a/modules/sfp_intelx.py+++ b/modules/sfp_intelx.py@@ -138,7 +138,7 @@ class sfp_intelx(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from IntelligenceX: {e}", False)+ self.sf.error(f"Error processing JSON response from IntelligenceX: {e}")self.errorState = Truereturn None@@ -186,7 +186,7 @@ class sfp_intelx(SpiderFootPlugin):return Noneif self.opts['api_key'] == "" or self.opts['base_url'] == "":- self.sf.error("You enabled sfp_intelx but did not set an API key and/or base URL!", False)+ self.sf.error("You enabled sfp_intelx but did not set an API key and/or base URL!")self.errorState = Truereturn None@@ -231,7 +231,7 @@ class sfp_intelx(SpiderFootPlugin):self.sf.debug(f"Unexpected record, skipping ({rec['bucket']})")continueexcept Exception as e:- self.sf.error(f"Error processing content from IntelX: {e}", False)+ self.sf.error(f"Error processing content from IntelX: {e}")continue# Notify other modules of what you've found@@ -266,7 +266,7 @@ class sfp_intelx(SpiderFootPlugin):self.sf.debug("Unexpected record, skipping.")continueexcept Exception as e:- self.sf.error(f"Error processing content from IntelX: {e}", False)+ self.sf.error(f"Error processing content from IntelX: {e}")continue# Notify other modules of what you've founddiff --git a/modules/sfp_ipinfo.py b/modules/sfp_ipinfo.pyindex 5efc03b6..e00aaf7c 100644--- a/modules/sfp_ipinfo.py+++ b/modules/sfp_ipinfo.py@@ -84,7 +84,7 @@ class sfp_ipinfo(SpiderFootPlugin):headers=headers)if res['code'] == "429":- self.sf.error("You are being rate-limited by ipinfo.io.", False)+ self.sf.error("You are being rate-limited by ipinfo.io.")self.errorState = Truereturn None@@ -112,7 +112,7 @@ class sfp_ipinfo(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_ipinfo but did not set an API key!", False)+ self.sf.error("You enabled sfp_ipinfo but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_ipregistry.py b/modules/sfp_ipregistry.pyindex b10208a4..eb4b5171 100644--- a/modules/sfp_ipregistry.py+++ b/modules/sfp_ipregistry.py@@ -83,7 +83,7 @@ class sfp_ipregistry(SpiderFootPlugin):info = json.loads(res["content"])except Exception as e:self.sf.error(- f"Error processing JSON response from {self.meta['name']}: {e}", False+ f"Error processing JSON response from {self.meta['name']}: {e}")return None@@ -152,7 +152,7 @@ class sfp_ipregistry(SpiderFootPlugin):self.sf.debug(f"Received event, {event.eventType}, from {event.module}")if self.opts["api_key"] == "":- self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!", False)+ self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_ipstack.py b/modules/sfp_ipstack.pyindex 9c85f714..89eec1ee 100644--- a/modules/sfp_ipstack.py+++ b/modules/sfp_ipstack.py@@ -85,7 +85,7 @@ class sfp_ipstack(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_ipstack but did not set an API key!", False)+ self.sf.error("You enabled sfp_ipstack but did not set an API key!")self.errorState = Truereturn None@@ -104,7 +104,7 @@ class sfp_ipstack(SpiderFootPlugin):try:hostip = json.loads(res['content'])if 'success' in hostip and hostip['success'] is False:- self.sf.error("Invalid ipstack.com API key or usage limits exceeded.", False)+ self.sf.error("Invalid ipstack.com API key or usage limits exceeded.")self.errorState = Truereturn Noneexcept Exception as e:diff --git a/modules/sfp_jsonwhoiscom.py b/modules/sfp_jsonwhoiscom.pyindex 86ecfe73..3a802cde 100644--- a/modules/sfp_jsonwhoiscom.py+++ b/modules/sfp_jsonwhoiscom.py@@ -116,23 +116,23 @@ class sfp_jsonwhoiscom(SpiderFootPlugin):return Noneif res['code'] == "401":- self.sf.error("Invalid JsonWHOIS.com API key.", False)+ self.sf.error("Invalid JsonWHOIS.com API key.")self.errorState = Truereturn Noneif res['code'] == '429':- self.sf.error("You are being rate-limited by JsonWHOIS.com", False)+ self.sf.error("You are being rate-limited by JsonWHOIS.com")self.errorState = Truereturn Noneif res['code'] == '503':- self.sf.error("JsonWHOIS.com service unavailable", False)+ self.sf.error("JsonWHOIS.com service unavailable")self.errorState = Truereturn None# Catch all other non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from JsonWHOIS.com", False)+ self.sf.error("Failed to retrieve content from JsonWHOIS.com")self.errorState = Truereturn None@@ -160,7 +160,7 @@ class sfp_jsonwhoiscom(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_jsonwhoiscom but did not set an API key!", False)+ self.sf.error("You enabled sfp_jsonwhoiscom but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_keybase.py b/modules/sfp_keybase.pyindex 74f4b081..01a91ba5 100644--- a/modules/sfp_keybase.py+++ b/modules/sfp_keybase.py@@ -107,7 +107,7 @@ class sfp_keybase(SpiderFootPlugin):if not int(code) == 0:return Noneexcept Exception:- self.sf.error("Invalid code returned as response", False)+ self.sf.error("Invalid code returned as response")return Nonereturn content@@ -166,7 +166,7 @@ class sfp_keybase(SpiderFootPlugin):try:them = content.get('them')[0]except Exception:- self.sf.error("Invalid data received", False)+ self.sf.error("Invalid data received")them = Noneif them is None:@@ -183,7 +183,7 @@ class sfp_keybase(SpiderFootPlugin):if basics:responseUserName = basics.get('username')if not userName == responseUserName:- self.sf.error("Username does not match received response, skipping", False)+ self.sf.error("Username does not match received response, skipping")return Noneif profile:diff --git a/modules/sfp_leakix.py b/modules/sfp_leakix.pyindex 71b39ca9..26be1d68 100644--- a/modules/sfp_leakix.py+++ b/modules/sfp_leakix.py@@ -95,13 +95,13 @@ class sfp_leakix(SpiderFootPlugin):# Future proofing - LeakIX does not implement rate limitingif res['code'] == '429':- self.sf.error("You are being rate-limited by LeakIX", False)+ self.sf.error("You are being rate-limited by LeakIX")self.errorState = Truereturn None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from LeakIX", False)+ self.sf.error("Failed to retrieve content from LeakIX")self.errorState = Truereturn Nonediff --git a/modules/sfp_maltiverse.py b/modules/sfp_maltiverse.pyindex f3065e37..d44afcf5 100644--- a/modules/sfp_maltiverse.py+++ b/modules/sfp_maltiverse.py@@ -98,11 +98,11 @@ class sfp_maltiverse(SpiderFootPlugin):)if res['code'] == "400":- self.sf.error("Bad request. " + qry + " is not a valid IP Address", False)+ self.sf.error("Bad request. " + qry + " is not a valid IP Address")return Noneif res['code'] == "404":- self.sf.error("API endpoint not found", False)+ self.sf.error("API endpoint not found")return Noneif not res['code'] == "200":@@ -114,7 +114,7 @@ class sfp_maltiverse(SpiderFootPlugin):data = str(res['content']).replace("\\n", " ")return json.loads(data)except Exception:- self.sf.error("Incorrectly formatted data received as JSON response", False)+ self.sf.error("Incorrectly formatted data received as JSON response")return None# Handle events sent to this module@@ -182,7 +182,7 @@ class sfp_maltiverse(SpiderFootPlugin):continueif addr != maliciousIP:- self.sf.error("Reported address doesn't match requested, skipping", False)+ self.sf.error("Reported address doesn't match requested, skipping")continueblacklistedRecords = data.get('blacklist')@@ -213,7 +213,7 @@ class sfp_maltiverse(SpiderFootPlugin):try:lastSeenDate = datetime.strptime(str(lastSeen), "%Y-%m-%d %H:%M:%S")except Exception:- self.sf.error("Invalid date in JSON response, skipping", False)+ self.sf.error("Invalid date in JSON response, skipping")continuetoday = datetime.now()diff --git a/modules/sfp_malwarepatrol.py b/modules/sfp_malwarepatrol.pyindex c0bc6211..fa85da91 100644--- a/modules/sfp_malwarepatrol.py+++ b/modules/sfp_malwarepatrol.py@@ -112,7 +112,7 @@ class sfp_malwarepatrol(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if not self.opts['api_key']:- self.sf.error("You enabled sfp_malwarepatrol but did not provide an receipt ID!", False)+ self.sf.error("You enabled sfp_malwarepatrol but did not provide an receipt ID!")self.errorState = Truereturn Nonediff --git a/modules/sfp_metadefender.py b/modules/sfp_metadefender.pyindex c30da9d0..7d82587b 100644--- a/modules/sfp_metadefender.py+++ b/modules/sfp_metadefender.py@@ -113,14 +113,14 @@ class sfp_metadefender(SpiderFootPlugin):# Parse API responsedef parseApiResponse(self, res):if res['code'] == "401":- self.sf.error("Invalid MetaDefender API key", False)+ self.sf.error("Invalid MetaDefender API key")self.errorState = Truereturn None# https://onlinehelp.opswat.com/mdcloud/3._Rate_Limiting.html# https://onlinehelp.opswat.com/mdcloud/4._Throttling.htmlif res['code'] == "429":- self.sf.error("You are being rate-limited by MetaDefender", False)+ self.sf.error("You are being rate-limited by MetaDefender")self.errorState = Truereturn None@@ -151,7 +151,7 @@ class sfp_metadefender(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_metadefender but did not set an API key!", False)+ self.sf.error("You enabled sfp_metadefender but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_myspace.py b/modules/sfp_myspace.pyindex 9bd9418f..d8406b79 100644--- a/modules/sfp_myspace.py+++ b/modules/sfp_myspace.py@@ -80,7 +80,7 @@ class sfp_myspace(SpiderFootPlugin):useragent=self.opts['_useragent'])if res['content'] is None:- self.sf.error(f"Could not fetch MySpace content for {email}", False)+ self.sf.error(f"Could not fetch MySpace content for {email}")return None# Extract HTML containing potential profile matches@@ -119,8 +119,7 @@ class sfp_myspace(SpiderFootPlugin):network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")except Exception as e:- self.sf.error("Unable to parse SOCIAL_MEDIA: "- + eventData + " (" + str(e) + ")", False)+ self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})")return Noneif network != "MySpace":diff --git a/modules/sfp_networksdb.py b/modules/sfp_networksdb.pyindex 91f17dcf..4296de53 100644--- a/modules/sfp_networksdb.py+++ b/modules/sfp_networksdb.py@@ -221,12 +221,12 @@ class sfp_networksdb(SpiderFootPlugin):def parseApiResponse(self, res):# Future proofing - NetworksDB does not implement rate limitingif res['code'] == '429':- self.sf.error("You are being rate-limited by NetworksDB", False)+ self.sf.error("You are being rate-limited by NetworksDB")self.errorState = Truereturn Noneif res['code'] == '403':- self.sf.error("Authentication failed", False)+ self.sf.error("Authentication failed")self.errorState = Truereturn None@@ -236,7 +236,7 @@ class sfp_networksdb(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from NetworksDB: {e}", False)+ self.sf.error(f"Error processing JSON response from NetworksDB: {e}")return Noneif data.get('warning'):@@ -260,7 +260,7 @@ class sfp_networksdb(SpiderFootPlugin):return Noneif self.opts['api_key'] == '':- self.sf.error("You enabled sfp_networksdb but did not set an API key!", False)+ self.sf.error("You enabled sfp_networksdb but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_neutrinoapi.py b/modules/sfp_neutrinoapi.pyindex a4194969..934d4159 100644--- a/modules/sfp_neutrinoapi.py+++ b/modules/sfp_neutrinoapi.py@@ -131,7 +131,7 @@ class sfp_neutrinoapi(SpiderFootPlugin):# Parse API responsedef parseApiResponse(self, res):if res['code'] == "403":- self.sf.error("Authentication failed", False)+ self.sf.error("Authentication failed")self.errorState = Truereturn None@@ -151,7 +151,7 @@ class sfp_neutrinoapi(SpiderFootPlugin):self.errorState = Truereturn Noneelse:- self.sf.error("Error: HTTP 400", False)+ self.sf.error("Error: HTTP 400")return Nonereturn data@@ -169,12 +169,12 @@ class sfp_neutrinoapi(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_neutrinoapi but did not set an API key!", False)+ self.sf.error("You enabled sfp_neutrinoapi but did not set an API key!")self.errorState = Truereturn Noneif self.opts['user_id'] == "":- self.sf.error("You enabled sfp_neutrinoapi but did not set a user ID!", False)+ self.sf.error("You enabled sfp_neutrinoapi but did not set a user ID!")self.errorState = Truereturn Nonediff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.pyindex 537c685f..fcf2231b 100644--- a/modules/sfp_numverify.py+++ b/modules/sfp_numverify.py@@ -139,7 +139,7 @@ class sfp_numverify(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_numverify but did not set an API key!", False)+ self.sf.error("You enabled sfp_numverify but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.pyindex bfb6e802..e11c38a7 100644--- a/modules/sfp_onioncity.py+++ b/modules/sfp_onioncity.py@@ -86,7 +86,7 @@ class sfp_onioncity(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_onioncity but did not set a Google API key!", False)+ self.sf.error("You enabled sfp_onioncity but did not set a Google API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_onyphe.py b/modules/sfp_onyphe.pyindex 85780d79..d24d84a1 100644--- a/modules/sfp_onyphe.py+++ b/modules/sfp_onyphe.py@@ -107,12 +107,12 @@ class sfp_onyphe(SpiderFootPlugin):)if res["code"] == "429":- self.sf.error("Reaching rate limit on Onyphe API", False)+ self.sf.error("Reaching rate limit on Onyphe API")self.errorState = Truereturn Noneif res["code"] == 400:- self.sf.error("Invalid request or API key on Onyphe", False)+ self.sf.error("Invalid request or API key on Onyphe")self.errorState = Truereturn None@@ -130,7 +130,7 @@ class sfp_onyphe(SpiderFootPlugin):return Noneexcept Exception as e:self.sf.debug(f"{e.__class__} {res['code']} {res['content']}")- self.sf.error("Error processing JSON response from Onyphe.", False)+ self.sf.error("Error processing JSON response from Onyphe.")return None# Go through other pages if user has paid plan@@ -229,7 +229,7 @@ class sfp_onyphe(SpiderFootPlugin):self.sf.debug("Received event, %s, from %s" % (eventName, srcModuleName))if self.opts["api_key"] == "":- self.sf.error("You enabled sfp_onyphe, but did not set an API key!", False)+ self.sf.error("You enabled sfp_onyphe, but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_opencorporates.py b/modules/sfp_opencorporates.pyindex 242f8c02..b10f1787 100644--- a/modules/sfp_opencorporates.py+++ b/modules/sfp_opencorporates.py@@ -95,11 +95,11 @@ class sfp_opencorporates(SpiderFootPlugin):)if res['code'] == "401":- self.sf.error("Invalid OpenCorporates API key.", False)+ self.sf.error("Invalid OpenCorporates API key.")return Noneif res['code'] == "403":- self.sf.error("You are being rate-limited by OpenCorporates.", False)+ self.sf.error("You are being rate-limited by OpenCorporates.")return Nonetry:@@ -126,11 +126,11 @@ class sfp_opencorporates(SpiderFootPlugin):)if res['code'] == "401":- self.sf.error("Invalid OpenCorporates API key.", False)+ self.sf.error("Invalid OpenCorporates API key.")return Noneif res['code'] == "403":- self.sf.error("You are being rate-limited by OpenCorporates.", False)+ self.sf.error("You are being rate-limited by OpenCorporates.")return Nonetry:diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.pyindex 25bcd2da..a344e7ab 100644--- a/modules/sfp_pastebin.py+++ b/modules/sfp_pastebin.py@@ -91,7 +91,7 @@ class sfp_pastebin(SpiderFootPlugin):return Noneif self.opts['api_key'] == "":- self.sf.error("You enabled sfp_pastebin but did not set a Google API key!", False)+ self.sf.error("You enabled sfp_pastebin but did not set a Google API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_phishstats.py b/modules/sfp_phishstats.pyindex 664781d6..b981a6e2 100644--- a/modules/sfp_phishstats.py+++ b/modules/sfp_phishstats.py@@ -113,7 +113,7 @@ class sfp_phishstats(SpiderFootPlugin):try:return json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response: {e}", False)+ self.sf.error(f"Error processing JSON response: {e}")return None# Handle events sent to this module@@ -185,7 +185,7 @@ class sfp_phishstats(SpiderFootPlugin):continueif addr != maliciousIP:- self.sf.error("Reported address doesn't match requested, skipping", False)+ self.sf.error("Reported address doesn't match requested, skipping")continue# Data is reported about the IP Addressdiff --git a/modules/sfp_portscan_tcp.py b/modules/sfp_portscan_tcp.pyindex 5b314348..cb385a47 100644--- a/modules/sfp_portscan_tcp.py+++ b/modules/sfp_portscan_tcp.py@@ -173,7 +173,7 @@ class sfp_portscan_tcp(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if not self.portlist:- self.sf.error('No ports specified in port list', False)+ self.sf.error('No ports specified in port list')self.errorState = Truereturn None@@ -194,8 +194,7 @@ class sfp_portscan_tcp(SpiderFootPlugin):else:scanIps.append(eventData)except Exception as e:- self.sf.error("Strange netblock identified, unable to parse: "- + eventData + " (" + str(e) + ")", False)+ self.sf.error("Strange netblock identified, unable to parse: " + eventData + " (" + str(e) + ")")return Nonefor ipAddr in scanIps:diff --git a/modules/sfp_projectdiscovery.py b/modules/sfp_projectdiscovery.pyindex 99d235ae..7412b0d7 100644--- a/modules/sfp_projectdiscovery.py+++ b/modules/sfp_projectdiscovery.py@@ -87,8 +87,7 @@ class sfp_projectdiscovery(SpiderFootPlugin):info = json.loads(res["content"])except json.JSONDecodeError as e:self.sf.error(- f"Error processing JSON response from Chaos projectdiscovery: {e}",- False,+ f"Error processing JSON response from Chaos projectdiscovery: {e}")return None@@ -108,7 +107,7 @@ class sfp_projectdiscovery(SpiderFootPlugin):if self.opts["api_key"] == "":self.sf.error(- "You enabled sfp_projectdiscovery but did not set an API key!", False+ "You enabled sfp_projectdiscovery but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_psbdmp.py b/modules/sfp_psbdmp.pyindex 53cea2b1..dd724b0e 100644--- a/modules/sfp_psbdmp.py+++ b/modules/sfp_psbdmp.py@@ -76,7 +76,7 @@ class sfp_psbdmp(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from psbdmp.cc: {e}", False)+ self.sf.error(f"Error processing JSON response from psbdmp.cc: {e}")return Noneids = list()diff --git a/modules/sfp_pulsedive.py b/modules/sfp_pulsedive.pyindex 8c5b310f..b1c06f76 100644--- a/modules/sfp_pulsedive.py+++ b/modules/sfp_pulsedive.py@@ -113,7 +113,7 @@ class sfp_pulsedive(SpiderFootPlugin):time.sleep(self.opts['delay'])if res['code'] == "403":- self.sf.error("Pulsedive API key seems to have been rejected or you have exceeded usage limits for the month.", False)+ self.sf.error("Pulsedive API key seems to have been rejected or you have exceeded usage limits for the month.")self.errorState = Truereturn None@@ -123,7 +123,7 @@ class sfp_pulsedive(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from Pulsedive: {e}", False)+ self.sf.error(f"Error processing JSON response from Pulsedive: {e}")return Nonereturn info@@ -140,7 +140,7 @@ class sfp_pulsedive(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_pulsedive but did not set an API key!", False)+ self.sf.error("You enabled sfp_pulsedive but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_recondev.py b/modules/sfp_recondev.pyindex c5b4e242..d07016d6 100644--- a/modules/sfp_recondev.py+++ b/modules/sfp_recondev.py@@ -96,18 +96,18 @@ class sfp_recondev(SpiderFootPlugin):def parseAPIResponse(self, res):# Future proofing - recon.dev does not implement rate limitingif res['code'] == '429':- self.sf.error("You are being rate-limited by Recon.dev", False)+ self.sf.error("You are being rate-limited by Recon.dev")self.errorState = Truereturn Noneif res['code'] == '500':- self.sf.error("Error during request from either an inproper domain/API key or you have used up all your API credits for the month", False)+ self.sf.error("Error during request from either an inproper domain/API key or you have used up all your API credits for the month")self.errorState = Truereturn None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from Recon.dev", False)+ self.sf.error("Failed to retrieve content from Recon.dev")self.errorState = Truereturn None@@ -122,7 +122,7 @@ class sfp_recondev(SpiderFootPlugin):# returns list of results; 'null' when no results; or dict when there's an errorif not isinstance(data, list):- self.sf.error("Failed to retrieve content from Recon.dev", False)+ self.sf.error("Failed to retrieve content from Recon.dev")if isinstance(data, dict) and data.get('message'):self.sf.debug(f"Failed to retrieve content from Recon.dev: {data.get('message')}")diff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.pyindex ec12430a..1b1e1edb 100644--- a/modules/sfp_riskiq.py+++ b/modules/sfp_riskiq.py@@ -129,7 +129,7 @@ class sfp_riskiq(SpiderFootPlugin):postData=post)if res['code'] in ["400", "429", "500", "403"]:- self.sf.error("RiskIQ access seems to have been rejected or you have exceeded usage limits.", False)+ self.sf.error("RiskIQ access seems to have been rejected or you have exceeded usage limits.")self.errorState = Truereturn None@@ -143,7 +143,7 @@ class sfp_riskiq(SpiderFootPlugin):self.sf.info("No RiskIQ info found for " + qry)return Noneexcept Exception as e:- self.sf.error(f"Invalid JSON returned by RiskIQ: {e}", False)+ self.sf.error(f"Invalid JSON returned by RiskIQ: {e}")return Nonereturn ret['results']@@ -166,7 +166,7 @@ class sfp_riskiq(SpiderFootPlugin):return Noneif self.opts['api_key_login'] == "" or self.opts['api_key_password'] == "":- self.sf.error("You enabled sfp_riskiq but did not set an credentials!", False)+ self.sf.error("You enabled sfp_riskiq but did not set an credentials!")self.errorState = Truereturn Nonediff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.pyindex ec0e97a5..da1d9f19 100644--- a/modules/sfp_robtex.py+++ b/modules/sfp_robtex.py@@ -155,14 +155,14 @@ class sfp_robtex(SpiderFootPlugin):retry += 1if res['content'] is None:- self.sf.error("Unable to query robtex API.", False)+ self.sf.error("Unable to query robtex API.")retry += 1continuetry:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error parsing JSON from Robtex API: {e}", False)+ self.sf.error(f"Error parsing JSON from Robtex API: {e}")return Nonepas = data.get('pas')diff --git a/modules/sfp_scylla.py b/modules/sfp_scylla.pyindex 108aef32..e30ec2d7 100644--- a/modules/sfp_scylla.py+++ b/modules/sfp_scylla.py@@ -99,7 +99,7 @@ class sfp_scylla(SpiderFootPlugin):time.sleep(self.opts['pause'])if res['code'] != "200":- self.sf.error("Syclla.sh is having problems.", False)+ self.sf.error("Syclla.sh is having problems.")self.errorState = Truereturn Nonediff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.pyindex 2ecb8afc..7b3f59d7 100644--- a/modules/sfp_securitytrails.py+++ b/modules/sfp_securitytrails.py@@ -113,7 +113,7 @@ class sfp_securitytrails(SpiderFootPlugin):postData=request)if res['code'] in ["400", "429", "500", "403"]:- self.sf.error("SecurityTrails API key seems to have been rejected or you have exceeded usage limits for the month.", False)+ self.sf.error("SecurityTrails API key seems to have been rejected or you have exceeded usage limits for the month.")self.errorState = Truereturn None@@ -156,7 +156,7 @@ class sfp_securitytrails(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_securitytrails but did not set an API uid/secret!", False)+ self.sf.error("You enabled sfp_securitytrails but did not set an API uid/secret!")self.errorState = Truereturn Nonediff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.pyindex 395cc730..35c46ed3 100644--- a/modules/sfp_shodan.py+++ b/modules/sfp_shodan.py@@ -100,7 +100,7 @@ class sfp_shodan(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from SHODAN: {e}", False)+ self.sf.error(f"Error processing JSON response from SHODAN: {e}")return Nonereturn info@@ -117,7 +117,7 @@ class sfp_shodan(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from SHODAN: {e}", False)+ self.sf.error(f"Error processing JSON response from SHODAN: {e}")return Nonereturn info@@ -138,7 +138,7 @@ class sfp_shodan(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from SHODAN: {e}", False)+ self.sf.error(f"Error processing JSON response from SHODAN: {e}")return Nonereturn info@@ -155,7 +155,7 @@ class sfp_shodan(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_shodan but did not set an API key!", False)+ self.sf.error("You enabled sfp_shodan but did not set an API key!")self.errorState = Truereturn None@@ -179,7 +179,7 @@ class sfp_shodan(SpiderFootPlugin):network = eventData.split(": ")[0]analytics_id = eventData.split(": ")[1]except Exception as e:- self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})")return Noneif network not in ['Google AdSense', 'Google Analytics', 'Google Site Verification']:diff --git a/modules/sfp_slideshare.py b/modules/sfp_slideshare.pyindex 72a8ce61..966df331 100644--- a/modules/sfp_slideshare.py+++ b/modules/sfp_slideshare.py@@ -84,7 +84,7 @@ class sfp_slideshare(SpiderFootPlugin):network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")except Exception as e:- self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})")return Noneif not network == "SlideShare":diff --git a/modules/sfp_snov.py b/modules/sfp_snov.pyindex 6d547699..a61140dc 100644--- a/modules/sfp_snov.py+++ b/modules/sfp_snov.py@@ -100,7 +100,7 @@ class sfp_snov(SpiderFootPlugin):)if not res['code'] == '200':- self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret", False)+ self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret")self.errorState = Truereturn Nonetry:@@ -109,12 +109,12 @@ class sfp_snov(SpiderFootPlugin):accessToken = json.loads(content).get('access_token')if accessToken is None:- self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret", False)+ self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret")return Nonereturn str(accessToken)except Exception:- self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret", False)+ self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret")self.errorState = Truereturn None@@ -159,7 +159,7 @@ class sfp_snov(SpiderFootPlugin):# Always check if the API key is set and complain if it isn't, then set# self.errorState to avoid this being a continual complaint during the scan.if self.opts['api_key_client_id'] == "" or self.opts['api_key_client_secret'] == "":- self.sf.error("You enabled sfp_snov but did not set a Client ID and/or Client Secret", False)+ self.sf.error("You enabled sfp_snov but did not set a Client ID and/or Client Secret")self.errorState = Truereturn None@@ -173,7 +173,7 @@ class sfp_snov(SpiderFootPlugin):# Get access token from Snov IO APIaccessToken = self.queryAccessToken()if accessToken is None or accessToken == '':- self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret", False)+ self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret")self.errorState = Truereturn Nonediff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.pyindex 74bf4901..2196df8d 100644--- a/modules/sfp_socialprofiles.py+++ b/modules/sfp_socialprofiles.py@@ -132,7 +132,7 @@ class sfp_socialprofiles(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['google_api_key'] == "" and self.opts['bing_api_key'] == "":- self.sf.error("You enabled sfp_socialprofiles but did not set a Google or Bing API key!", False)+ self.sf.error("You enabled sfp_socialprofiles but did not set a Google or Bing API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_spider.py b/modules/sfp_spider.pyindex a9164e84..57adf0c3 100644--- a/modules/sfp_spider.py+++ b/modules/sfp_spider.py@@ -116,7 +116,7 @@ class sfp_spider(SpiderFootPlugin):if url not in self.urlEvents:# TODO: be more descriptive- self.sf.error("Something strange happened - shouldn't get here: url not in self.urlEvents", False)+ self.sf.error("Something strange happened - shouldn't get here: url not in self.urlEvents")self.urlEvents[url] = None# Notify modules about the content obtaineddiff --git a/modules/sfp_spur.py b/modules/sfp_spur.pyindex 6d6b62e7..bcc858fa 100644--- a/modules/sfp_spur.py+++ b/modules/sfp_spur.py@@ -117,7 +117,7 @@ class sfp_spur(SpiderFootPlugin):code = res.get('code')if code == '403':- self.sf.error("Invalid credentials. Please check API Token", False)+ self.sf.error("Invalid credentials. Please check API Token")self.errorState = Truereturn None@@ -126,7 +126,7 @@ class sfp_spur(SpiderFootPlugin):return Noneif not code == '200':- self.sf.error("Unable to fetch data from spur.us", False)+ self.sf.error("Unable to fetch data from spur.us")return Nonecontent = res.get('content')@@ -146,7 +146,7 @@ class sfp_spur(SpiderFootPlugin):# Always check if the API key is set and complain if it isn't, then set# self.errorState to avoid this being a continual complaint during the scan.if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_spur but did not set an API key!", False)+ self.sf.error("You enabled sfp_spur but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_spyonweb.py b/modules/sfp_spyonweb.pyindex 5c5f6c96..72021863 100644--- a/modules/sfp_spyonweb.py+++ b/modules/sfp_spyonweb.py@@ -205,7 +205,7 @@ class sfp_spyonweb(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_spyonweb but did not set an API key!", False)+ self.sf.error("You enabled sfp_spyonweb but did not set an API key!")self.errorState = Truereturn None@@ -239,7 +239,7 @@ class sfp_spyonweb(SpiderFootPlugin):network = eventData.split(": ")[0]analytics_id = eventData.split(": ")[1]except Exception as e:- self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})")return Nonedata = dict()diff --git a/modules/sfp_spyse.py b/modules/sfp_spyse.pyindex 6353fc9a..49c581a4 100644--- a/modules/sfp_spyse.py+++ b/modules/sfp_spyse.py@@ -247,28 +247,28 @@ class sfp_spyse(SpiderFootPlugin):"""if res['code'] == '400':- self.sf.error("Malformed request", False)+ self.sf.error("Malformed request")return Noneif res['code'] == '402':- self.sf.error("Request limit exceeded", False)+ self.sf.error("Request limit exceeded")self.errorState = Truereturn Noneif res['code'] == '403':- self.sf.error("Authentication failed", False)+ self.sf.error("Authentication failed")self.errorState = Truereturn None# Future proofing - Spyse does not implement rate limitingif res['code'] == '429':- self.sf.error("You are being rate-limited by Spyse", False)+ self.sf.error("You are being rate-limited by Spyse")self.errorState = Truereturn None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from Spyse", False)+ self.sf.error("Failed to retrieve content from Spyse")self.errorState = Truereturn None@@ -311,7 +311,7 @@ class sfp_spyse(SpiderFootPlugin):return Noneif self.opts['api_key'] == '':- self.sf.error("You enabled sfp_spyse but did not set an API key!", False)+ self.sf.error("You enabled sfp_spyse but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_strangeheaders.py b/modules/sfp_strangeheaders.pyindex 8cf79dfd..75bdae9a 100644--- a/modules/sfp_strangeheaders.py+++ b/modules/sfp_strangeheaders.py@@ -82,7 +82,7 @@ class sfp_strangeheaders(SpiderFootPlugin):if jdata is None:return Noneexcept Exception:- self.sf.error("Received HTTP headers from another module in an unexpected format.", False)+ self.sf.error("Received HTTP headers from another module in an unexpected format.")return Nonefor key in jdata:diff --git a/modules/sfp_subdomain_takeover.py b/modules/sfp_subdomain_takeover.pyindex 600e2239..9ad3e68f 100644--- a/modules/sfp_subdomain_takeover.py+++ b/modules/sfp_subdomain_takeover.py@@ -64,7 +64,7 @@ class sfp_subdomain_takeover(SpiderFootPlugin):try:self.fingerprints = json.loads(content)except Exception as e:- self.sf.error(f"Unable to parse subdomain takeover fingerprints list: {e}", False)+ self.sf.error(f"Unable to parse subdomain takeover fingerprints list: {e}")self.errorState = Truereturn Nonediff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex cf3efc86..17f070fa 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -241,7 +241,7 @@ class sfp_template(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from SHODAN: {e}", False)+ self.sf.error(f"Error processing JSON response from SHODAN: {e}")return Nonereturn info@@ -273,7 +273,7 @@ class sfp_template(SpiderFootPlugin):# Always check if the API key is set and complain if it isn't, then set# self.errorState to avoid this being a continual complaint during the scan.if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_template but did not set an API key!", False)+ self.sf.error("You enabled sfp_template but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_threatcrowd.py b/modules/sfp_threatcrowd.pyindex 4dd0d382..b47660c0 100644--- a/modules/sfp_threatcrowd.py+++ b/modules/sfp_threatcrowd.py@@ -111,7 +111,7 @@ class sfp_threatcrowd(SpiderFootPlugin):try:ret = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from ThreatCrowd: {e}", False)+ self.sf.error(f"Error processing JSON response from ThreatCrowd: {e}")self.errorState = Truereturn Nonediff --git a/modules/sfp_threatminer.py b/modules/sfp_threatminer.pyindex 8faed72f..22fa9665 100644--- a/modules/sfp_threatminer.py+++ b/modules/sfp_threatminer.py@@ -121,7 +121,7 @@ class sfp_threatminer(SpiderFootPlugin):try:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from ThreatMiner: {e}", False)+ self.sf.error(f"Error processing JSON response from ThreatMiner: {e}")return Nonereturn infodiff --git a/modules/sfp_tool_cmseek.py b/modules/sfp_tool_cmseek.pyindex 6b82ab75..92f9fbbe 100644--- a/modules/sfp_tool_cmseek.py+++ b/modules/sfp_tool_cmseek.py@@ -88,7 +88,7 @@ class sfp_tool_cmseek(SpiderFootPlugin):self.results[eventData] = Trueif not self.opts['cmseekpath']:- self.sf.error("You enabled sfp_tool_cmseek but did not set a path to the tool!", False)+ self.sf.error("You enabled sfp_tool_cmseek but did not set a path to the tool!")self.errorState = Truereturn None@@ -111,7 +111,7 @@ class sfp_tool_cmseek(SpiderFootPlugin):# Sanitize domain name.if not self.sf.sanitiseInput(eventData):- self.sf.error("Invalid input, refusing to run.", False)+ self.sf.error("Invalid input, refusing to run.")return Nonetry:@@ -120,7 +120,7 @@ class sfp_tool_cmseek(SpiderFootPlugin):if p.returncode == 0:content = stdoutelse:- self.sf.error("Unable to read CMSeeK content.", False)+ self.sf.error("Unable to read CMSeeK content.")self.sf.debug("Error running CMSeeK: " + stderr + ", " + stdout)return Nonediff --git a/modules/sfp_tool_dnstwist.py b/modules/sfp_tool_dnstwist.pyindex cafa0eac..09cc5685 100644--- a/modules/sfp_tool_dnstwist.py+++ b/modules/sfp_tool_dnstwist.py@@ -90,7 +90,7 @@ class sfp_tool_dnstwist(SpiderFootPlugin):self.results[eventData] = Trueif not self.opts['dnstwistpath']:- self.sf.error("You enabled sfp_tool_dnstwist but did not set a path to the tool!", False)+ self.sf.error("You enabled sfp_tool_dnstwist but did not set a path to the tool!")self.errorState = Truereturn None@@ -110,7 +110,7 @@ class sfp_tool_dnstwist(SpiderFootPlugin):# Sanitize domain name.if not self.sf.sanitiseInput(eventData):- self.sf.error("Invalid input, refusing to run.", False)+ self.sf.error("Invalid input, refusing to run.")return Nonetry:@@ -119,7 +119,7 @@ class sfp_tool_dnstwist(SpiderFootPlugin):if p.returncode == 0:content = stdoutelse:- self.sf.error("Unable to read DNSTwist content.", False)+ self.sf.error("Unable to read DNSTwist content.")self.sf.debug("Error running DNSTwist: " + stderr + ", " + stdout)return Nonediff --git a/modules/sfp_tool_nmap.py b/modules/sfp_tool_nmap.pyindex dbc3a8e9..a354ebab 100644--- a/modules/sfp_tool_nmap.py+++ b/modules/sfp_tool_nmap.py@@ -97,7 +97,7 @@ class sfp_tool_nmap(SpiderFootPlugin):return Noneexcept Exception as e:- self.sf.error("Strange netblock identified, unable to parse: " + eventData + " (" + str(e) + ")", False)+ self.sf.error("Strange netblock identified, unable to parse: " + eventData + " (" + str(e) + ")")return None# Don't look up stuff twice, check IP == IP here@@ -114,7 +114,7 @@ class sfp_tool_nmap(SpiderFootPlugin):self.results[eventData] = Trueif not self.opts['nmappath']:- self.sf.error("You enabled sfp_tool_nmap but did not set a path to the tool!", False)+ self.sf.error("You enabled sfp_tool_nmap but did not set a path to the tool!")self.errorState = Truereturn None@@ -124,7 +124,7 @@ class sfp_tool_nmap(SpiderFootPlugin):elif self.opts['nmappath'].endswith('/'):exe = self.opts['nmappath'] + "nmap"else:- self.sf.error("Could not recognize your nmap path configuration.", False)+ self.sf.error("Could not recognize your nmap path configuration.")self.errorState = True# If tool is not found, abort@@ -135,7 +135,7 @@ class sfp_tool_nmap(SpiderFootPlugin):# Sanitize domain name.if not self.sf.validIP(eventData) and not self.sf.validIpNetwork(eventData):- self.sf.error("Invalid input, refusing to run.", False)+ self.sf.error("Invalid input, refusing to run.")return Nonetry:@@ -144,7 +144,7 @@ class sfp_tool_nmap(SpiderFootPlugin):if p.returncode == 0:content = stdout.decode('utf-8', errors='replace')else:- self.sf.error("Unable to read Nmap content.", False)+ self.sf.error("Unable to read Nmap content.")self.sf.debug("Error running Nmap: " + stderr + ", " + stdout)return None@@ -190,7 +190,7 @@ class sfp_tool_nmap(SpiderFootPlugin):self.notifyListeners(evt)currentIp = Noneexcept Exception as e:- self.sf.error(f"Couldn't parse the output of Nmap: {e}", False)+ self.sf.error(f"Couldn't parse the output of Nmap: {e}")return None# End of sfp_tool_nmap classdiff --git a/modules/sfp_tool_whatweb.py b/modules/sfp_tool_whatweb.pyindex 06d5985e..8e445d41 100644--- a/modules/sfp_tool_whatweb.py+++ b/modules/sfp_tool_whatweb.py@@ -87,7 +87,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):self.results[eventData] = Trueif not self.opts['whatweb_path']:- self.sf.error("You enabled sfp_tool_whatweb but did not set a path to the tool!", False)+ self.sf.error("You enabled sfp_tool_whatweb but did not set a path to the tool!")self.errorState = Truereturn None@@ -103,7 +103,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):# Sanitize domain name.if not self.sf.sanitiseInput(eventData):- self.sf.error("Invalid input, refusing to run.", False)+ self.sf.error("Invalid input, refusing to run.")return None# Set aggression level@@ -131,11 +131,11 @@ class sfp_tool_whatweb(SpiderFootPlugin):p = Popen(args, stdout=PIPE, stderr=PIPE)stdout, stderr = p.communicate(input=None)except Exception as e:- self.sf.error(f"Unable to run WhatWeb: {e}", False)+ self.sf.error(f"Unable to run WhatWeb: {e}")return Noneif p.returncode != 0:- self.sf.error("Unable to read WhatWeb output.", False)+ self.sf.error("Unable to read WhatWeb output.")self.sf.debug("Error running WhatWeb: " + stderr + ", " + stdout)return None@@ -146,7 +146,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):try:result_json = json.loads(stdout)except Exception as e:- self.sf.error(f"Couldn't parse the JSON output of WhatWeb: {e}", False)+ self.sf.error(f"Couldn't parse the JSON output of WhatWeb: {e}")return Noneif len(result_json) == 0:diff --git a/modules/sfp_twilio.py b/modules/sfp_twilio.pyindex b2875bb4..ca286c0e 100644--- a/modules/sfp_twilio.py+++ b/modules/sfp_twilio.py@@ -90,7 +90,7 @@ class sfp_twilio(SpiderFootPlugin):)if res['code'] == '400':- self.sf.error("Bad request.", False)+ self.sf.error("Bad request.")return Noneif res['code'] == '404':@@ -98,15 +98,15 @@ class sfp_twilio(SpiderFootPlugin):return Noneif res['code'] == '429':- self.sf.error("API usage limit reached.", False)+ self.sf.error("API usage limit reached.")return Noneif res['code'] == '503':- self.sf.error("Service unavailable.", False)+ self.sf.error("Service unavailable.")return Noneif not res['code'] == '200':- self.sf.error("Could not fetch data.", False)+ self.sf.error("Could not fetch data.")return Nonereturn res.get('content')@@ -125,7 +125,7 @@ class sfp_twilio(SpiderFootPlugin):# Always check if the API key is set and complain if it isn't, then set# self.errorState to avoid this being a continual complaint during the scan.if self.opts['api_key_account_sid'] == "" or self.opts['api_key_auth_token'] == "":- self.sf.error("You enabled sfp_twilio but did not set account sid/auth token", False)+ self.sf.error("You enabled sfp_twilio but did not set account sid/auth token")self.errorState = Truereturn Nonediff --git a/modules/sfp_twitter.py b/modules/sfp_twitter.pyindex 40c129cc..868dd1bb 100644--- a/modules/sfp_twitter.py+++ b/modules/sfp_twitter.py@@ -76,7 +76,7 @@ class sfp_twitter(SpiderFootPlugin):network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")except Exception as e:- self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)+ self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})")return Noneif not network == "Twitter":diff --git a/modules/sfp_urlscan.py b/modules/sfp_urlscan.pyindex 81e40b65..40fb1e6c 100644--- a/modules/sfp_urlscan.py+++ b/modules/sfp_urlscan.py@@ -83,7 +83,7 @@ class sfp_urlscan(SpiderFootPlugin):useragent=self.opts['_useragent'])if res['code'] == "429":- self.sf.error("You are being rate-limited by URLScan.io.", False)+ self.sf.error("You are being rate-limited by URLScan.io.")self.errorState = Truereturn Nonediff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.pyindex 3eb771c0..ae0b5563 100644--- a/modules/sfp_virustotal.py+++ b/modules/sfp_virustotal.py@@ -131,7 +131,7 @@ class sfp_virustotal(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from VirusTotal: {e}", False)+ self.sf.error(f"Error processing JSON response from VirusTotal: {e}")self.errorState = Truereturn None@@ -160,7 +160,7 @@ class sfp_virustotal(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from VirusTotal: {e}", False)+ self.sf.error(f"Error processing JSON response from VirusTotal: {e}")self.errorState = Truereturn Nonediff --git a/modules/sfp_webserver.py b/modules/sfp_webserver.pyindex da531a4e..41292f4a 100644--- a/modules/sfp_webserver.py+++ b/modules/sfp_webserver.py@@ -73,7 +73,7 @@ class sfp_webserver(SpiderFootPlugin):if jdata is None:return Noneexcept Exception:- self.sf.error("Received HTTP headers from another module in an unexpected format.", False)+ self.sf.error("Received HTTP headers from another module in an unexpected format.")return None# Check location header for linked URLsdiff --git a/modules/sfp_whois.py b/modules/sfp_whois.pyindex 0d9ff023..5d00d4e7 100644--- a/modules/sfp_whois.py+++ b/modules/sfp_whois.py@@ -94,7 +94,7 @@ class sfp_whois(SpiderFootPlugin):# This is likely to be an error about being throttled rather than real dataif len(data) < 250:- self.sf.error("Throttling from Whois is probably happening.", False)+ self.sf.error("Throttling from Whois is probably happening.")return Noneif eventName.startswith("DOMAIN_NAME"):diff --git a/modules/sfp_whoisology.py b/modules/sfp_whoisology.pyindex 5acd4409..8eafa51f 100644--- a/modules/sfp_whoisology.py+++ b/modules/sfp_whoisology.py@@ -88,7 +88,7 @@ class sfp_whoisology(SpiderFootPlugin):useragent="SpiderFoot")if res['code'] in ["400", "429", "500", "403"]:- self.sf.error("Whoisology API key seems to have been rejected or you have exceeded usage limits.", False)+ self.sf.error("Whoisology API key seems to have been rejected or you have exceeded usage limits.")self.errorState = Truereturn None@@ -108,7 +108,7 @@ class sfp_whoisology(SpiderFootPlugin):return info.get('domains')except Exception as e:- self.sf.error(f"Error processing JSON response from Whoisology: {e}", False)+ self.sf.error(f"Error processing JSON response from Whoisology: {e}")return None# Handle events sent to this module@@ -123,7 +123,7 @@ class sfp_whoisology(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_whoisology but did not set an API key!", False)+ self.sf.error("You enabled sfp_whoisology but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_whoxy.py b/modules/sfp_whoxy.pyindex 31e11b10..f65ebb1e 100644--- a/modules/sfp_whoxy.py+++ b/modules/sfp_whoxy.py@@ -91,7 +91,7 @@ class sfp_whoxy(SpiderFootPlugin):useragent="SpiderFoot")if res['code'] in ["400", "429", "500", "403"]:- self.sf.error("Whoxy API key seems to have been rejected or you have exceeded usage limits.", False)+ self.sf.error("Whoxy API key seems to have been rejected or you have exceeded usage limits.")self.errorState = Truereturn None@@ -134,7 +134,7 @@ class sfp_whoxy(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['api_key'] == "":- self.sf.error("You enabled sfp_whoxy but did not set an API key!", False)+ self.sf.error("You enabled sfp_whoxy but did not set an API key!")self.errorState = Truereturn Nonediff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.pyindex faa9a554..2bc2069e 100644--- a/modules/sfp_wigle.py+++ b/modules/sfp_wigle.py@@ -108,7 +108,7 @@ class sfp_wigle(SpiderFootPlugin):return Noneif "too many queries" in res['content']:- self.sf.error("Wigle.net query limit reached for the day.", False)+ self.sf.error("Wigle.net query limit reached for the day.")return Nonetry:@@ -117,7 +117,7 @@ class sfp_wigle(SpiderFootPlugin):return Nonereturn info['results'][0]['boundingbox']except Exception as e:- self.sf.error(f"Error processing JSON response from Wigle.net: {e}", False)+ self.sf.error(f"Error processing JSON response from Wigle.net: {e}")return Nonedef getnetworks(self, coords):@@ -153,7 +153,7 @@ class sfp_wigle(SpiderFootPlugin):return Noneif "too many queries" in res['content']:- self.sf.error("Wigle.net query limit reached for the day.", False)+ self.sf.error("Wigle.net query limit reached for the day.")return Noneret = list()@@ -169,7 +169,7 @@ class sfp_wigle(SpiderFootPlugin):return retexcept Exception as e:- self.sf.error(f"Error processing JSON response from WiGLE: {e}", False)+ self.sf.error(f"Error processing JSON response from WiGLE: {e}")return None# Handle events sent to this module@@ -182,7 +182,7 @@ class sfp_wigle(SpiderFootPlugin):return Noneif self.opts['api_key_encoded'] == "":- self.sf.error("You enabled sfp_wigle but did not set an API key!", False)+ self.sf.error("You enabled sfp_wigle but did not set an API key!")self.errorState = Truereturn None@@ -197,12 +197,12 @@ class sfp_wigle(SpiderFootPlugin):coords = self.getcoords(eventData)if not coords:- self.sf.error("Couldn't get coordinates for address from Wigle.net.", False)+ self.sf.error("Couldn't get coordinates for address from Wigle.net.")return Nonenets = self.getnetworks(coords)if not nets:- self.sf.error("Couldn't get networks for coordinates from Wigle.net.", False)+ self.sf.error("Couldn't get networks for coordinates from Wigle.net.")return Nonefor n in nets:diff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.pyindex 6d0d85d3..65f34ed3 100644--- a/modules/sfp_wikileaks.py+++ b/modules/sfp_wikileaks.py@@ -103,7 +103,7 @@ class sfp_wikileaks(SpiderFootPlugin):"https://search.wikileaks.org/?" + wlurl)if res['content'] is None:- self.sf.error("Unable to fetch Wikileaks content.", False)+ self.sf.error("Unable to fetch Wikileaks content.")return None# Fetch the paste site contentdiff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.pyindex 6dfaadb4..5508df26 100644--- a/modules/sfp_xforce.py+++ b/modules/sfp_xforce.py@@ -141,7 +141,7 @@ class sfp_xforce(SpiderFootPlugin):return Noneif res['code'] == '400':- self.sf.error("Bad request", False)+ self.sf.error("Bad request")return Noneif res['code'] == '404':@@ -149,34 +149,34 @@ class sfp_xforce(SpiderFootPlugin):return Noneif res['code'] == '401':- self.sf.error("X-Force Exchange API key seems to have been rejected.", False)+ self.sf.error("X-Force Exchange API key seems to have been rejected.")self.errorState = Truereturn Noneif res['code'] == '402':- self.sf.error("X-Force Exchange monthly quota exceeded", False)+ self.sf.error("X-Force Exchange monthly quota exceeded")self.errorState = Truereturn Noneif res['code'] == '403':- self.sf.error("Access denied", False)+ self.sf.error("Access denied")self.errorState = Truereturn Noneif res['code'] == '429':- self.sf.error("Rate limit exceeded", False)+ self.sf.error("Rate limit exceeded")self.errorState = Truereturn None# Catch all non-200 status codes, and presume something went wrongif res['code'] != '200':- self.sf.error("Failed to retrieve content from X-Force Exchange", False)+ self.sf.error("Failed to retrieve content from X-Force Exchange")return Nonetry:info = json.loads(res['content'])except Exception as e:- self.sf.error(f"Error processing JSON response from X-Force Exchange: {e}", False)+ self.sf.error(f"Error processing JSON response from X-Force Exchange: {e}")return Nonereturn info@@ -195,7 +195,7 @@ class sfp_xforce(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts['xforce_api_key'] == "" or self.opts['xforce_api_key_password'] == "":- self.sf.error("You enabled sfp_xforce but did not set an API key/password!", False)+ self.sf.error("You enabled sfp_xforce but did not set an API key/password!")self.errorState = Truereturn Nonediff --git a/modules/sfp_zetalytics.py b/modules/sfp_zetalytics.pyindex 9afd7c6d..65e26a84 100644--- a/modules/sfp_zetalytics.py+++ b/modules/sfp_zetalytics.py@@ -83,7 +83,7 @@ class sfp_zetalytics(SpiderFootPlugin):info = json.loads(res["content"])except Exception as e:self.sf.error(- f"Error processing JSON response from Zetalytics: {e}", False+ f"Error processing JSON response from Zetalytics: {e}")return None@@ -156,7 +156,7 @@ class sfp_zetalytics(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts["api_key"] == "":- self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!", False)+ self.sf.error(f"You enabled {self.__class__.__name__} but did not set an API key!")self.errorState = Truereturn None