SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_leakix: Added api-key support
Gregory Boddina1bb7441aa63
diff --git a/modules/sfp_leakix.py b/modules/sfp_leakix.pyindex aa3d30a6..078832a0 100644--- a/modules/sfp_leakix.py+++ b/modules/sfp_leakix.py@@ -26,7 +26,7 @@ class sfp_leakix(SpiderFootPlugin):'categories': ["Leaks, Dumps and Breaches"],'dataSource': {'website': "https://leakix.net/",- 'model': "FREE_NOAUTH_UNLIMITED",+ 'model': "FREE_AUTH_UNLIMITED",'references': ["https://leakix.net/api-documentation"],@@ -40,6 +40,7 @@ class sfp_leakix(SpiderFootPlugin):# Default optionsopts = {+ 'api_key': "",'delay': 1,}@@ -74,7 +75,8 @@ class sfp_leakix(SpiderFootPlugin):# https://leakix.net/api-documentationdef queryHost(self, qry):headers = {- "Accept": "application/json"+ "Accept": "application/json",+ "api-key": self.opts["api_key"]}res = self.sf.fetchUrl('https://leakix.net/host/' + qry,@@ -130,6 +132,8 @@ class sfp_leakix(SpiderFootPlugin):self.results[eventData] = True+ if self.opts['api_key'] == "":+ self.sf.debug("You enabled sfp_leakix but did not set an API key, results are limited")self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if eventName in ["IP_ADDRESS"]: