SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed SSL cert handling bugs.
smicallefa296262ce392
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.pyindex dd624779..1a27ec98 100644--- a/modules/sfp_sslcert.py+++ b/modules/sfp_sslcert.py@@ -123,15 +123,16 @@ class sfp_sslcert(SpiderFootPlugin):# Check if the hostname matches the name of the serverdef checkHostMatch(self, cert, fqdn, sevt):fqdn = fqdn.lower()- hosts = list()+ hosts = ""# Extract the CN from the issued sectionissued = cert.get_subject().as_text()+ sf.debug("Checking for " + fqdn + " in " + issued.lower())if "cn=" + fqdn in issued.lower():- hosts = [ fqdn ]+ hosts = 'dns:' + fqdntry:- hosts.append(cert.get_ext("subjectAltName").get_value().lower())+ hosts = hosts + " " + cert.get_ext("subjectAltName").get_value().lower()except LookupError as e:sf.debug("No alternative name found in certificate.")