P1-Team / AlliN

A flexible scanner
1.11k stars 153 forks source link

添加指纹,中文报错 #19

Closed localurk closed 1 year ago

localurk commented 1 year ago

自己添加指纹,"":"",第一个”“里面不能是中文,不然就报错 if self.trie[u].child[ids] == 0: image

christasa commented 1 year ago

因为Python 2的Unicode编码和Python 3的不兼容,为了适配Python2。因此self.fin不能使用中英文结合的指纹,例如指纹finger,只能使用英文以及常见字符。并且self.cfin也只能为全中文不能中英文夹杂,但可以中文标点符号和汉子结合,例如《指纹》。如果需要中英文结合的判断,可以在https://github.com/P1-Team/AlliN/blob/main/AlliN.py#L7084 后对resp做内容判断

christasa commented 1 year ago

因无后续问题,故关闭该issue