Skip to content

Spiderssh/Phishing-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Phishing URL Checker

Overview

The Phishing URL Checker is a Python-based tool designed to help identify potentially malicious URLs. It operates in two modes:

  • CLI Mode: Command-line interface with color-coded outputs for safe and unsafe links.
  • GUI Mode: Graphical user interface built with Tkinter for easy interaction.

This tool can also validate URLs anonymously using a headless browser with proxy support, ensuring your IP address is not exposed.


Requirements

To install the dependancies safely use controlled environment

source env/bin/activate
  1. Python (>= 3.7)
  2. Pip: Ensure Python dependencies can be installed.
  3. Selenium: For headless browsing.
    pip install selenium
  4. Google Chrome and ChromeDriver:
    • Download ChromeDriver matching your Chrome version from ChromeDriver Downloads.
    • Place it in your system's PATH or provide its absolute path in the script.
  5. TOR Proxy:
    • Install and configure TOR for anonymous browsing.
    • Ensure TOR is running on 127.0.0.1:9050.
  6. Tkinter:
    • Ensure Tkinter is installed for GUI support. On Linux, install it via:
    sudo apt-get install python3-tk
    
  7. Stem:
    • Install the required Python libraries:
      pip install stem requests
  8. Required Libraries
    pip install beautifulsoup4

Features

  • Detects phishing indicators in URLs.
  • Supports anonymous URL validation via Selenium and a TOR proxy.
  • CLI mode with a bright yellow banner and color-coded outputs.
  • GUI mode with intuitive input and result display.
  • Analyzes URL structure and hosting details.

Installation

  1. Clone the repository:
    git clone https://github.com/Spiderssh/Phishing-checker.git
    cd Phishing-checker
  2. Install dependencies:
    pip install selenium
    sudo apt install tor -y
    sudo nano /etc/tor/torrc
    SocksPort 127.0.0.1:9050
    ControlPort 9051
    Save the file and exit (Ctrl+O, Enter, Ctrl+X).
    sudo systemctl start tor
    sudo systemctl enable tor
    sudo systemctl status tor
    Verify that Tor is functioning correctly with the curl command
    curl --socks5-hostname 127.0.0.1:9050 http://check.torproject.org
    Use Tor as a Proxy To route traffic through Tor, you can configure SOCKS

SOCKS5 Proxy: 127.0.0.1:9050 Control Port: 127.0.0.1:9051

Install proxychains

sudo apt install proxychains4 -y

Edit the proxychains configuration

sudo nano /etc/proxychains4.conf

Add the proxy details

socks5  127.0.0.1 9050

Usage

CLI Mode

Run the script in CLI mode:

python Phishing-checker.py

Follow the prompts to enter URLs one by one. Type done to finish and view the results.

GUI Mode

Run the script in GUI mode:

python Phishing-checker.py --gui

A window will open where you can enter and analyze URLs.


How It Works

  1. Phishing Indicators:
    • Scans URLs for common phishing terms like login, secure, verify, etc.
    • Flags suspicious top-level domains (e.g., .xyz, .click).
  2. Anonymous Validation:
    • Uses Selenium with a headless Chrome browser.
    • Routes traffic through a TOR proxy for anonymity.
    • Checks for valid page loads and HTTPS certificates.
  3. Color-Coded Results:
    • Green: Indicates the URL is safe.
    • Red: Indicates the URL is unsafe or problematic.

Example

CLI Output

==================================================
          Phishing URL Checker (CLI Mode)          
==================================================
Enter URLs to analyze (type 'done' to finish):
URL: http://example.com
http://example.com -> �[92mThis link is safe�[0m
URL: http://phishy-site.xyz
http://phishy-site.xyz -> �[91mTHIS LINK IS NOT SAFE�[0m

License

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


Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.


Disclaimer

This tool is for educational purposes only. It is not a substitute for professional security software. Always exercise caution when interacting with unknown links.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages