mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 18:03:10 +08:00
Updated email parser to shift letters.
This commit is contained in:
parent
15e61523a4
commit
d91fb6333e
1 changed files with 4 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue