Coder Social home page Coder Social logo

sh0078 / phishingscanner Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14 KB

The Phishing Email Scanner is a Python tool for detecting potential phishing emails in an IMAP inbox.

License: MIT License

Python 100.00%
argparse command-line-tool email-phishing imap-server imaplib python3

phishingscanner's Introduction

Screenshot 2024-05-01 at 4 00 19 PM Screenshot 2024-05-01 at 4 07 17 PM

Phishing Email Scanner

This project is a Python-based email scanner designed to detect phishing emails in an IMAP mailbox. It checks for common phishing indicators, including suspicious subjects, malicious URLs, suspicious patterns, and excessive grammar errors. The scanner also validates email addresses to help identify potentially malicious senders.

Table of Contents

Installation

To set up this project on your system, you'll need Python 3 and a few additional libraries. Follow these steps to install the necessary dependencies:

  1. Clone the repository to your local machine:

    git clone <repository-url>
    cd <repository-folder>
    
  2. Set up a virtual environment (optional but recommended): python3 -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate

  3. Install the required libraries using pip: pip install -r requirements.txt

Usage

To use the phishing email scanner, run the following command:

python3 phishing_scanner.py --server <IMAP server> --username <email> --password <password>

Replace IMAP server, username, and password with your IMAP server address, email username, and password, not your email password but the application password, you can get this password after you enable your 2fac in security feature, and create new app password. You can also specify the mailbox to scan using the --mailbox option (default is inbox).

Features

  • Email Validation: Validates sender email addresses to detect invalid or potentially malicious addresses.
  • Subject Analysis: Checks for common phishing-related keywords and suspicious patterns in the email subject.
  • Body Analysis: Checks for phishing-related keywords, suspicious URLs, and excessive grammar errors in the email body.
  • Grammar Checking: Uses language_tool_python to identify excessive grammar errors in email bodies.

Dependencies

This project relies on several external libraries. The key dependencies are:

  • imaplib: For IMAP email retrieval.
  • email: For parsing email messages.
  • re: For regular expressions.
  • language_tool_python: For grammar checking.
  • email_validator: For validating email addresses.

Ensure that all dependencies are installed using the requirements.txt file provided in the repository.

Contributing

Contributions are welcome! If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure the code is tested.
  4. Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

phishingscanner's People

Contributors

sh0078 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.