Skip to content

redX000/RedPhish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎣 RedPhish

Python License Platform Status

Advanced Phishing Detection & URL Analyzer β€” Detect phishing URLs, suspicious emails, and credential harvesting attempts using multi-layered heuristic analysis.

πŸ”₯ Features

  • πŸ”— URL Analysis β€” Extract 25+ features from any URL including entropy, homoglyphs, punycode, brand impersonation
  • πŸ“§ Email Header Analysis β€” SPF/DKIM/DMARC verification, sender mismatch detection, urgency keyword flagging
  • 🎯 Brand Impersonation Detection β€” Identifies spoofed domains targeting 20+ major brands
  • 🌐 Homoglyph Detection β€” Catches visual lookalike characters used in domain spoofing
  • πŸ“Š Risk Scoring β€” 0-100 risk score with color-coded terminal output
  • πŸ“¦ Batch Processing β€” Analyze hundreds of URLs from a file with CSV/JSON export
  • πŸ–₯️ Beautiful CLI β€” Rich colored output with ASCII art banner

πŸ“Έ Preview

    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—
    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘
    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
    β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•     β•šβ•β•  β•šβ•β•β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•

  Target:  http://paypa1-secure.login-verify.tk/account/signin
  Risk Level:  HIGH RISK
  Score:      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 90/100

  ⚠  No HTTPS β€” connection is not encrypted
  ⚠  Possible impersonation of 'paypal'
  ⚠  Suspicious TLD commonly used in phishing campaigns
  ⚠  URL path contains login/authentication keywords

πŸš€ Installation

git clone https://github.com/redX000/RedPhish.git
cd RedPhish
pip install -e .

Or run directly:

python -m redphish

πŸ“– Usage

Analyze a URL

redphish url "http://paypa1-secure.login-verify.tk/signin"
redphish url "https://google.com" -v          # verbose mode
redphish url "http://192.168.1.1/login" --json # JSON output

Batch Analysis

# Create a file with URLs (one per line)
redphish batch urls.txt
redphish batch urls.txt -o results.csv
redphish batch urls.txt -o results.json

Email Header Analysis

redphish email suspicious_email.eml
redphish email phishing.eml --json

🧠 Detection Methods

Method Description
URL Entropy Shannon entropy to detect randomly generated domains
Homoglyph Detection Unicode lookalike characters (Π° vs a, 0 vs o)
Punycode Analysis Internationalized domain name abuse
Brand Impersonation Domain matching against 20+ targeted brands
TLD Reputation Flags TLDs commonly abused in phishing (.tk, .ml, etc.)
Path Analysis Login/verification keyword detection in URL paths
IP-based URLs Direct IP address usage instead of domain names
SPF/DKIM/DMARC Email authentication protocol verification
Sender Mismatch From vs Return-Path domain comparison
Urgency Keywords Fear/urgency language in email subjects

πŸ“‹ Risk Score Breakdown

Score Level Description
0-19 βœ… SAFE No significant phishing indicators
20-39 🟑 LOW RISK Minor suspicious elements detected
40-69 🟠 MEDIUM RISK Multiple phishing indicators present
70-100 πŸ”΄ HIGH RISK Strong phishing indicators β€” likely malicious

⚠️ Disclaimer

This tool is designed for educational purposes and legitimate security research only. Use responsibly and in compliance with applicable laws. The author is not responsible for any misuse of this tool.

πŸ“„ License

MIT License β€” see LICENSE

πŸ‘€ Author

Yassine Lasraoui β€” @redX000

About

🎣 Advanced Phishing Detection & URL Analyzer β€” Detect phishing URLs, emails, and credential harvesting attempts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages