Skip to content

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

Cleanly handle CIRCL.LU auth failures, and report WEBSERVER_TECHNOLOGY instead of SOFTWARE_USED since it seems to be more applicable.

smicallefdec3efa78903
diff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.py
index d07fcfd8..ecd0ce24 100644
--- a/modules/sfp_circllu.py
+++ b/modules/sfp_circllu.py
@@ -87,7 +87,7 @@ class sfp_circllu(SpiderFootPlugin):
res = self.sf.fetchUrl(url, timeout=30,
useragent="SpiderFoot", headers=headers)
- if res['code'] in [ "400", "429", "500", "403" ]:
+ if res['code'] not in [ "200", "201" ]:
self.sf.error("CIRCL.LU access seems to have been rejected or you have exceeded usage limits.", False)
self.errorState = True
return None
diff --git a/modules/sfp_tool_whatweb.py b/modules/sfp_tool_whatweb.py
index 79bb6f4b..7aa84b91 100644
--- a/modules/sfp_tool_whatweb.py
+++ b/modules/sfp_tool_whatweb.py
@@ -161,7 +161,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):
for plugin in plugin_matches:
if plugin in blacklist:
continue
- evt = SpiderFootEvent('SOFTWARE_USED', plugin, self.__name__, event)
+ evt = SpiderFootEvent('WEBSERVER_TECHNOLOGY', plugin, self.__name__, event)
self.notifyListeners(evt)
# End of sfp_tool_whatweb class