Extracting Emails & Header Information from Outlook in Order to Detect Phishing Attacks using Python
Note: You can find a comprehensive article on this project at https://ghafoorazhar.medium.com/
- Clone this git repository: https://github.com/AzharGhafoor/Phishing-Detection
- In
main.py
file findimap_password, imap_username
- Replace the values with your own outlook email and respective password
- Run the script using:
python main.py
- if you are interested in Jupyter Notebook then Run
phishing_detection.ipynb
- I believe you already have installed the python modules used in this code, if not then go ahead and install them.
- Sample Output:
+ It could be Phishing
Sender: gophish
Sent From: https://higee.net
Origional Sender: ['bilal@higee.net']
Pretender Sender: ['hiddenuser@company.com'] # dummy data
Sent From: https://emkei.cz
Origional Sender: ['235@emkei.cz']
Pretender Sender: ['hiddenuser@company.com'] # dummy data