python计算 ico hash 值
apt-get install python3
apt-get install python3-pip
pip install mmh3
import requests
import base64
import mmh3
URL='https://www.baidu.com/favicon.ico'
r=requests.get(URL)
r1=r.content
r2=base64.encodebytes(r1)
r3=mmh3.hash(r2)
print('http.favicon.hash:'+str(r3))
https://pypi.org/project/mmh3/
Another common use of mmh3 is to calculate favicon hashes used by Shodan,
mmh3就是专门用来计算favicon hash的
fofa的hash好像是和shodan通用的,所以可以在fofa那边计算后,在shodan 用 http.favicon.hash: 来搜索