Skip to content

Instantly share code, notes, and snippets.

@Sicks3c
Created October 8, 2020 11:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Sicks3c/156a27bed46ca38eb3925b0ada69a235 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
import mmh3
import requests
import codecs
import sys
# Uncomment `f` and "file=f" if you want to store the results in a file
#f = open('rez','w')
urls = sys.stdin.read().split("\n")
for x in urls:
response = requests.get('{}'.format(x), verify=False)
favicon = codecs.encode(response.content,"base64")
hash = mmh3.hash(favicon)
print(hash) #file=f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment