Shodan
#1. Finding websites that use similar favicon.ico
This is useful for identifying phishing websites as they generally clone your custom favicon.ico file. Shodan provides a search filter (signed-in users only) for searching specific favicon.ico files. This is done by first converting the favicon.ico file into a hash value and this hash value is queried in the Shodan database. The following is the search filter:
http.favicon.hash:<hash-of-favicon.ico>favscan
The favscan tool provided in the above blog does not work correctly at the time of writing this article [18/01/2024].
Download links provided in Blog
get_favicon_hash.py
favscan
favscan -v <domain for e.g. shodan.>get_favicon_hash.py
python3 get_favicon_hash.py
# Prompts for input. Provide te favicon.ico URL.favscan
└─# favscan -v cloudflare.com
Requesting URL: cloudflare.com
Adding 'https' scheme to URL: cloudflare.com
1900658278get_favicon_hash.py
└─# python3 get_favicon_hash.py
Enter Favicon URL to get the mmh3-HASH: https://facebook.com/favicon.ico
-560962771
Now Use this on Shodan For Searching,http.favicon.hash:-560962771<Screenshots>
Last updated
Was this helpful?