随机字符的本地爆破

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”爆破

原文地址:https://www.cnblogs.com/Jdrops/p/5360908.html