Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import sys, hashlib, os
- def usage():
- print "Linux Usage: python MD5_hash Dictionary\nWindows Usage: MD5_hash Dictionary\n"args = sys.argv
- if len(args) < 2:
- usage()
- else:
- if (os.path.isfile(args[2])):
- dict = file(args[2], "r")
- for word in dict:
- if (hashlib.md5(word.strip()).hexdigest()==args[1]):
- print "\nMATCH FOUND: " + word
- else:
- print word + " is not equal to " + args[2]
Add Comment
Please, Sign In to add comment