SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fix data sources to be reflective of the data being processed, not the module doing the processing.
smicallef66e0b9efed8d
diff --git a/modules/sfp_cookie.py b/modules/sfp_cookie.pyindex c383e1b5..3d7d400d 100644--- a/modules/sfp_cookie.py+++ b/modules/sfp_cookie.py@@ -25,6 +25,7 @@ class sfp_cookie(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = self.tempStorage()+ self.__dataSource__ = "Target Website"for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]diff --git a/modules/sfp_filemeta.py b/modules/sfp_filemeta.pyindex cede4806..2c776beb 100644--- a/modules/sfp_filemeta.py+++ b/modules/sfp_filemeta.py@@ -41,6 +41,7 @@ class sfp_filemeta(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = self.tempStorage()+ self.__dataSource__ = "Target Website"for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]diff --git a/modules/sfp_intfiles.py b/modules/sfp_intfiles.pyindex 81a57470..5f720475 100644--- a/modules/sfp_intfiles.py+++ b/modules/sfp_intfiles.py@@ -31,6 +31,7 @@ class sfp_intfiles(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = self.tempStorage()+ self.__dataSource__ = "Target Website"for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]diff --git a/modules/sfp_phone.py b/modules/sfp_phone.pyindex 7a9e8d75..ea0835d1 100644--- a/modules/sfp_phone.py+++ b/modules/sfp_phone.py@@ -86,6 +86,10 @@ class sfp_phone(SpiderFootPlugin):if number_carrier:evt = SpiderFootEvent("PROVIDER_TELCO", number_carrier, self.__name__, event)+ if event.moduleDataSource:+ evt.moduleDataSource = event.moduleDataSource+ else:+ evt.moduleDataSource = "Unknown"self.notifyListeners(evt)else:self.sf.debug("No carrier information found for " + eventData)diff --git a/modules/sfp_webanalytics.py b/modules/sfp_webanalytics.pyindex 192e1e6f..19819c3c 100644--- a/modules/sfp_webanalytics.py+++ b/modules/sfp_webanalytics.py@@ -53,6 +53,11 @@ class sfp_webanalytics(SpiderFootPlugin):self.sf.debug("Received event, %s, from %s" % (eventName, srcModuleName))+ if event.moduleDataSource:+ datasource = event.moduleDataSource+ else:+ datasource = "Unknown"+if eventName == 'TARGET_WEB_CONTENT':# Google Analyticsmatches = re.findall(r"\bua\-\d{4,10}\-\d{1,4}\b", eventData, re.IGNORECASE)@@ -68,6 +73,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Google Analytics: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Google AdSense@@ -80,6 +86,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Google AdSense: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Google Website Verification@@ -90,6 +97,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Google Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)matches = re.findall(r'<meta name="verify-v1" content="([a-z0-9\-\+_=]{43,44})"', eventData, re.IGNORECASE)@@ -98,6 +106,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Google Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Quantcast@@ -108,6 +117,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Quantcast: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Ahrefs Site Verification@@ -117,6 +127,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Ahrefs Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)if eventName == 'DNS_TEXT':@@ -127,6 +138,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Google Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# LogMeIn Domain Verification@@ -136,6 +148,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","LogMeIn Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)matches = re.findall(r'logmein-verification-code=([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})$', eventData.strip(), re.IGNORECASE)@@ -143,6 +156,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","LogMeIn Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# DocuSign Domain Verification@@ -152,6 +166,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","DocuSign Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# GlobalSign Site Verification@@ -161,6 +176,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","GlobalSign Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Atlassian Domain Verification@@ -170,6 +186,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Atlassian Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Adobe IDP Site Verification@@ -179,6 +196,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Adobe IDP Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)matches = re.findall(r'adobe-idp-site-verification=([a-f0-9]{64})$', eventData.strip(), re.IGNORECASE)@@ -186,6 +204,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Adobe IDP Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Adobe Domain Verification@@ -195,6 +214,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Adobe Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Stripe Domain Verification@@ -204,6 +224,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Stripe Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)@@ -214,6 +235,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","TeamViewer SSO Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Aliyun Site Verification@@ -222,6 +244,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Aliyun Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Facebook Domain Verification@@ -231,6 +254,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Facebook Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Citrix Domain Verification@@ -239,6 +263,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Citrix Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Dropbox Domain Verification@@ -248,6 +273,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Dropbox Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Detectify Domain Verification@@ -257,6 +283,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Detectify Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Drift Domain Verification@@ -265,6 +292,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Drift Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Ahrefs Site Verification@@ -274,6 +302,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Ahrefs Site Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Statuspage.io Domain Verification@@ -283,6 +312,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Statuspage Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Zoom.us Domain Verification@@ -292,6 +322,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Zoom.us Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Mail.ru Domain Verification@@ -300,6 +331,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Mail.ru Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Yandex Domain Verification@@ -308,6 +340,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Yandex Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Brave Ledger Verification@@ -317,6 +350,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Brave Ledger Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# have-i-been-pwned Verification@@ -325,6 +359,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","have-i-been-pwned Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)# Cisco Live Domain Verification@@ -334,6 +369,7 @@ class sfp_webanalytics(SpiderFootPlugin):evt = SpiderFootEvent("WEB_ANALYTICS_ID","Cisco Live Domain Verification: " + m,self.__name__, event)+ evt.moduleDataSource = datasourceself.notifyListeners(evt)return None