Skip to content

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

sfp_tool_wafw00f: Check if output JSON is empty (#1369)

bcoles8348d95c9d69
diff --git a/modules/sfp_tool_wafw00f.py b/modules/sfp_tool_wafw00f.py
index bb930e07..5fcb1511 100644
--- a/modules/sfp_tool_wafw00f.py
+++ b/modules/sfp_tool_wafw00f.py
@@ -127,6 +127,10 @@ class sfp_tool_wafw00f(SpiderFootPlugin):
self.sf.error(f"Could not parse wafw00f output as JSON: {e}\nstdout: {stdout}")
return
+ if not result_json:
+ self.sf.debug(f"wafw00f returned no output for {eventData}")
+ return
+
evt = SpiderFootEvent('RAW_RIR_DATA', json.dumps(result_json), self.__name__, event)
self.notifyListeners(evt)