SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Bug fix in cases where `getSubjectAltNames` would return `None`.
smicallef6a1a9c2566e0
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.pyindex cac79f48..12129946 100644--- a/modules/sfp_sslcert.py+++ b/modules/sfp_sslcert.py@@ -39,11 +39,11 @@ class sfp_sslcert(SpiderFootPlugin):# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.- results = dict()+ results = Nonedef setup(self, sfc, userOpts=dict()):self.sf = sfc- self.results = dict()+ self.results = self.tempStorage()# Clear / reset any other class member variables here# or you risk them persisting between threads.@@ -200,16 +200,14 @@ class sfp_sslcert(SpiderFootPlugin):sans = cert.get_ext('subjectAltName').get_value().encode('raw_unicode_escape')if sans is None:- return None+ return namesfor san in sans.split(','):names.append(san.strip())except LookupError as e:self.sf.debug("No alternative name found in certificate.")- return Noneexcept BaseException as e:self.sf.debug("Error parsing certificate:" + str(e))- return Nonereturn names