SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Remove emit() from the template and in modules where it's been used to reduce code, remove the (unusued) notify flag. (#1054)
Steve Micallefc8941bcc04b5
diff --git a/modules/sfp_ipregistry.py b/modules/sfp_ipregistry.pyindex eb4b5171..1981be8b 100644--- a/modules/sfp_ipregistry.py+++ b/modules/sfp_ipregistry.py@@ -89,10 +89,9 @@ class sfp_ipregistry(SpiderFootPlugin):return info- def emit(self, etype, data, pevent, notify=True):+ def emit(self, etype, data, pevent):evt = SpiderFootEvent(etype, data, self.__name__, pevent)- if notify:- self.notifyListeners(evt)+ self.notifyListeners(evt)return evtdef generate_location_events(self, location, pevent):diff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex d26bd36b..98c5d01c 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -245,12 +245,6 @@ class sfp_template(SpiderFootPlugin):return info- def emit(self, etype, data, pevent, notify=True):- evt = SpiderFootEvent(etype, data, self.__name__, pevent)- if notify:- self.notifyListeners(evt)- return evt-# Handle events sent to this moduledef handleEvent(self, event):# The three most used fields in SpiderFootEvent are:diff --git a/modules/sfp_zetalytics.py b/modules/sfp_zetalytics.pyindex 65e26a84..1490dd0c 100644--- a/modules/sfp_zetalytics.py+++ b/modules/sfp_zetalytics.py@@ -62,10 +62,9 @@ class sfp_zetalytics(SpiderFootPlugin):def producedEvents(self):return ["INTERNET_NAME", "AFFILIATE_DOMAIN_NAME"]- def emit(self, etype, data, pevent, notify=True):+ def emit(self, etype, data, pevent):evt = SpiderFootEvent(etype, data, self.__name__, pevent)- if notify:- self.notifyListeners(evt)+ self.notifyListeners(evt)return evtdef request(self, path, params):