SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Avoid dulicates being reported from the same content.
Steve6eed3f1ec5e4
diff --git a/modules/sfp_email.py b/modules/sfp_email.pyindex 85abc7ad..66663683 100644--- a/modules/sfp_email.py+++ b/modules/sfp_email.py@@ -63,6 +63,7 @@ class sfp_email(SpiderFootPlugin):pat = re.compile("([\%a-zA-Z\.0-9_\-]+@[a-zA-Z\.0-9\-]+\.[a-zA-Z\.0-9\-]+)")matches = re.findall(pat, eventData)+ myres = list()for match in matches:if len(match) < 4:self.sf.debug("Likely invalid address: " + match)@@ -84,6 +85,12 @@ class sfp_email(SpiderFootPlugin):mail = unicode(match, 'utf-8', errors='replace')else:mail = match++ if mail in myres:+ self.sf.debug("Already found from this source.")+ else:+ myres.append(mail)+evt = SpiderFootEvent("EMAILADDR", mail, self.__name__, parentEvent)self.notifyListeners(evt)