I have tried to create a simple password cracker in my own.I am new to programming.Here is the python code.My aim was to make the user to specify a wordlist that contain random passwords.Here is the my python code :-
******************************************************************************************************
wordlist.txt file consist of the following:-
hat
cat
dog
bot
banana
leaf
linux
bob
rat
My problem:-Python is showing me that all the password are incorrect.But still the real password is there in the wordlist.txt that's"linux"...Please help me

Sorry guys in the above python code I forgot to indent. I corrected that mistake:-
******************************************************************************************************
jackpot=("linux") name = input("Enter your name:- ") wordlist = input("Enter wordlist file:- ") wordlist = open(wordlist,"r") for word in wordlist: if word==jackpot: print("[+]password found",name,":-",word) else: print("[!]incorrect password:-",word)******************************************************************************************************

hat
cat
dog
bot
banana
leaf
linux
bob
rat
My problem:-Python is showing me that all the password are incorrect.But still the real password is there in the wordlist.txt that's"linux"...Please help me



Sorry guys in the above python code I forgot to indent. I corrected that mistake:-
jackpot=("linux") name = input("Enter your name:- ") wordlist = input("Enter wordlist file:- ") wordlist = open(wordlist,"r") for word in wordlist: if word==jackpot: print("[+]password found",name,":-",word) else: print("[!]incorrect password:-",word)someone please help me....