MD5 Hash cracker code python


SUBMITTED BY: swaggydude

DATE: Feb. 25, 2016, 12:02 a.m.

FORMAT: Text only

SIZE: 682 Bytes

HITS: 997

  1. MD5 hash cracker code python
  2. Video: https://www.youtube.com/watch?v=Mw0ibNRzbkA&feature=youtu.be
  3. Subscribe: https://www.youtube.com/channel/UCWjZw9IHH7Lvhk_ErPEW0oA
  4. Code:
  5. import md5
  6. counter = 1
  7. pass_in = raw_input("Please enter the MD5 Hash:")
  8. pwfile = raw_input("Please enter the wordlist path:")
  9. try:
  10. pwfile = open(pwfile, "r")
  11. except:
  12. print "\nFile not Found"
  13. quit()
  14. for password in pwfile:
  15. filemd5 = md5.new(password.strip()).hexdigest()
  16. print "Trying password %d: %s " % (counter,password.strip())
  17. counter += 1
  18. if pass_in == filemd5:
  19. print "\nPassword Found. \nPassword is: %s" % password
  20. break
  21. else: print "\nPassword not Found."

comments powered by Disqus