Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. import md5
  2. import time
  3.  
  4. counter = 1
  5.  
  6. md5_hash = raw_input("Please Enter your md5 Hash: ")
  7. pwdfile = raw_input("please enter your wordlist path: ")
  8.  
  9. try:
  10.     pwdfile = open(pwdfile, "r")
  11. except:
  12.     print ("\nFile not found")
  13.     quit()
  14.  
  15. for password in pwdfile:
  16.     filemd5 = md5.new(password.strip()).hexdigest()
  17.     start = time.time()
  18.     print("Trying passowrd %d: %s" % (counter, password.strip()))
  19.  
  20.     counter += 1
  21.     end = time.time()
  22.     t_time = end - start
  23.  
  24.     if md5_hash == filemd5:
  25.         print
  26.         "\nPassword Found. \nPassword is : %s" % password
  27.         print
  28.         "Total runtime was -- ", t_time, "second"
  29.         time.sleep(10)
  30.         break
  31.  
  32.  
  33. else:
  34.     print("\nPassword not Found.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement