Skip to content

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

Handle throttling by VirusTotal.

smicallef0e73df190183
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 0995a2b9..ec4cedd9 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -148,6 +148,10 @@ class sfp_virustotal(SpiderFootPlugin):
useragent="SpiderFoot"
)
+ if res['code'] == "204":
+ self.sf.error("Your request to VirusTotal was throttled.")
+ return None
+
# Public API is limited to 4 queries per minute
if self.opts['publicapi']:
time.sleep(15)