Skip to content

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

Handle when the API key is not provided.

Stevea9bf6ea332d6
diff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.py
index db69c6ad..2e547ce4 100644
--- a/modules/sfp_botscout.py
+++ b/modules/sfp_botscout.py
@@ -52,6 +52,10 @@ class sfp_botscout(SpiderFootPlugin):
self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)
+ if self.opts['apikey'] == "":
+ self.sf.error("You enabled sfp_botscout but did not set an API key!", False)
+ return None
+
# Don't look up stuff twice
if eventData in self.results:
self.sf.debug("Skipping " + eventData + " as already searched.")