Share your repls and programming experiences

← Back to all posts
Brute Force Password Cracker
PYer (3942)

I created this simple brute force password cracker. Thanks to @Edgod and @21natzil for telling me errors and suggestions. It now works. It can take a very long time, so be warned. Please upvote and comment any suggestions. Thank you!

Comments
hotnewtop
Cosemus (12)

Password found out in 35.085 seconds. (hi). Passwords guessed: 20900. That's about 595 passwords per second is what i got

PYer (3942)

Cool! What do you think of the project? @Cosemus

BotsBoots (68)

It's not guessing correctly.
Your program is trying to guess a single char in the password, then moves on and does the same process with the next char in the password.
Password crackers don't work like that. It's not supposed to guess each individual char in the password, it's supposed to keep trying until the program cracks the entire password.
For example, if my password is "awesome", how is a password cracker supposed to know that the first letter of my password is an 'a' if it still doesn't know the rest of the password?

PYer (3942)

@Edgod Ah I see. Let me try and edit it.

21natzil (1175)

Probably because it's not actually guessing it

PYer (3942)

@21natzil I thought about that two. What is wrong with it?

21natzil (1175)

@PYer You seem to have resolved the issue, however your program never checks for upper case characters

PYer (3942)

@21natzil Ok. Thank you. I will fix that.