Skip to content

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

Fix '.' issue in hosts found in wildcard certs.

smicallefb7b1ddd57237
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.py
index 66662c9a..c9b9eba8 100644
--- a/modules/sfp_dnsresolve.py
+++ b/modules/sfp_dnsresolve.py
@@ -169,6 +169,9 @@ class sfp_dnsresolve(SpiderFootPlugin):
matches = re.findall(pat, data)
if matches:
for match in matches:
+ # Wildcard certs will come in as .blah.blah
+ if match[1].startswith("."):
+ match[1] = match[1][1:]
self.processHost(match[1], parentEvent, False)
# Nothing left to do with internal links and raw data
return None