A clean, accurate favicon hashing tool for OSINT, Red Teaming, and Threat Intelligence. Made by Aryan Giri
FavHash extracts a website’s favicon and generates multiple forensic hashes:
- MD5
- SHA‑256 / SHA‑1 / MD5 (selectable)
- MMH3 (Shodan-compatible)
These hashes allow you to correlate infrastructure across the internet through: Shodan, FOFA, Zoomeye, Censys, SecurityTrails, and more.
Favicons are widely reused — and this becomes a powerful fingerprinting method.
- ✔ Accurate MMH3 hashing (Shodan-compatible)
- ✔ MD5, SHA1, SHA256 support
- ✔ Fetch favicon from URL
- ✔ Hash local favicon files
- ✔ Auto-detect common favicon paths
- ✔ Correct Base64 encoding for MMH3
- ✔ Color output with optional
--no-color - ✔ Custom ASCII banner (pyfiglet)
- ✔ Clean error handling
- ✔ Save downloaded favicon
- ✔ OSINT correlation query generator (Shodan, FOFA, Zoomeye, Censys)
This tool is fully client-side (no external API calls).
Install required dependencies:
pip install requests mmh3 pyfiglet termcolor coloramaClone or download the project:
git clone https://github.com/giriaryan694-a11y/FavHash
cd FavHashRun:
python3 favhash.py --url http://example.compython3 favhash.py -u http://testphp.vulnweb.compython3 favhash.py -f favicon.icopython3 favhash.py -u http://example.com --s icon.icopython3 favhash.py -u example.com -a sha256
python3 favhash.py -u example.com -a md5
python3 favhash.py -u example.com -a sha1python3 favhash.py --no-color -u example.com _________ _ ____ _____ _____ __ __
/ ____/ | | / / / / / | / ___// / / /
/ /_ / /| | | / / /_/ / /| | \__ \/ /_/ /
/ __/ / ___ | |/ / __ / ___ |___/ / __ /
/_/ /_/ |_|___/_/ /_/_/ |_/____/_/ /_/
Made by Aryan Giri
[*] Fetching favicon from URL…
MD5 : f17ce23e8c286df713aa992dbbdaeef2
MMH3: 1474949501
┌── OSINT Correlation ──────────────────────────────────────┐
│ Shodan : http.favicon.hash:1474949501 │
│ FOFA MD5 : icon_md5="f17ce23e8c286df713aa992dbbdaeef2" │
│ FOFA Hash : icon_hash="1474949501" │
│ Zoomeye : iconhash:"f17ce23e8c286df713aa992dbbdaeef2" │
│ Censys MD5 : services.http.response.favicon.md5:f17ce23e8c286df713aa992dbb│ef2
└─────────────────────────────────────────────────────────────┘
Web frameworks, CMSes, dashboards, login portals, malware panels, SaaS products— often reuse the same favicon across all deployments.
This means:
- Same software
- Same developer
- Same hosting provider
- Same organization
- Same cluster or infrastructure
By hashing a favicon, you can track all servers using it.
This is one of the most underrated OSINT fingerprinting methods.
http.favicon.hash:<mmh3_hash>
icon_md5="<md5>"
icon_hash="<mmh3_hash>"
iconhash:"<md5>"
services.http.response.favicon.md5:<md5>
Developed By: Aryan Giri Specialized in Cybersecurity, Red Teaming & OSINT Development.
This tool is built strictly for:
- Education
- Security research
- OSINT investigations
- Authorized penetration testing
Do not use it on systems you do NOT have permission to test.
If you like this tool:
- ✅ Give it a star ⭐ on GitHub
- ✅ Share it with fellow OSINT analysts and bug bounty hunters