SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Removing duplicates.
smicallefcc549a06ee00
diff --git a/modules/sfp_mail.py b/modules/sfp_mail.pyindex dcffa535..98570171 100644--- a/modules/sfp_mail.py+++ b/modules/sfp_mail.py@@ -17,6 +17,8 @@ from sflib import SpiderFoot, SpiderFootPlugin# SpiderFoot standard lib (must be initialized in __init__)sf = None+results = dict()+class sfp_mail(SpiderFootPlugin):# Default optionsopts = {@@ -57,6 +59,13 @@ class sfp_mail(SpiderFootPlugin):matches = re.findall("([a-zA-Z\.0-9_\-]+@[a-zA-Z\.0-9_\-]+)", eventData)for match in matches:sf.debug("Found email: " + match)++ if results.has_key(match):+ sf.debug("Already found, skipping.")+ continue+ else+ results[match] = True+# Include e-mail addresses on sub-domains within the domain?if self.opts['basedomainonly']:if not match.endswith('@' + self.baseDomain):