随机字符的本地爆破

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

 

posted @ 2016-04-06 19:59  图唯恋  阅读(213)  评论(0编辑  收藏  举报