Skip to content

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

Look up base domain supplied and not just subs.

smicallefcc74dff943e9
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index 9ae84ff7..18f6c1ad 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -203,6 +203,8 @@ class sfp_dns(SpiderFootPlugin):
self.notifyListeners(evt)
sublist = self.opts['commonsubs']
+ # Also look up the base target itself
+ sublist.append('')
# User may have supplied a file or URL containing the subdomains
if self.opts['commonsubs'][0].startswith("http://") or \
self.opts['commonsubs'][0].startswith("https://") or \
@@ -222,7 +224,10 @@ class sfp_dns(SpiderFootPlugin):
return None
count += 1
- name = sub + "." + self.baseDomain
+ if sub != "":
+ name = sub + "." + self.baseDomain
+ else:
+ name = self.baseDomain
# Don't look up stuff twice
if self.results.has_key(name):
sf.debug("Skipping " + name + " as already resolved.")