SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Obtain the ASN and product.
Steve Micallef7c181a1dd4a2
diff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.pyindex e0745c9e..e33145b8 100644--- a/modules/sfp_shodan.py+++ b/modules/sfp_shodan.py@@ -143,7 +143,7 @@ class sfp_shodan(SpiderFootPlugin):if rec is None:continue- evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", str(rec), self.__name__, event)+ evt = SpiderFootEvent("RAW_RIR_DATA", str(rec), self.__name__, event)self.notifyListeners(evt)if self.checkForStop():@@ -166,6 +166,8 @@ class sfp_shodan(SpiderFootPlugin):for r in rec['data']:port = str(r.get('port'))banner = r.get('banner')+ asn = r.get('asn')+ product = r.get('product')if port is not None:# Notify other modules of what you've found@@ -180,6 +182,16 @@ class sfp_shodan(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)+ if product is not None:+ evt = SpiderFootEvent("SOFTWARE_USED", product,+ self.__name__, event)+ self.notifyListeners(evt)++ if asn is not None:+ evt = SpiderFootEvent("BGP_AS_MEMBER", asn.replace("AS", ""),+ self.__name__, event)+ self.notifyListeners(evt)+return None# End of sfp_shodan class