Created
August 9, 2020 10:19
-
-
Save fidacura/cfab3d02de8914b76acf77463e195104 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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