Skip to content

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

Perform the same check as sfp_crt for host validity.

smicalleff27616a8de89
diff --git a/modules/sfp_ssltools.py b/modules/sfp_ssltools.py
index 32c626bf..cab3af6f 100644
--- a/modules/sfp_ssltools.py
+++ b/modules/sfp_ssltools.py
@@ -194,6 +194,9 @@ class sfp_ssltools(SpiderFootPlugin):
for san in set(cert.get('altnames', list())):
domain = san.replace("*.", "")
+ if not self.sf.validHost(domain, self.opts['_internettlds']):
+ continue
+
if self.getTarget().matches(domain, includeChildren=True):
evt_type = 'INTERNET_NAME'
else: