SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Only notify of RAW_RIR_DATA if there are actual events.
smicallef539c89de03e3
diff --git a/modules/sfp_bitcoinwhoswho.py b/modules/sfp_bitcoinwhoswho.pyindex e266e818..7bec7b81 100644--- a/modules/sfp_bitcoinwhoswho.py+++ b/modules/sfp_bitcoinwhoswho.py@@ -101,11 +101,14 @@ class sfp_bitcoinwhoswho(SpiderFootPlugin):def generate_events(self, data, pevent):if not isinstance(data, dict):- return+ return Falsescams = data.get("scams", [])if scams:self.emit("MALICIOUS_BITCOIN_ADDRESS", f"Bitcoin Who's Who [{pevent.data}]")+ return True++ return Falsedef handleEvent(self, event):if self.errorState:@@ -125,8 +128,9 @@ class sfp_bitcoinwhoswho(SpiderFootPlugin):if event.eventType == "BITCOIN_ADDRESS":data = self.query(event.data)- self.generate_events(data, event)+ r = self.generate_events(data, event)- self.emit("RAW_RIR_DATA", json.dumps(data), event)+ if r:+ self.emit("RAW_RIR_DATA", json.dumps(data), event)# End of sfp_bitcoinwhoswho class