Skip to content

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

sfp_robtex and sfp_virustotal: More aggressively set errorState.

smicallef0f3c22d6fc70
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.py
index 8e550a10..037fd057 100644
--- a/modules/sfp_robtex.py
+++ b/modules/sfp_robtex.py
@@ -177,12 +177,14 @@ class sfp_robtex(SpiderFootPlugin):
if res['content'] is None:
self.error("No reply from robtex API.")
+ self.errorState = True
continue
try:
data = json.loads(res['content'])
except Exception as e:
self.error(f"Error parsing JSON from Robtex API: {e}")
+ self.errorState = True
return
if not data:
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 033fb89e..cb9d1fc7 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -150,6 +150,7 @@ class sfp_virustotal(SpiderFootPlugin):
if res['code'] == "204":
self.error("Your request to VirusTotal was throttled.")
+ self.errorState = True
return None
# Public API is limited to 4 queries per minute