SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Require an API key to be set.
Stevef9643eea9dac
diff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.pyindex 981367c1..dd9b0287 100644--- a/modules/sfp_wigle.py+++ b/modules/sfp_wigle.py@@ -38,10 +38,12 @@ class sfp_wigle(SpiderFootPlugin):# or you run the risk of data persisting between scan runs.results = dict()+ errorState = Falsedef setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = dict()+ self.errorState = False# Clear / reset any other class member variables here# or you risk them persisting between threads.@@ -126,6 +128,14 @@ class sfp_wigle(SpiderFootPlugin):srcModuleName = event.moduleeventData = event.data+ if self.errorState:+ return None++ if self.opts['api_key_encoded'] == "":+ self.sf.error("You enabled sfp_wigle but did not set an API key!", False)+ self.errorState = True+ return None+self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)# Don't look up stuff twice