Skip to content

A Python utility to fetch a website’s favicon (or read a local favicon file) and compute its mmh3 hash.

Notifications You must be signed in to change notification settings

pvaladares/favicon-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Favicon Hash Tool

A Python utility to fetch a website’s favicon (or read a local favicon file) and compute its mmh3 hash.
This hash can be used for fingerprinting web applications and searching on reconnaissance platforms like Shodan, ZoomEye, FOFA, and Censys.


✨ Features

  • Fetch favicon from a remote URL (--url)
  • Compute hash from a local file (--file)
  • Support for proxies (default: http://127.0.0.1:8080)
  • Option to disable SSL verification (--insecure)
  • Output queries for Shodan, FOFA, and Censys
  • Select a specific engine with --engine
  • Colorized output
  • Automatically append favicon.ico as required

📦 Installation

Clone the repository and install dependencies:

# Clone locally
git clone https://github.com/pvaladares/favicon-hash.git
cd favicon-hash

# Optional - To isolate the environment from other tools
python3 -m venv venv
source venv/bin/activate # `deactivate` afterwards to exit the environment

# Install requirements
pip3 install -r requirements.txt

🚀 Usage

From a URL

python3 favicon_hash.py --url https://www.google.com

From a local file

python3 favicon_hash.py --file ./favicon.ico

With proxy (default: 127.0.0.1:8080)

python3 favicon_hash.py --url https://www.google.com/favicon.ico --proxy

With custom proxy

python3 favicon_hash.py --url https://www.google.com/favicon.ico --proxy http://myproxy:9090

Allow insecure SSL

python3 favicon_hash.py --url https://self-signed.badssl.com --insecure

Show only Shodan query

python3 favicon_hash.py --url https://google.com --engine shodan

🔍 Example Output

✔ Favicon hash for https://google.com/favicon.ico: 708578229

🔍 Example queries you can use:
  Shodan: http.favicon.hash:708578229
  Fofa: icon_hash="708578229"
  Censys: services.http.response.favicons.shodan_hash:708578229

About

A Python utility to fetch a website’s favicon (or read a local favicon file) and compute its mmh3 hash.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages