SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_sslcert: Report hosts on other domains as co-hosts, not affiliates.
smicallef52a47647120e
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.pyindex 12e5891d..48d4937e 100644--- a/modules/sfp_sslcert.py+++ b/modules/sfp_sslcert.py@@ -66,11 +66,11 @@ class sfp_sslcert(SpiderFootPlugin):# produced.def producedEvents(self):return ['TCP_PORT_OPEN', 'INTERNET_NAME', 'INTERNET_NAME_UNRESOLVED',- 'AFFILIATE_INTERNET_NAME', 'AFFILIATE_INTERNET_NAME_UNRESOLVED',+ 'CO_HOSTED_SITE', 'CO_HOSTED_SITE_DOMAIN',"SSL_CERTIFICATE_ISSUED", "SSL_CERTIFICATE_ISSUER","SSL_CERTIFICATE_MISMATCH", "SSL_CERTIFICATE_EXPIRED","SSL_CERTIFICATE_EXPIRING", "SSL_CERTIFICATE_RAW",- "DOMAIN_NAME", 'AFFILIATE_DOMAIN_NAME']+ "DOMAIN_NAME"]# Handle events sent to this moduledef handleEvent(self, event):@@ -145,19 +145,18 @@ class sfp_sslcert(SpiderFootPlugin):if self.getTarget().matches(domain, includeChildren=True):evt_type = 'INTERNET_NAME'+ if self.opts['verify'] and not self.sf.resolveHost(domain) and not self.sf.resolveHost6(domain):+ self.debug(f"Host {domain} could not be resolved")+ evt_type += '_UNRESOLVED'else:- evt_type = 'AFFILIATE_INTERNET_NAME'-- if self.opts['verify'] and not self.sf.resolveHost(domain) and not self.sf.resolveHost6(domain):- self.debug(f"Host {domain} could not be resolved")- evt_type += '_UNRESOLVED'+ evt_type = 'CO_HOSTED_SITE'evt = SpiderFootEvent(evt_type, domain, self.__name__, event)self.notifyListeners(evt)if self.sf.isDomain(domain, self.opts['_internettlds']):- if evt_type.startswith('AFFILIATE'):- evt = SpiderFootEvent('AFFILIATE_DOMAIN_NAME', domain, self.__name__, event)+ if evt_type == 'CO_HOSTED_SITE':+ evt = SpiderFootEvent('CO_HOSTED_SITE_DOMAIN', domain, self.__name__, event)self.notifyListeners(evt)else:evt = SpiderFootEvent('DOMAIN_NAME', domain, self.__name__, event)