SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fetch SSL certs from IP addresses too.
Steve Micallef96f158f47aef
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.pyindex e8d3bc34..fb7c09a1 100644--- a/modules/sfp_sslcert.py+++ b/modules/sfp_sslcert.py@@ -53,7 +53,7 @@ class sfp_sslcert(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["INTERNET_NAME", "LINKED_URL_INTERNAL"]+ return ["INTERNET_NAME", "LINKED_URL_INTERNAL", "IP_ADDRESS"]# What events this module produces# This is to support the end user in selecting modules based on events@@ -81,6 +81,9 @@ class sfp_sslcert(SpiderFootPlugin):else:return None+ if eventName == "IP_ADDRESS":+ fqdn = "https://" + eventData+if not eventData.lower().startswith("https://") and not self.opts['tryhttp']:return None@@ -109,7 +112,8 @@ class sfp_sslcert(SpiderFootPlugin):# Generate events for other cert aspectsself.getIssued(m2cert, event)self.getIssuer(m2cert, event)- self.checkHostMatch(m2cert, fqdn, event)+ if eventName != "IP_ADDRESS":+ self.checkHostMatch(m2cert, fqdn, event)try:self.checkExpiry(m2cert, event)except M2Crypto.X509.X509Error as e: