Guest User

Untitled

a guest
Oct 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import sys, hashlib, os
  3. def usage():
  4.     print "Linux Usage: python MD5_hash Dictionary\nWindows Usage: MD5_hash Dictionary\n"args = sys.argv
  5. if len(args) < 2:
  6.     usage()
  7. else:
  8.     if (os.path.isfile(args[2])):
  9.         dict = file(args[2], "r")
  10.         for word in dict:
  11.             if (hashlib.md5(word.strip()).hexdigest()==args[1]):
  12.                 print "\nMATCH FOUND: " + word   
  13.             else:
  14.                 print word + " is not equal to " + args[2]
Add Comment
Please, Sign In to add comment