Skip to content

Instantly share code, notes, and snippets.

@fidacura
Created August 9, 2020 10:19
Show Gist options
  • Select an option

  • Save fidacura/cfab3d02de8914b76acf77463e195104 to your computer and use it in GitHub Desktop.

Select an option

Save fidacura/cfab3d02de8914b76acf77463e195104 to your computer and use it in GitHub Desktop.
import mmh3
import requests
import codecs
import sys
import os
# Get favicon hash
response = requests.get(sys.argv[1], verify=False)
favicon = codecs.encode(response.content,"base64")
hash = mmh3.hash(favicon)
print("Shodan search: http.favicon.hash:" str(hash))
# Search Shodan CLI for the hash
# os.system("shodan search http.favicon.hash:" + str(hash))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment