faviconHash函数主要是用来将字符串或 bytes 进行 faviconHash 编码,参考:iconhash
faviconHash
func faviconHash(v1 string/bytes) int
该函数主要会用在指纹识别这个方向,可以编写一些指纹识别的规则,示例:
name: fingerprint-yaml-get-ico transport: http rules: r0: request: method: GET path: /favicon.ico follow_redirects: true expression: response.status == 200 && faviconHash(response.body) == xxxxxxx expression: r0() detail: author: test links: - test.test
其中的xxxxxxx为一个int的数值,表示计算出的hash。
该函数一般配合getIconContent()一同使用,详情参考:🔎
getIconContent()
Was this page helpful?