Skip to content

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

Print host and IP when host no longer resolves to IP

Brendan Coles3e95d53d51c3
diff --git a/modules/sfp_bingsharedip.py b/modules/sfp_bingsharedip.py
index 72db0b24..9224d549 100644
--- a/modules/sfp_bingsharedip.py
+++ b/modules/sfp_bingsharedip.py
@@ -127,7 +127,7 @@ class sfp_bingsharedip(SpiderFootPlugin):
self.sf.debug("Skipping " + site + " because it is on the same domain.")
continue
if self.opts['verify'] and not self.validateIP(site, ip):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + site + " no longer resolves to " + ip)
continue
evt = SpiderFootEvent("CO_HOSTED_SITE", site, self.__name__, event)
self.notifyListeners(evt)
diff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.py
index 2bb9ec32..3c06da9c 100644
--- a/modules/sfp_circllu.py
+++ b/modules/sfp_circllu.py
@@ -218,7 +218,7 @@ class sfp_circllu(SpiderFootPlugin):
for co in cohosts:
if eventName == "IP_ADDRESS" and (self.opts['verify'] and not self.validateIP(co, eventData)):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + co + " no longer resolves to " + eventData)
continue
if not self.opts['cohostsamedomain']:
diff --git a/modules/sfp_hackertarget.py b/modules/sfp_hackertarget.py
index f85dc187..4b5fc744 100644
--- a/modules/sfp_hackertarget.py
+++ b/modules/sfp_hackertarget.py
@@ -136,7 +136,7 @@ class sfp_hackertarget(SpiderFootPlugin):
if h not in myres and h != ip:
if self.opts['verify'] and not self.validateIP(h, ip):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + h + " no longer resolves to " + ip)
continue
if self.cohostcount < self.opts['maxcohost']:
evt = SpiderFootEvent("CO_HOSTED_SITE", h.lower(), self.__name__, event)
diff --git a/modules/sfp_mnemonic.py b/modules/sfp_mnemonic.py
index 9f97db8a..5b270d49 100644
--- a/modules/sfp_mnemonic.py
+++ b/modules/sfp_mnemonic.py
@@ -182,7 +182,7 @@ class sfp_mnemonic(SpiderFootPlugin):
for co in cohosts:
if eventName == "IP_ADDRESS" and (self.opts['verify'] and not self.validateIP(co, eventData)):
- self.sf.debug("Host no longer resolves to " + eventData)
+ self.sf.debug("Host " + co + " no longer resolves to " + eventData)
continue
if not self.opts['cohostsamedomain']:
diff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.py
index f4daefe9..fd2a0c99 100644
--- a/modules/sfp_riskiq.py
+++ b/modules/sfp_riskiq.py
@@ -211,7 +211,7 @@ class sfp_riskiq(SpiderFootPlugin):
for co in cohosts:
if eventName == "IP_ADDRESS" and (self.opts['verify'] and not self.validateIP(co, eventData)):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + co + " no longer resolves to " + eventData)
continue
if not self.opts['cohostsamedomain']:
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.py
index c8e186bc..5858a12a 100644
--- a/modules/sfp_robtex.py
+++ b/modules/sfp_robtex.py
@@ -168,7 +168,7 @@ class sfp_robtex(SpiderFootPlugin):
continue
if self.opts['verify'] and not self.validateIP(r['o'], ip):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + r['o'] + " no longer resolves to " + ip)
continue
evt = SpiderFootEvent("CO_HOSTED_SITE", r['o'], self.__name__, event)
self.notifyListeners(evt)
diff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.py
index 8d6a4db1..c3e022eb 100644
--- a/modules/sfp_securitytrails.py
+++ b/modules/sfp_securitytrails.py
@@ -178,7 +178,7 @@ class sfp_securitytrails(SpiderFootPlugin):
if h not in myres and h != ip:
if self.opts['verify'] and not self.validateIP(h, ip):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + h + " no longer resolves to " + ip)
continue
myres.append(h.lower())
e = SpiderFootEvent("CO_HOSTED_SITE", h, self.__name__, event)
diff --git a/modules/sfp_viewdns.py b/modules/sfp_viewdns.py
index 68c6ef0d..65c404a2 100644
--- a/modules/sfp_viewdns.py
+++ b/modules/sfp_viewdns.py
@@ -190,7 +190,7 @@ class sfp_viewdns(SpiderFootPlugin):
self.cohostcount += 1
if eventName == "IP_ADDRESS" and self.opts['verify']:
if not self.validateIP(h, eventData):
- self.sf.debug("Host no longer resolves to our IP.")
+ self.sf.debug("Host " + h + " no longer resolves to " + eventData)
continue
e = SpiderFootEvent("CO_HOSTED_SITE", h, self.__name__, event)
self.notifyListeners(e)