Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Created by Pathogen @ www.hakhub.tk
- import subprocess as sp
- import re,sys
- md5count = 0
- file = open(sys.argv[1],'r')
- contents = file.read()
- md5s = re.findall('[0-9a-f]{32}',contents)
- outfile = open(sys.argv[2],'w')
- for md5 in md5s:
- data = md5+"\n"
- md5count = md5count + 1
- outfile.write(data)
- print "File parsed ~", md5count, "hashes found."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement