SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Merge master
Leo Trubach286d9320c1a7
diff --cc modules/sfp_zetalytics.pyindex 7ac1dbda,1490dd0c..e4a4c70b--- a/modules/sfp_zetalytics.py+++ b/modules/sfp_zetalytics.py@@@ -66,29 -60,13 +66,28 @@@ class sfp_zetalytics(SpiderFootPlugin)return ["INTERNET_NAME", "DOMAIN_NAME", "EMAILADDR"]def producedEvents(self):- return ["INTERNET_NAME", "AFFILIATE_DOMAIN_NAME"]+ return ["INTERNET_NAME", "AFFILIATE_DOMAIN_NAME", "INTERNET_NAME_UNRESOLVED"]- def emit(self, etype, data, pevent, notify=True):+ def emit(self, etype, data, pevent):+ if self.checkForStop():+ raise ModuleStop()evt = SpiderFootEvent(etype, data, self.__name__, pevent)- if notify:- self.notifyListeners(evt)+ self.notifyListeners(evt)return evt+ def verify_emit_internet_name(self, hostname, pevent):+ if f"INTERNET_NAME:{hostname}" in self.results:+ return+ if not self.getTarget().matches(hostname):+ return+ if self.opts["verify"] and not self.sf.resolveHost(hostname):+ self.sf.debug(f"Host {hostname} could not be resolved")+ self.emit("INTERNET_NAME_UNRESOLVED", hostname, pevent)+ else:+ self.emit("INTERNET_NAME", hostname, pevent)+ if self.sf.isDomain(hostname, self.opts['_internettlds']):+ self.emit("DOMAIN_NAME", hostname, pevent)+def request(self, path, params):params = {**params, "token": self.opts["api_key"]}qs = urlencode(params)