From d91fb6333e535194dc4dd6a016f41753b7435cdc Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Mon, 23 Sep 2019 12:01:26 -0400 Subject: [PATCH] Updated email parser to shift letters. --- theHarvester/parsers/myparser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/theHarvester/parsers/myparser.py b/theHarvester/parsers/myparser.py index ddc03c94..b2fa519d 100644 --- a/theHarvester/parsers/myparser.py +++ b/theHarvester/parsers/myparser.py @@ -28,7 +28,10 @@ def emails(self): reg_emails = re.compile(r'[a-zA-Z0-9.\-_+#~!$&\',;=:]+' + '@' + '[a-zA-Z0-9.-]*' + self.word.replace('www.', '')) self.temp = reg_emails.findall(self.results) emails = self.unique() - return emails + true_emails = {str(email)[1:].lower().strip() if len(str(email)) > 1 and str(email)[0] == '.' + else len(str(email)) > 1 and str(email).lower().strip() for email in emails} + # if email starts with dot shift email string and make sure all emails are lowercase + return true_emails def fileurls(self, file): urls = []