SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tweaks and fixes.
smicallef7418abc832e0
diff --git a/modules/sfp_callername.py b/modules/sfp_callername.pyindex 6fa80ad2..f7496f3f 100644--- a/modules/sfp_callername.py+++ b/modules/sfp_callername.py@@ -54,7 +54,6 @@ class sfp_callername(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = 'CallerName'self.results = self.tempStorage()self.errorState = Falsediff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.pyindex 0f6faf36..7cea68cb 100644--- a/modules/sfp_circllu.py+++ b/modules/sfp_circllu.py@@ -30,14 +30,15 @@ class sfp_circllu(SpiderFootPlugin):'website': "https://www.circl.lu/",'model': "FREE_AUTH_UNLIMITED",'references': [- "https://www.circl.lu/services/training/",+ "https://www.circl.lu/services/passive-dns/",+ "https://www.circl.lu/services/passive-ssl/","https://www.circl.lu/services/","https://www.circl.lu/pub/","https://www.circl.lu/projects"],'apiKeyInstructions': ["Visit https://www.circl.lu/contact/",- "Contact with email or phone to request access for API",+ "Contact with email or phone to request access for Passive DNS and Passive SSL API services","The API access will be provided once approved"],'favIcon': "https://www.google.com/s2/favicons?domain=https://www.circl.lu/",diff --git a/modules/sfp_darksearch.py b/modules/sfp_darksearch.pyindex 34d05eea..ab615c81 100644--- a/modules/sfp_darksearch.py+++ b/modules/sfp_darksearch.py@@ -60,7 +60,6 @@ class sfp_darksearch(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "Darksearch"self.results = self.tempStorage()self.errorState = Falsediff --git a/modules/sfp_github.py b/modules/sfp_github.pyindex cd870a93..c4219625 100644--- a/modules/sfp_github.py+++ b/modules/sfp_github.py@@ -171,15 +171,16 @@ class sfp_github(SpiderFootPlugin):self.sf.error("Unable to fetch " + url, False)failed = True- try:- ret = json.loads(res['content'])- except BaseException as e:- self.sf.debug(f"Error processing JSON response from GitHub: {e}", False)- ret = None-- if ret is None:- self.sf.error(f"Unable to process empty response from Github for: {name}", False)- failed = True+ if not failed:+ try:+ ret = json.loads(res['content'])+ except BaseException as e:+ self.sf.debug(f"Error processing JSON response from GitHub: {e}")+ ret = None++ if ret is None:+ self.sf.error(f"Unable to process empty response from Github for: {name}", False)+ failed = Trueif not failed:if ret.get('total_count', "0") == "0" or len(ret['items']) == 0:diff --git a/modules/sfp_gravatar.py b/modules/sfp_gravatar.pyindex 0c7b930e..4ddd339b 100644--- a/modules/sfp_gravatar.py+++ b/modules/sfp_gravatar.py@@ -53,7 +53,6 @@ class sfp_gravatar(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = 'Gravatar'self.results = self.tempStorage()self.reportedUsers = self.tempStorage()diff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.pyindex 481e824c..75b7da8f 100644--- a/modules/sfp_numverify.py+++ b/modules/sfp_numverify.py@@ -62,7 +62,6 @@ class sfp_numverify(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "numverify"self.results = self.tempStorage()self.errorState = False@@ -157,14 +156,14 @@ class sfp_numverify(SpiderFootPlugin):evt = SpiderFootEvent("RAW_RIR_DATA", str(data), self.__name__, event)self.notifyListeners(evt)- if data.get('country_code') is not None:+ if data.get('country_code'):location = ', '.join([_f for _f in [data.get('location'), data.get('country_code')] if _f])evt = SpiderFootEvent("GEOINFO", location, self.__name__, event)self.notifyListeners(evt)else:self.sf.debug("No location information found for " + eventData)- if data.get('carrier') is not None:+ if data.get('carrier'):evt = SpiderFootEvent("PROVIDER_TELCO", data.get('carrier'), self.__name__, event)self.notifyListeners(evt)else:diff --git a/modules/sfp_opencorporates.py b/modules/sfp_opencorporates.pyindex cc6a988d..de128225 100644--- a/modules/sfp_opencorporates.py+++ b/modules/sfp_opencorporates.py@@ -54,7 +54,6 @@ class sfp_opencorporates(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "OpenCorporates"self.results = self.tempStorage()for opt in list(userOpts.keys()):diff --git a/modules/sfp_pgp.py b/modules/sfp_pgp.pyindex c51e8d5a..5e14316c 100644--- a/modules/sfp_pgp.py+++ b/modules/sfp_pgp.py@@ -47,7 +47,6 @@ class sfp_pgp(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "PGP Key Servers"self.results = self.tempStorage()for opt in list(userOpts.keys()):diff --git a/modules/sfp_skymem.py b/modules/sfp_skymem.pyindex 7ddefa89..59a9e0f1 100644--- a/modules/sfp_skymem.py+++ b/modules/sfp_skymem.py@@ -49,7 +49,6 @@ class sfp_skymem(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "Skymem"self.results = self.tempStorage()for opt in list(userOpts.keys()):diff --git a/modules/sfp_slideshare.py b/modules/sfp_slideshare.pyindex 67f4ea03..0a721d23 100644--- a/modules/sfp_slideshare.py+++ b/modules/sfp_slideshare.py@@ -49,7 +49,6 @@ class sfp_slideshare(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "SlideShare"self.results = self.tempStorage()for opt in list(userOpts.keys()):diff --git a/modules/sfp_spyonweb.py b/modules/sfp_spyonweb.pyindex c39ce2e8..24e0020f 100644--- a/modules/sfp_spyonweb.py+++ b/modules/sfp_spyonweb.py@@ -73,7 +73,6 @@ class sfp_spyonweb(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = "SpyOnWeb"self.results = self.tempStorage()self.cohostcount = 0diff --git a/modules/sfp_spyse.py b/modules/sfp_spyse.pyindex 66d4ddae..8fa6f036 100644--- a/modules/sfp_spyse.py+++ b/modules/sfp_spyse.py@@ -235,18 +235,18 @@ class sfp_spyse(SpiderFootPlugin):# Report extra data in the recorddef reportExtraData(self, record, event):operatingSystem = record.get('operation_system')- if operatingSystem is not None:- evt = SpiderFootEvent('OPERATING_SYSTEM', str(operatingSystem), self.__name__, event)+ if operatingSystem:+ evt = SpiderFootEvent('OPERATING_SYSTEM', operatingSystem, self.__name__, event)self.notifyListeners(evt)webServer = record.get('product')- if webServer is not None:- evt = SpiderFootEvent('WEBSERVER_BANNER', str(webServer), self.__name__, event)+ if webServer:+ evt = SpiderFootEvent('WEBSERVER_BANNER', webServer, self.__name__, event)self.notifyListeners(evt)httpHeaders = record.get('http_headers')- if httpHeaders is not None:- evt = SpiderFootEvent('WEBSERVER_HTTPHEADERS', str(httpHeaders), self.__name__, event)+ if httpHeaders:+ evt = SpiderFootEvent('WEBSERVER_HTTPHEADERS', httpHeaders, self.__name__, event)self.notifyListeners(evt)# Handle events sent to this modulediff --git a/modules/sfp_subdomain_takeover.py b/modules/sfp_subdomain_takeover.pyindex 1bb1b549..8d5339cf 100644--- a/modules/sfp_subdomain_takeover.py+++ b/modules/sfp_subdomain_takeover.py@@ -16,10 +16,10 @@ import jsonfrom sflib import SpiderFootPlugin, SpiderFootEventclass sfp_subdomain_takeover(SpiderFootPlugin):- """Subdomain Takeover:Footprint,Investigate:Crawling and Scanning::Check if affiliated subdomains are vulnerable to takeover."""+ """Subdomain Takeover Checker:Footprint,Investigate:Crawling and Scanning::Check if affiliated subdomains are vulnerable to takeover."""meta = {- 'name': "Subdomain Takeover",+ 'name': "Subdomain Takeover Checker",'summary': "Check if affiliated subdomains are vulnerable to takeover.",'flags': [""],'useCases': ["Footprint", "Investigate"],diff --git a/modules/sfp_whatcms.py b/modules/sfp_whatcms.pyindex 2efe6a0b..f1a9f07e 100644--- a/modules/sfp_whatcms.py+++ b/modules/sfp_whatcms.py@@ -68,7 +68,6 @@ class sfp_whatcms(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.__dataSource__ = 'WhatCMS'self.results = self.tempStorage()self.errorState = Falsediff --git a/sflib.py b/sflib.pyindex b9cb6c7a..84b5d761 100644--- a/sflib.py+++ b/sflib.py@@ -2470,7 +2470,7 @@ class SpiderFootPlugin():__sfdb__ = None# ID of the scan the module is running against__scanId__ = None- # (Unused) tracking of data sources+ # (only used in SpiderFoot HX) tracking of data sources__dataSource__ = None# If set, events not matching this list are dropped__outputFilter__ = None@@ -3188,7 +3188,7 @@ class SpiderFootEvent():raise TypeError(f"data is {type(data)}; expected str()")if not data:- raise ValueError("data is empty")+ raise ValueError(f"data is empty: '{str(data)}'")self._data = data