How to make simple password cracker in python

Channel:
Subscribers:
26
Published on ● Video Link: https://www.youtube.com/watch?v=CKPZ4FKzep0



Duration: 14:20
52 views
0


iam going to teach you how you can make a simple password cracker using python langauge only 27 line of code in very easy way | i hope you will like this video | thank you for watching this video |


Source Code :

import hashlib
from hmac import digest
from traceback import print_tb
flag = 0
pass_hash = input("Enter md5 Hash: ")
wordlist = input("File name: ")
try:
pass_file = open (wordlist, "r")
except:
print("no file were found")
quit()
for word in pass_file:
enc_wrd = word.encode('utf-8')
digest = hashlib.md5(enc_wrd.strip()).hexdigest()
print(word)
print(digest)
print(pass_hash)
if digest == pass_hash:
print(" Password has been found ")
print("Password is: " + word)
flag = 1
break
if flag == 0:
print("Password is not in the list")