Skip to content

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

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

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