Skip to content

Instantly share code, notes, and snippets.

@imsroot
Forked from yehgdotnet/get-shodan-favicon-hash.py
Created September 4, 2024 17:00
Show Gist options
  • Select an option

  • Save imsroot/f8d4f1dfab26e3b3acdc46eadf99cfac to your computer and use it in GitHub Desktop.

Select an option

Save imsroot/f8d4f1dfab26e3b3acdc46eadf99cfac to your computer and use it in GitHub Desktop.
Get Shodan FAVICON Hash
# https://twitter.com/brsn76945860/status/1171233054951501824
pip install mmh3
import mmh3
import requests
response = requests.get('https://yehg.net/favicon.ico')
favicon = response.content.encode('base64')
hash = mmh3.hash(favicon)
print hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment