SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_certspotter: Fix cert parsing bug.
smicallef04d8727a6f2f
diff --git a/modules/sfp_certspotter.py b/modules/sfp_certspotter.pyindex 2f06a1a1..c6baf42e 100644--- a/modules/sfp_certspotter.py+++ b/modules/sfp_certspotter.py@@ -193,9 +193,10 @@ class sfp_certspotter(SpiderFootPlugin):continuetry:- dercert = result.get('cert').get('data')- pemcert = self.sf.sslDerToPem(dercert)- cert = self.sf.parseCert(pemcert, eventData, self.opts['certexpiringdays'])+ rawcert = "-----BEGIN CERTIFICATE-----\n"+ rawcert += result.get('cert').get('data')+ rawcert += "\n-----END CERTIFICATE-----\n"+ cert = self.sf.parseCert(rawcert, eventData, self.opts['certexpiringdays'])except Exception as e:self.info(f"Error parsing certificate: {e}")continue