SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Less error-prone.
smicallef022fef65fd6a
diff --git a/modules/sfp_websvr.py b/modules/sfp_websvr.pyindex 1dcbb184..b9ab6ff1 100644--- a/modules/sfp_websvr.py+++ b/modules/sfp_websvr.py@@ -59,6 +59,10 @@ class sfp_websvr(SpiderFootPlugin):sf.debug("Not collecting web server information for external sites.")return None+ # Protect myself from bad data+ if eventData is not dict():+ return None+# Could apply some smarts here, for instance looking for certain# banners and therefore classifying them further (type and version,# possibly OS. This could also trigger additional tests, such as 404s@@ -70,7 +74,7 @@ class sfp_websvr(SpiderFootPlugin):sf.info("Found web server: " + eventData['Server'] + " (" + eventSource + ")")- if (eventData.has_key('x-powered-by')):+ if eventData.has_key('x-powered-by'):evt = SpiderFootEvent("WEBSERVER_TECHNOLOGY", eventData['x-powered-by'],self.__name__, parentEvent)self.notifyListeners(evt)