Skip to content

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

Fixed bug causing mis-handling of reverse-resolved IP addresses

smicallef093c1b80c15d
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index 37b5f0e7..da5051b6 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -203,7 +203,10 @@ class sfp_dns(SpiderFootPlugin):
addrs = self.resolveIP(eventData)
for addr in addrs:
- self.processHost(addr, parentEvent, affiliate=False)
+ if self.getTarget().matches(addr):
+ self.processHost(addr, parentEvent, affiliate=False)
+ else:
+ self.processHost(addr, parentEvent, affiliate=True)
# Try to reverse-resolve IPs 'near' the identified IP
if self.opts['lookaside'] and eventName == 'IP_ADDRESS':