Skip to content

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

Addressed issue #982 - problem goes back to the original code and I suspect it was an oversight/bug.

smicallef89b7633608c9
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.py
index 68c985fb..04b757b9 100644
--- a/modules/sfp_dnsresolve.py
+++ b/modules/sfp_dnsresolve.py
@@ -239,14 +239,14 @@ class sfp_dnsresolve(SpiderFootPlugin):
if addrs:
self.sf.debug(f"Found a reversed hostname from {ipaddr} ({addrs})")
# TODO: review why addr is not used in this loop. should `ipaddr` instead be `addr` ?
- for _addr in addrs:
+ for addr in addrs:
# Generate an event for the IP, then
# let the handling by this module take
# care of follow-up processing.
if self.checkForStop():
return None
- self.processHost(ipaddr, parentEvent, False)
+ self.processHost(addr, parentEvent, False)
return None
if eventName in ["IP_ADDRESS", "INTERNET_NAME", "IPV6_ADDRESS",