Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help me!!!
#1
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 :-

******************************************************************************************************
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 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 Idea

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....
Reply


Messages In This Thread
Please help me!!! - by yuganthafdo - May-04-2018, 06:00 PM
RE: Please help me!!! - by j.crater - May-04-2018, 06:23 PM
RE: Please help me!!! - by yuganthafdo - May-12-2018, 03:39 PM
RE: Please help me!!! - by j.crater - May-12-2018, 04:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020