Skip to content

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

Bug fix / clean-up.

smicallef645b2b1e275b
diff --git a/modules/sfp_spur.py b/modules/sfp_spur.py
index 440619bc..c6992c86 100644
--- a/modules/sfp_spur.py
+++ b/modules/sfp_spur.py
@@ -190,11 +190,10 @@ class sfp_spur(SpiderFootPlugin):
data = json.loads(content)
+ # For netblocks, create the event for the IP address to link to later
if eventName.startswith("NETBLOCK_"):
ipEvt = SpiderFootEvent("IP_ADDRESS", addr, self.__name__, event)
- self.notifyListeners(evt)
-
- if eventName.startswith("NETBLOCK_"):
+ self.notifyListeners(ipEvt)
evt = SpiderFootEvent("RAW_RIR_DATA", str(data), self.__name__, ipEvt)
self.notifyListeners(evt)
else: