Created
August 25, 2021 15:50
-
-
Save cyberheartmi9/0a4d177d88503195b426643c00a05865 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
#!/usr/bin/python | |
import mmh3 | |
import requests | |
#requests.packages.urllib3.disable_warnings() | |
import shodan | |
url="https://www.acronis.com/en-us/favicon.ico" | |
def dork(s): | |
# | |
SEARCH_FOR="http.favicon.hash:{}".format(str(s)) | |
API_KEY="" | |
#f=open("url.txt","a") | |
api = shodan.Shodan(API_KEY) | |
result = api.search(SEARCH_FOR) | |
for service in result['matches']: | |
IP = service['ip_str'] | |
#url="https://{}".format(IP) | |
print IP | |
#f.writelines(url+"\n") | |
response = requests.get(url,verify=False) | |
favicon = response.content.encode('base64') | |
hash = mmh3.hash(favicon) | |
print hash | |
if hash: | |
print "Query http.favicon.hash:{}\n\n".format(hash) | |
dork(hash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment