SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Look up base domain supplied and not just subs.
smicallefcc74dff943e9
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.pyindex 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 subdomainsif self.opts['commonsubs'][0].startswith("http://") or \self.opts['commonsubs'][0].startswith("https://") or \@@ -222,7 +224,10 @@ class sfp_dns(SpiderFootPlugin):return Nonecount += 1- name = sub + "." + self.baseDomain+ if sub != "":+ name = sub + "." + self.baseDomain+ else:+ name = self.baseDomain# Don't look up stuff twiceif self.results.has_key(name):sf.debug("Skipping " + name + " as already resolved.")