Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigation links added to link extracting method #4

Merged
merged 1 commit into from
Nov 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions email-analyzer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from email import message_from_string
from email.parser import HeaderParser
import pyfiglet
from argparse import ArgumentParser
Expand Down Expand Up @@ -68,8 +67,22 @@ def get_links(mail_data : str):
links = list(filter(None, links))

# Print Links
for link in links:
print("-"+link)
for index,link in enumerate(links,start=1):
print("["+str(index)+"]->"+link)

print(pyfiglet.figlet_format("Investigation")) # Print Banner
# Print Links with Investigation tools
for index,link in enumerate(links,start=1):
if "://" in link:
link = link.split("://")[-1]
print("_"*70)
print("["+str(index)+"]")
print("[VirusTotal]:")
print("https://www.virustotal.com/gui/search/"+link)
print("[UrlScan]:")
print("https://urlscan.io/search/#"+link)
print("_"*70)


# Main
if __name__ == '__main__':
Expand Down