SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Updates according to QA by @bcoles
Leo Trubach81eba5175c73
diff --git a/modules/sfp_bitcoinabuse.py b/modules/sfp_bitcoinabuse.pyindex 9ef62655..0ff15180 100644--- a/modules/sfp_bitcoinabuse.py+++ b/modules/sfp_bitcoinabuse.py@@ -68,7 +68,6 @@ class sfp_bitcoinabuse(SpiderFootPlugin):def watchedEvents(self):return ["BITCOIN_ADDRESS"]- # What events this module producesdef producedEvents(self):return ["MALICIOUS_BITCOIN_ADDRESS"]@@ -107,22 +106,22 @@ class sfp_bitcoinabuse(SpiderFootPlugin):self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")if self.opts["api_key"] == "":- self.sf.error("You enabled sfp_template but did not set an API key!", False)+ self.sf.error("You enabled sfp_bitcoinabuse but did not set an API key!", False)self.errorState = Truereturn Noneif eventData in self.results:self.sf.debug(f"Skipping {eventData}, already checked.")return None- else:- self.results[eventData] = True++ self.results[eventData] = Trueif eventName == "BITCOIN_ADDRESS":rec = self.query(eventData)if isinstance(rec, dict):count = rec.get("count")if isinstance(count, int):- if count != 0:+ if count > 0:evt = SpiderFootEvent("MALICIOUS_BITCOIN_ADDRESS", rec["address"], self.__name__, event)diff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex e162a869..8b613c9e 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -275,10 +275,9 @@ class sfp_template(SpiderFootPlugin):if eventData in self.results:self.sf.debug(f"Skipping {eventData}, already checked.")return None- else:- # If eventData might be something large, set the key to a hash- # of the value instead of the value, to avoid memory abuse.- self.results[eventData] = True+ # If eventData might be something large, set the key to a hash+ # of the value instead of the value, to avoid memory abuse.+ self.results[eventData] = Trueif eventName == 'NETBLOCK_OWNER':# Note here an example of handling the netblocklookup option