Skip to content

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

Update sfp_badpackets.py

Krishnasis Mandalf1b17d045615
diff --git a/modules/sfp_badpackets.py b/modules/sfp_badpackets.py
index a8ea6023..6b8e22c0 100644
--- a/modules/sfp_badpackets.py
+++ b/modules/sfp_badpackets.py
@@ -210,6 +210,10 @@ class sfp_badpackets(SpiderFootPlugin):
for record in records:
maliciousIP = record.get('source_ip_address')
+ if maliciousIP != addr:
+ self.sf.error("Reported address doesn't match requested, skipping.", False)
+ continue
+
if maliciousIP:
maliciousIPDesc = "Bad Packets [ " + str(maliciousIP) + " ]\n"