Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MD5FILE="MDlist.txt"
- DICTFILE="Dict.txt"
- RESULTFILE="BruteRes.txt"
- import _md5
- mds=[]
- res={} #{MD5:crack,MD5:crack...}
- used=[]
- #md=_md5.new(...)
- #z=md.digest()
- with open(MD5FILE,"r") as mdf:
- mds=mdf.read().split("\n")
- with open(DICTFILE,"r") as df:
- while True:
- c=df.readline().strip("\n")
- if c in used:
- break
- used.append(c)
- md=_md5.new()
- md.update(c)
- curr=md.hexdigest()
- if curr in mds:
- mds.pop(mds.index(curr))
- res[curr]=c
- cRes=""
- for k in res:
- cRes+=k+" : "+res[k]+"\n"
- if len(res)==0:
- print "No results :("
- else:
- print "Found "+str(len(res))+" hashes."
- with open(RESULTFILE,"w") as rf:
- rf.write(cRes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement