MD5 hash cracker code python
Video: https://www.youtube.com/watch?v=Mw0ibNRzbkA&feature=youtu.be
Subscribe: https://www.youtube.com/channel/UCWjZw9IHH7Lvhk_ErPEW0oA
Code:

import md5

counter = 1

pass_in = raw_input("Please enter the MD5 Hash:")
pwfile = raw_input("Please enter the wordlist path:")

try:
	pwfile = open(pwfile, "r")
except:
	print "\nFile not Found"
	quit()

for password in pwfile:
	filemd5 = md5.new(password.strip()).hexdigest()
	print "Trying password %d: %s " % (counter,password.strip())

	counter += 1

	if pass_in == filemd5:
		print "\nPassword Found. \nPassword is: %s" % password
		break

else: print "\nPassword not Found."