Skip to content

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

Check for when hostDomain() returns None.

smicallefbe12568ab0b7
diff --git a/modules/sfp_abusech.py b/modules/sfp_abusech.py
index 77545841..d73fda97 100644
--- a/modules/sfp_abusech.py
+++ b/modules/sfp_abusech.py
@@ -167,6 +167,8 @@ class sfp_abusech(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_alienvaultiprep.py b/modules/sfp_alienvaultiprep.py
index aff2be46..9a8eb962 100644
--- a/modules/sfp_alienvaultiprep.py
+++ b/modules/sfp_alienvaultiprep.py
@@ -120,6 +120,8 @@ class sfp_alienvaultiprep(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_badipscom.py b/modules/sfp_badipscom.py
index df7a7b88..509daba8 100644
--- a/modules/sfp_badipscom.py
+++ b/modules/sfp_badipscom.py
@@ -119,6 +119,8 @@ class sfp_badipscom(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_bambenek.py b/modules/sfp_bambenek.py
index 83f1ab73..0acc49a5 100644
--- a/modules/sfp_bambenek.py
+++ b/modules/sfp_bambenek.py
@@ -132,6 +132,8 @@ class sfp_bambenek(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_blocklistde.py b/modules/sfp_blocklistde.py
index 6b8651cc..8f4a139c 100644
--- a/modules/sfp_blocklistde.py
+++ b/modules/sfp_blocklistde.py
@@ -120,6 +120,8 @@ class sfp_blocklistde(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_botvrij.py b/modules/sfp_botvrij.py
index d7e6997e..181a0a07 100644
--- a/modules/sfp_botvrij.py
+++ b/modules/sfp_botvrij.py
@@ -118,6 +118,8 @@ class sfp_botvrij(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_cinsscore.py b/modules/sfp_cinsscore.py
index eb5631bf..257d6552 100644
--- a/modules/sfp_cinsscore.py
+++ b/modules/sfp_cinsscore.py
@@ -118,6 +118,8 @@ class sfp_cinsscore(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_cleantalk.py b/modules/sfp_cleantalk.py
index 92043847..15d65b53 100644
--- a/modules/sfp_cleantalk.py
+++ b/modules/sfp_cleantalk.py
@@ -118,6 +118,8 @@ class sfp_cleantalk(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_coinblocker.py b/modules/sfp_coinblocker.py
index 9d60870f..59c2ea67 100644
--- a/modules/sfp_coinblocker.py
+++ b/modules/sfp_coinblocker.py
@@ -132,6 +132,8 @@ class sfp_coinblocker(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.py
index 430a112b..9098310f 100644
--- a/modules/sfp_customfeed.py
+++ b/modules/sfp_customfeed.py
@@ -101,6 +101,8 @@ class sfp_customfeed(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_cybercrimetracker.py b/modules/sfp_cybercrimetracker.py
index 7e73b22c..f8568e15 100644
--- a/modules/sfp_cybercrimetracker.py
+++ b/modules/sfp_cybercrimetracker.py
@@ -119,6 +119,8 @@ class sfp_cybercrimetracker(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.py
index 3380827a..95d24d6d 100644
--- a/modules/sfp_dnsresolve.py
+++ b/modules/sfp_dnsresolve.py
@@ -141,7 +141,7 @@ class sfp_dnsresolve(SpiderFootPlugin):
# In case the domain of the provided host is different, report that too
dom = self.sf.hostDomain(eventData, self.opts['_internettlds'])
- if dom == eventData:
+ if dom == eventData or dom is None:
return None
evt = SpiderFootEvent(ev, dom, self.__name__, parentEvent)
self.notifyListeners(evt)
@@ -338,6 +338,8 @@ class sfp_dnsresolve(SpiderFootPlugin):
# Report the domain for that host
if htype == "INTERNET_NAME":
dom = self.sf.hostDomain(host, self.opts['_internettlds'])
+ if not dom:
+ return None
self.processDomain(dom, evt, False, host)
# Try obtain the IPv6 address
@@ -359,6 +361,8 @@ class sfp_dnsresolve(SpiderFootPlugin):
if htype == "AFFILIATE_INTERNET_NAME":
dom = self.sf.hostDomain(host, self.opts['_internettlds'])
+ if not dom:
+ return None
if dom == host and not self.sf.isDomain(dom, self.opts['_internettlds']):
return evt
self.processDomain(dom, evt, True, host)
diff --git a/modules/sfp_duckduckgo.py b/modules/sfp_duckduckgo.py
index 8271bbfd..ae1df349 100644
--- a/modules/sfp_duckduckgo.py
+++ b/modules/sfp_duckduckgo.py
@@ -56,6 +56,8 @@ class sfp_duckduckgo(SpiderFootPlugin):
if self.opts['affiliatedomains'] and "AFFILIATE_" in eventName:
eventData = self.sf.hostDomain(eventData, self.opts['_internettlds'])
+ if not eventData:
+ return None
if eventData in self.results:
self.sf.debug("Already did a search for " + eventData + ", skipping.")
diff --git a/modules/sfp_emergingthreats.py b/modules/sfp_emergingthreats.py
index 1744edb2..28c90a53 100644
--- a/modules/sfp_emergingthreats.py
+++ b/modules/sfp_emergingthreats.py
@@ -118,6 +118,8 @@ class sfp_emergingthreats(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_fortinet.py b/modules/sfp_fortinet.py
index 3fea685b..ffb08af2 100644
--- a/modules/sfp_fortinet.py
+++ b/modules/sfp_fortinet.py
@@ -114,6 +114,8 @@ class sfp_fortinet(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_greensnow.py b/modules/sfp_greensnow.py
index 81718d91..e086df81 100644
--- a/modules/sfp_greensnow.py
+++ b/modules/sfp_greensnow.py
@@ -118,6 +118,8 @@ class sfp_greensnow(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_isc.py b/modules/sfp_isc.py
index 3953a8fa..7d94201e 100644
--- a/modules/sfp_isc.py
+++ b/modules/sfp_isc.py
@@ -112,6 +112,8 @@ class sfp_isc(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_malwaredomainlist.py b/modules/sfp_malwaredomainlist.py
index bed9afdf..470f859d 100644
--- a/modules/sfp_malwaredomainlist.py
+++ b/modules/sfp_malwaredomainlist.py
@@ -130,6 +130,8 @@ class sfp_malwaredomainlist(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_malwaredomains.py b/modules/sfp_malwaredomains.py
index f9dfc7b3..4374d380 100644
--- a/modules/sfp_malwaredomains.py
+++ b/modules/sfp_malwaredomains.py
@@ -115,6 +115,8 @@ class sfp_malwaredomains(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_multiproxy.py b/modules/sfp_multiproxy.py
index 66e5fbba..6ec1a8f7 100644
--- a/modules/sfp_multiproxy.py
+++ b/modules/sfp_multiproxy.py
@@ -114,6 +114,8 @@ class sfp_multiproxy(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_openphish.py b/modules/sfp_openphish.py
index f86102d2..ae6a48d1 100644
--- a/modules/sfp_openphish.py
+++ b/modules/sfp_openphish.py
@@ -116,6 +116,8 @@ class sfp_openphish(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_phishtank.py b/modules/sfp_phishtank.py
index bee794d6..5d2658d8 100644
--- a/modules/sfp_phishtank.py
+++ b/modules/sfp_phishtank.py
@@ -116,6 +116,8 @@ class sfp_phishtank(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_talosintel.py b/modules/sfp_talosintel.py
index 36515d1a..6a85e799 100644
--- a/modules/sfp_talosintel.py
+++ b/modules/sfp_talosintel.py
@@ -118,6 +118,8 @@ class sfp_talosintel(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.py
index a066ee00..a9f73272 100644
--- a/modules/sfp_torexits.py
+++ b/modules/sfp_torexits.py
@@ -120,6 +120,8 @@ class sfp_torexits(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_totalhash.py b/modules/sfp_totalhash.py
index 94c203cd..a8791d15 100644
--- a/modules/sfp_totalhash.py
+++ b/modules/sfp_totalhash.py
@@ -118,6 +118,8 @@ class sfp_totalhash(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_voipbl.py b/modules/sfp_voipbl.py
index 374f1fc3..c24e0db7 100644
--- a/modules/sfp_voipbl.py
+++ b/modules/sfp_voipbl.py
@@ -118,6 +118,8 @@ class sfp_voipbl(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_vxvault.py b/modules/sfp_vxvault.py
index 126522e2..53c21ec9 100644
--- a/modules/sfp_vxvault.py
+++ b/modules/sfp_vxvault.py
@@ -119,6 +119,8 @@ class sfp_vxvault(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']
diff --git a/modules/sfp_watchguard.py b/modules/sfp_watchguard.py
index 18500579..3b1d1200 100644
--- a/modules/sfp_watchguard.py
+++ b/modules/sfp_watchguard.py
@@ -111,6 +111,8 @@ class sfp_watchguard(SpiderFootPlugin):
# Get the base domain if we're supplied a domain
if targetType == "domain":
targetDom = self.sf.hostDomain(target, self.opts['_internettlds'])
+ if not targetDom:
+ return None
for check in list(malchecks.keys()):
cid = malchecks[check]['id']