Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

modules: remove False argument from self.sf.error()

Brendan Coles51c0c86283d8
diff --git a/modules/sfp_abuseipdb.py b/modules/sfp_abuseipdb.py
index 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 = True
return None
if 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 = True
return None
if res['code'] != "200":
- self.sf.error("Error retrieving search results from AbuseIPDB", False)
+ self.sf.error("Error retrieving search results from AbuseIPDB")
self.errorState = True
return None
if res['content'] is None:
- self.sf.error("Received no content from AbuseIPDB", False)
+ self.sf.error("Received no content from AbuseIPDB")
self.errorState = True
return 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 = True
return None
if res['code'] != "200":
- self.sf.error("Error retrieving search results from AbuseIPDB", False)
+ self.sf.error("Error retrieving search results from AbuseIPDB")
self.errorState = True
return None
if res['content'] is None:
- self.sf.error("Received no content from AbuseIPDB", False)
+ self.sf.error("Received no content from AbuseIPDB")
self.errorState = True
return 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 = True
return None
if res['code'] != "200":
- self.sf.error("Error retrieving search results from AbuseIPDB", False)
+ self.sf.error("Error retrieving search results from AbuseIPDB")
self.errorState = True
return None
if res['content'] is None:
- self.sf.error("Received no content from AbuseIPDB", False)
+ self.sf.error("Received no content from AbuseIPDB")
self.errorState = True
return None
diff --git a/modules/sfp_alienvault.py b/modules/sfp_alienvault.py
index 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 = True
return 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 None
return 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 = True
return None
diff --git a/modules/sfp_apility.py b/modules/sfp_apility.py
index 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 = True
return None
@@ -162,7 +162,7 @@ class sfp_apility(SpiderFootPlugin):
return None
if res['content'] == 'Unauthorized':
- self.sf.error("Authentication failed", False)
+ self.sf.error("Authentication failed")
self.errorState = True
return None
@@ -187,7 +187,7 @@ class sfp_apility(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_archiveorg.py b/modules/sfp_archiveorg.py
index 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}")
continue
try:
@@ -154,7 +154,7 @@ class sfp_archiveorg(SpiderFootPlugin):
ret = None
if 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}")
continue
if len(ret['archived_snapshots']) < 1:
diff --git a/modules/sfp_badpackets.py b/modules/sfp_badpackets.py
index 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 Documentation
if res['code'] == '400':
- self.sf.error("Invalid IP Address", False)
+ self.sf.error("Invalid IP Address")
return None
if res['code'] == '401':
- self.sf.error("Unauthorized API Key", False)
+ self.sf.error("Unauthorized API Key")
return None
if 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 wrong
if 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 None
return 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 = True
return 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.")
continue
if maliciousIP:
diff --git a/modules/sfp_binaryedge.py b/modules/sfp_binaryedge.py
index 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 None
headers = {
@@ -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 = True
return 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 None
if info.get('page') and info['total'] > info.get('pagesize', 100) * info.get('page', 0):
page = info['page'] + 1
if 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.py
index 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 = True
return None
diff --git a/modules/sfp_bingsharedip.py b/modules/sfp_bingsharedip.py
index 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 = True
return None
diff --git a/modules/sfp_bitcoinabuse.py b/modules/sfp_bitcoinabuse.py
index 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 None
return 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 = True
return None
diff --git a/modules/sfp_bitcoinwhoswho.py b/modules/sfp_bitcoinwhoswho.py
index 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 None
return 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 = True
return None
diff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.py
index 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 = True
return None
diff --git a/modules/sfp_builtwith.py b/modules/sfp_builtwith.py
index 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 None
def 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 = True
return None
diff --git a/modules/sfp_c99.py b/modules/sfp_c99.py
index 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 = True
return None
if 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 = True
return 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 None
return 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 = True
return None
diff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.py
index 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 = True
return None
@@ -146,7 +146,7 @@ class sfp_circllu(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_clearbit.py b/modules/sfp_clearbit.py
index 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 None
try:
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 None
return ret
@@ -122,7 +122,7 @@ class sfp_clearbit(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.py
index 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 = True
return None
if 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 = True
return 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 = True
return 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 = True
return 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 = True
return 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 None
if len(self.indexBase) == 0:
- self.sf.error("Unable to fetch CommonCrawl index.", False)
+ self.sf.error("Unable to fetch CommonCrawl index.")
return None
data = 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 None
sent = list()
diff --git a/modules/sfp_cookie.py b/modules/sfp_cookie.py
index 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 None
except 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
if 'set-cookie' in jdata:
diff --git a/modules/sfp_crobat_api.py b/modules/sfp_crobat_api.py
index 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 limiting
if 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 = True
return None
# Catch all non-200 status codes, and presume something went wrong
if 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 = True
return None
@@ -104,7 +104,7 @@ class sfp_crobat_api(SpiderFootPlugin):
return None
if 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 None
return data
diff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.py
index 9a0efa20..dca98bda 100644
--- a/modules/sfp_customfeed.py
+++ b/modules/sfp_customfeed.py
@@ -183,7 +183,7 @@ class sfp_customfeed(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_dnsgrep.py b/modules/sfp_dnsgrep.py
index 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 None
return data
diff --git a/modules/sfp_dnsneighbor.py b/modules/sfp_dnsneighbor.py
index 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 None
try:
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 None
self.sf.debug("Lookaside max: " + str(maxip) + ", min: " + str(minip))
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.py
index 8fc78073..0410e018 100644
--- a/modules/sfp_dnsresolve.py
+++ b/modules/sfp_dnsresolve.py
@@ -201,7 +201,7 @@ class sfp_dnsresolve(SpiderFootPlugin):
m = match
self.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.py
index f5e0d406..30f78134 100644
--- a/modules/sfp_dnszonexfer.py
+++ b/modules/sfp_dnszonexfer.py
@@ -87,7 +87,7 @@ class sfp_dnszonexfer(SpiderFootPlugin):
nsip = n
break
else:
- 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 None
else:
nsip = eventData
diff --git a/modules/sfp_duckduckgo.py b/modules/sfp_duckduckgo.py
index 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 None
try:
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 None
if not ret['Heading']:
diff --git a/modules/sfp_emailcrawlr.py b/modules/sfp_emailcrawlr.py
index fe829695..6a46beea 100644
--- a/modules/sfp_emailcrawlr.py
+++ b/modules/sfp_emailcrawlr.py
@@ -112,23 +112,23 @@ class sfp_emailcrawlr(SpiderFootPlugin):
return None
if res['code'] == "401":
- self.sf.error("Invalid EmailCrawlr API key.", False)
+ self.sf.error("Invalid EmailCrawlr API key.")
self.errorState = True
return None
if 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 = True
return None
if res['code'] == '503':
- self.sf.error("EmailCrawlr service unavailable", False)
+ self.sf.error("EmailCrawlr service unavailable")
self.errorState = True
return None
# Catch all other non-200 status codes, and presume something went wrong
if res['code'] != '200':
- self.sf.error("Failed to retrieve content from EmailCrawlr", False)
+ self.sf.error("Failed to retrieve content from EmailCrawlr")
self.errorState = True
return None
@@ -156,7 +156,7 @@ class sfp_emailcrawlr(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_emailrep.py b/modules/sfp_emailrep.py
index 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.py
index 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 None
if 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 None
meta = 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 None
if 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 None
if 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 None
if fileExt.lower() in ["jpg", "jpeg", "tiff"]:
@@ -152,8 +147,7 @@ class sfp_filemeta(SpiderFootPlugin):
continue
meta = 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 None
if 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 None
for v in val:
diff --git a/modules/sfp_flickr.py b/modules/sfp_flickr.py
index 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 None
self.sf.debug(f"Retrieved API key: {api_key}")
diff --git a/modules/sfp_fraudguard.py b/modules/sfp_fraudguard.py
index 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 = True
return 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 None
return 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 = True
return None
diff --git a/modules/sfp_fullcontact.py b/modules/sfp_fullcontact.py
index 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 = True
return None
if 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 None
time.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 None
try:
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 None
if "updated" in ret and int(self.opts['max_age_days']) > 0:
diff --git a/modules/sfp_github.py b/modules/sfp_github.py
index 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 None
if 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 = True
if not failed:
@@ -190,7 +190,7 @@ class sfp_github(SpiderFootPlugin):
ret = None
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 = True
if 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 = True
if 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 = True
except 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 = True
if 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}")
continue
try:
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}")
continue
if 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}")
continue
for item in repret:
diff --git a/modules/sfp_googlesafebrowsing.py b/modules/sfp_googlesafebrowsing.py
index 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 = True
return None
if 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 = True
return None
if 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 = True
return None
if 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 = True
return None
@@ -161,7 +160,7 @@ class sfp_googlesafebrowsing(SpiderFootPlugin):
return None
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 None
return 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 = True
return None
diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.py
index 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 = True
return None
diff --git a/modules/sfp_greynoise.py b/modules/sfp_greynoise.py
index 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 = True
return None
try:
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 None
return 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 = True
return None
diff --git a/modules/sfp_h1nobbdde.py b/modules/sfp_h1nobbdde.py
index 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 None
return ret
diff --git a/modules/sfp_hackertarget.py b/modules/sfp_hackertarget.py
index 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 None
if 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 None
records = 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 None
if "No records" in res['content']:
diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.py
index fd517257..7213206a 100644
--- a/modules/sfp_haveibeenpwned.py
+++ b/modules/sfp_haveibeenpwned.py
@@ -104,14 +104,14 @@ class sfp_haveibeenpwned(SpiderFootPlugin):
retry += 1
if 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 = True
return None
try:
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 None
return ret
diff --git a/modules/sfp_honeypot.py b/modules/sfp_honeypot.py
index 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 = True
return None
diff --git a/modules/sfp_hostio.py b/modules/sfp_hostio.py
index 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 None
return 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 None
found = False
diff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.py
index c8ac47bc..99b29b77 100644
--- a/modules/sfp_hunter.py
+++ b/modules/sfp_hunter.py
@@ -129,7 +129,7 @@ class sfp_hunter(SpiderFootPlugin):
self.results[eventData] = True
if 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 = True
return None
diff --git a/modules/sfp_hybrid_analysis.py b/modules/sfp_hybrid_analysis.py
index 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 limiting
if 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 = True
return None
diff --git a/modules/sfp_iknowwhatyoudownload.py b/modules/sfp_iknowwhatyoudownload.py
index 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 None
if '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 None
if 'contents' not in ret:
@@ -134,7 +134,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_instagram.py b/modules/sfp_instagram.py
index 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 None
if not network == 'Instagram':
diff --git a/modules/sfp_intelx.py b/modules/sfp_intelx.py
index 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 = True
return None
@@ -186,7 +186,7 @@ class sfp_intelx(SpiderFootPlugin):
return None
if 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 = True
return None
@@ -231,7 +231,7 @@ class sfp_intelx(SpiderFootPlugin):
self.sf.debug(f"Unexpected record, skipping ({rec['bucket']})")
continue
except 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.")
continue
except 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
diff --git a/modules/sfp_ipinfo.py b/modules/sfp_ipinfo.py
index 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 = True
return 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 = True
return None
diff --git a/modules/sfp_ipregistry.py b/modules/sfp_ipregistry.py
index 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 = True
return None
diff --git a/modules/sfp_ipstack.py b/modules/sfp_ipstack.py
index 9c85f714..89eec1ee 100644
--- a/modules/sfp_ipstack.py
+++ b/modules/sfp_ipstack.py
@@ -85,7 +85,7 @@ class sfp_ipstack(SpiderFootPlugin):
return None
if 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 = True
return 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 = True
return None
except Exception as e:
diff --git a/modules/sfp_jsonwhoiscom.py b/modules/sfp_jsonwhoiscom.py
index 86ecfe73..3a802cde 100644
--- a/modules/sfp_jsonwhoiscom.py
+++ b/modules/sfp_jsonwhoiscom.py
@@ -116,23 +116,23 @@ class sfp_jsonwhoiscom(SpiderFootPlugin):
return None
if res['code'] == "401":
- self.sf.error("Invalid JsonWHOIS.com API key.", False)
+ self.sf.error("Invalid JsonWHOIS.com API key.")
self.errorState = True
return None
if 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 = True
return None
if res['code'] == '503':
- self.sf.error("JsonWHOIS.com service unavailable", False)
+ self.sf.error("JsonWHOIS.com service unavailable")
self.errorState = True
return None
# Catch all other non-200 status codes, and presume something went wrong
if 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 = True
return None
@@ -160,7 +160,7 @@ class sfp_jsonwhoiscom(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_keybase.py b/modules/sfp_keybase.py
index 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 None
except Exception:
- self.sf.error("Invalid code returned as response", False)
+ self.sf.error("Invalid code returned as response")
return None
return 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 = None
if 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 None
if profile:
diff --git a/modules/sfp_leakix.py b/modules/sfp_leakix.py
index 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 limiting
if 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 = True
return None
# Catch all non-200 status codes, and presume something went wrong
if res['code'] != '200':
- self.sf.error("Failed to retrieve content from LeakIX", False)
+ self.sf.error("Failed to retrieve content from LeakIX")
self.errorState = True
return None
diff --git a/modules/sfp_maltiverse.py b/modules/sfp_maltiverse.py
index 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 None
if res['code'] == "404":
- self.sf.error("API endpoint not found", False)
+ self.sf.error("API endpoint not found")
return None
if 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):
continue
if addr != maliciousIP:
- self.sf.error("Reported address doesn't match requested, skipping", False)
+ self.sf.error("Reported address doesn't match requested, skipping")
continue
blacklistedRecords = 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")
continue
today = datetime.now()
diff --git a/modules/sfp_malwarepatrol.py b/modules/sfp_malwarepatrol.py
index 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 = True
return None
diff --git a/modules/sfp_metadefender.py b/modules/sfp_metadefender.py
index c30da9d0..7d82587b 100644
--- a/modules/sfp_metadefender.py
+++ b/modules/sfp_metadefender.py
@@ -113,14 +113,14 @@ class sfp_metadefender(SpiderFootPlugin):
# Parse API response
def parseApiResponse(self, res):
if res['code'] == "401":
- self.sf.error("Invalid MetaDefender API key", False)
+ self.sf.error("Invalid MetaDefender API key")
self.errorState = True
return None
# https://onlinehelp.opswat.com/mdcloud/3._Rate_Limiting.html
# https://onlinehelp.opswat.com/mdcloud/4._Throttling.html
if 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 = True
return None
@@ -151,7 +151,7 @@ class sfp_metadefender(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_myspace.py b/modules/sfp_myspace.py
index 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 None
if network != "MySpace":
diff --git a/modules/sfp_networksdb.py b/modules/sfp_networksdb.py
index 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 limiting
if 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 = True
return None
if res['code'] == '403':
- self.sf.error("Authentication failed", False)
+ self.sf.error("Authentication failed")
self.errorState = True
return 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 None
if data.get('warning'):
@@ -260,7 +260,7 @@ class sfp_networksdb(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_neutrinoapi.py b/modules/sfp_neutrinoapi.py
index a4194969..934d4159 100644
--- a/modules/sfp_neutrinoapi.py
+++ b/modules/sfp_neutrinoapi.py
@@ -131,7 +131,7 @@ class sfp_neutrinoapi(SpiderFootPlugin):
# Parse API response
def parseApiResponse(self, res):
if res['code'] == "403":
- self.sf.error("Authentication failed", False)
+ self.sf.error("Authentication failed")
self.errorState = True
return None
@@ -151,7 +151,7 @@ class sfp_neutrinoapi(SpiderFootPlugin):
self.errorState = True
return None
else:
- self.sf.error("Error: HTTP 400", False)
+ self.sf.error("Error: HTTP 400")
return None
return data
@@ -169,12 +169,12 @@ class sfp_neutrinoapi(SpiderFootPlugin):
return None
if 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 = True
return None
if 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 = True
return None
diff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.py
index 537c685f..fcf2231b 100644
--- a/modules/sfp_numverify.py
+++ b/modules/sfp_numverify.py
@@ -139,7 +139,7 @@ class sfp_numverify(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.py
index 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 = True
return None
diff --git a/modules/sfp_onyphe.py b/modules/sfp_onyphe.py
index 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 = True
return None
if 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 = True
return None
@@ -130,7 +130,7 @@ class sfp_onyphe(SpiderFootPlugin):
return None
except 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 = True
return None
diff --git a/modules/sfp_opencorporates.py b/modules/sfp_opencorporates.py
index 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 None
if 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 None
try:
@@ -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 None
if 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 None
try:
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.py
index 25bcd2da..a344e7ab 100644
--- a/modules/sfp_pastebin.py
+++ b/modules/sfp_pastebin.py
@@ -91,7 +91,7 @@ class sfp_pastebin(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_phishstats.py b/modules/sfp_phishstats.py
index 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):
continue
if 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 Address
diff --git a/modules/sfp_portscan_tcp.py b/modules/sfp_portscan_tcp.py
index 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 = True
return 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 None
for ipAddr in scanIps:
diff --git a/modules/sfp_projectdiscovery.py b/modules/sfp_projectdiscovery.py
index 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 = True
return None
diff --git a/modules/sfp_psbdmp.py b/modules/sfp_psbdmp.py
index 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 None
ids = list()
diff --git a/modules/sfp_pulsedive.py b/modules/sfp_pulsedive.py
index 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 = True
return 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 None
return 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 = True
return None
diff --git a/modules/sfp_recondev.py b/modules/sfp_recondev.py
index 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 limiting
if 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 = True
return None
if 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 = True
return None
# Catch all non-200 status codes, and presume something went wrong
if 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 = True
return None
@@ -122,7 +122,7 @@ class sfp_recondev(SpiderFootPlugin):
# returns list of results; 'null' when no results; or dict when there's an error
if 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.py
index 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 = True
return None
@@ -143,7 +143,7 @@ class sfp_riskiq(SpiderFootPlugin):
self.sf.info("No RiskIQ info found for " + qry)
return None
except 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 None
return ret['results']
@@ -166,7 +166,7 @@ class sfp_riskiq(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.py
index ec0e97a5..da1d9f19 100644
--- a/modules/sfp_robtex.py
+++ b/modules/sfp_robtex.py
@@ -155,14 +155,14 @@ class sfp_robtex(SpiderFootPlugin):
retry += 1
if res['content'] is None:
- self.sf.error("Unable to query robtex API.", False)
+ self.sf.error("Unable to query robtex API.")
retry += 1
continue
try:
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 None
pas = data.get('pas')
diff --git a/modules/sfp_scylla.py b/modules/sfp_scylla.py
index 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 = True
return None
diff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.py
index 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 = True
return 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 = True
return None
diff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.py
index 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 None
return 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 None
return 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 None
return 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 = True
return 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 None
if network not in ['Google AdSense', 'Google Analytics', 'Google Site Verification']:
diff --git a/modules/sfp_slideshare.py b/modules/sfp_slideshare.py
index 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 None
if not network == "SlideShare":
diff --git a/modules/sfp_snov.py b/modules/sfp_snov.py
index 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 = True
return None
try:
@@ -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 None
return 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 = True
return 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 = True
return None
@@ -173,7 +173,7 @@ class sfp_snov(SpiderFootPlugin):
# Get access token from Snov IO API
accessToken = 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 = True
return None
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.py
index 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 = True
return None
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index 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 obtained
diff --git a/modules/sfp_spur.py b/modules/sfp_spur.py
index 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 = True
return None
@@ -126,7 +126,7 @@ class sfp_spur(SpiderFootPlugin):
return None
if 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 None
content = 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 = True
return None
diff --git a/modules/sfp_spyonweb.py b/modules/sfp_spyonweb.py
index 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 = True
return 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 None
data = dict()
diff --git a/modules/sfp_spyse.py b/modules/sfp_spyse.py
index 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 None
if res['code'] == '402':
- self.sf.error("Request limit exceeded", False)
+ self.sf.error("Request limit exceeded")
self.errorState = True
return None
if res['code'] == '403':
- self.sf.error("Authentication failed", False)
+ self.sf.error("Authentication failed")
self.errorState = True
return None
# Future proofing - Spyse does not implement rate limiting
if 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 = True
return None
# Catch all non-200 status codes, and presume something went wrong
if res['code'] != '200':
- self.sf.error("Failed to retrieve content from Spyse", False)
+ self.sf.error("Failed to retrieve content from Spyse")
self.errorState = True
return None
@@ -311,7 +311,7 @@ class sfp_spyse(SpiderFootPlugin):
return None
if 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 = True
return None
diff --git a/modules/sfp_strangeheaders.py b/modules/sfp_strangeheaders.py
index 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 None
except 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
for key in jdata:
diff --git a/modules/sfp_subdomain_takeover.py b/modules/sfp_subdomain_takeover.py
index 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 = True
return None
diff --git a/modules/sfp_template.py b/modules/sfp_template.py
index 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 None
return 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 = True
return None
diff --git a/modules/sfp_threatcrowd.py b/modules/sfp_threatcrowd.py
index 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 = True
return None
diff --git a/modules/sfp_threatminer.py b/modules/sfp_threatminer.py
index 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 None
return info
diff --git a/modules/sfp_tool_cmseek.py b/modules/sfp_tool_cmseek.py
index 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] = True
if 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 = True
return 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 None
try:
@@ -120,7 +120,7 @@ class sfp_tool_cmseek(SpiderFootPlugin):
if p.returncode == 0:
content = stdout
else:
- 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 None
diff --git a/modules/sfp_tool_dnstwist.py b/modules/sfp_tool_dnstwist.py
index 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] = True
if 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 = True
return 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 None
try:
@@ -119,7 +119,7 @@ class sfp_tool_dnstwist(SpiderFootPlugin):
if p.returncode == 0:
content = stdout
else:
- 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 None
diff --git a/modules/sfp_tool_nmap.py b/modules/sfp_tool_nmap.py
index 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 None
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 None
# Don't look up stuff twice, check IP == IP here
@@ -114,7 +114,7 @@ class sfp_tool_nmap(SpiderFootPlugin):
self.results[eventData] = True
if 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 = True
return 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 None
try:
@@ -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 = None
except 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 class
diff --git a/modules/sfp_tool_whatweb.py b/modules/sfp_tool_whatweb.py
index 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] = True
if 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 = True
return 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 None
if 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 None
if len(result_json) == 0:
diff --git a/modules/sfp_twilio.py b/modules/sfp_twilio.py
index 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 None
if res['code'] == '404':
@@ -98,15 +98,15 @@ class sfp_twilio(SpiderFootPlugin):
return None
if res['code'] == '429':
- self.sf.error("API usage limit reached.", False)
+ self.sf.error("API usage limit reached.")
return None
if res['code'] == '503':
- self.sf.error("Service unavailable.", False)
+ self.sf.error("Service unavailable.")
return None
if not res['code'] == '200':
- self.sf.error("Could not fetch data.", False)
+ self.sf.error("Could not fetch data.")
return None
return 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 = True
return None
diff --git a/modules/sfp_twitter.py b/modules/sfp_twitter.py
index 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 None
if not network == "Twitter":
diff --git a/modules/sfp_urlscan.py b/modules/sfp_urlscan.py
index 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 = True
return None
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 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 = True
return 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 = True
return None
diff --git a/modules/sfp_webserver.py b/modules/sfp_webserver.py
index 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 None
except 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 URLs
diff --git a/modules/sfp_whois.py b/modules/sfp_whois.py
index 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 data
if len(data) < 250:
- self.sf.error("Throttling from Whois is probably happening.", False)
+ self.sf.error("Throttling from Whois is probably happening.")
return None
if eventName.startswith("DOMAIN_NAME"):
diff --git a/modules/sfp_whoisology.py b/modules/sfp_whoisology.py
index 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 = True
return 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 = True
return None
diff --git a/modules/sfp_whoxy.py b/modules/sfp_whoxy.py
index 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 = True
return 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 = True
return None
diff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.py
index faa9a554..2bc2069e 100644
--- a/modules/sfp_wigle.py
+++ b/modules/sfp_wigle.py
@@ -108,7 +108,7 @@ class sfp_wigle(SpiderFootPlugin):
return None
if "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 None
try:
@@ -117,7 +117,7 @@ class sfp_wigle(SpiderFootPlugin):
return None
return 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 None
def getnetworks(self, coords):
@@ -153,7 +153,7 @@ class sfp_wigle(SpiderFootPlugin):
return None
if "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 None
ret = list()
@@ -169,7 +169,7 @@ class sfp_wigle(SpiderFootPlugin):
return ret
except 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 None
if 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 = True
return 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 None
nets = 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 None
for n in nets:
diff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.py
index 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 content
diff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.py
index 6dfaadb4..5508df26 100644
--- a/modules/sfp_xforce.py
+++ b/modules/sfp_xforce.py
@@ -141,7 +141,7 @@ class sfp_xforce(SpiderFootPlugin):
return None
if res['code'] == '400':
- self.sf.error("Bad request", False)
+ self.sf.error("Bad request")
return None
if res['code'] == '404':
@@ -149,34 +149,34 @@ class sfp_xforce(SpiderFootPlugin):
return None
if 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 = True
return None
if res['code'] == '402':
- self.sf.error("X-Force Exchange monthly quota exceeded", False)
+ self.sf.error("X-Force Exchange monthly quota exceeded")
self.errorState = True
return None
if res['code'] == '403':
- self.sf.error("Access denied", False)
+ self.sf.error("Access denied")
self.errorState = True
return None
if res['code'] == '429':
- self.sf.error("Rate limit exceeded", False)
+ self.sf.error("Rate limit exceeded")
self.errorState = True
return None
# Catch all non-200 status codes, and presume something went wrong
if 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 None
try:
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 None
return 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 = True
return None
diff --git a/modules/sfp_zetalytics.py b/modules/sfp_zetalytics.py
index 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 = True
return None