May-04-2018, 06:00 PM
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
![Idea Idea](https://python-forum.io/images/smilies/lightbulb.png)
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)******************************************************************************************************
![My My](https://python-forum.io/images/smilies/my.png)
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
![Idea Idea](https://python-forum.io/images/smilies/lightbulb.png)
![Idea Idea](https://python-forum.io/images/smilies/lightbulb.png)
![Idea Idea](https://python-forum.io/images/smilies/lightbulb.png)
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....