Find the Origin IP Behind a CDN with Shodan Favicon Hashes

FAVINDEX tells you which domains share a favicon. Shodan tells you which IP addresses serve it. The two use the same hash, so you can move from one to the other in a single step.

  • Red Teaming
  • Penetration Testing
  • Bug Bounty
Input
A domain behind a CDN
Output
Candidate origin IPs
Endpoint
/api/search/domain + Shodan

Why It Works

FAVINDEX computes MMH3 exactly as Shodan does: MurmurHash3 over the Base64 encoding of the icon, with 76-character line wrapping. The value can be pasted directly into http.favicon.hash.

A site behind a CDN or WAF hides its server's IP address, but the origin server often answers on that bare IP with the same favicon. If Shodan has scanned it, the hash search returns it.

How to Do It

  1. 1 Get the target's mmh3 hash from FAVINDEX.
  2. 2 Search Shodan for http.favicon.hash:<mmh3>.
  3. 3 Drop results that belong to the CDN's own IP ranges.
  4. 4 Check the remaining IPs: requesting the site with its Host header against the IP confirms whether it is the origin.
Example
# 1. get the Shodan-compatible hash
curl -s -H "Authorization: Bearer $FVX_KEY" \
  "https://favindex.sh/api/search/domain?q=example.com" | jq .icon.mmh3

# 2. search it on Shodan
shodan search --fields ip_str,port,org 'http.favicon.hash:-1864074548'

# 3. confirm a candidate origin
curl -sk -H "Host: example.com" https://203.0.113.10/ | head

More Use Cases