from itertools import product import hashlib chars="0123456789abcdefghijklmnopqrstuvwxyzABCDEFJHIJKLMNOPQRSTUVWXYZ" sixlist=[] for rand in product(chars,repeat=5): string="".join(rand) hashstr=hashlib.md5(str.encode(string)).hexdigest() if hashstr[0:6] == "270da2": print(string) print(hashstr)
这就是对随机生成的字符“270da2”爆破