Bruteforce Password Guesser (I'm back)
After arduous nights and days wondering whether I should code another program, I'm back.
How it works:
You input a 4-lettered password that you want the computer to guess.
Press enter, and the computer will automatically get cracking at it.
Note: This program does take a long time since it is Bruteforce lol and it does it randomly each time. The amounts of passwords guessed can reach 100 million and more!
Edit: OMG Thanks for all of the support I’ve been getting on this repl recently! 56 upvotes is insane, so thank you so much!
Also, my programs usually don't get a ton of upvotes, and I work really hard on them, so if you enjoy my program, make sure to upvote; its free, and it motivates me a ton!
This is pretty cool! Good job with the random letter thingie, and if you want the program to be a bit more efficient, you can use for loops! It would be something like this
for letter1 in allLetters: for letter2 in allLetters: for letter3 in allLetters: for letter4 in allLetters: password=letter1+letter2+letter3+letter4
And then something else, like
This way it would go through the list like
aaac and so on, just a suggestion I guess
print(blue+"This text is blue")
print(blue) print("This is blue")
This method just seems simple, and it cuts down on the size of thing too, im just saying this because I looked at your coding story and saw you were doing it the second way.
Also dont take this too serious, im just bored
I made a fork of it here-https://repl.it/@gwood5901/BruteForce-Program#main.py I can't actually test it because I think you need the hacker plan for it to work(which I don't), but I think it should be able to run faster. I'm going to run it locally on my computer. I'll reply saying the results soon!
Hello! as@Muffinlavania said, for loops are much more efficient than random guessing which means combinations can be repeated multiple times. This results in worse program times, so hopefully later you can add for loops and I expect reduce the time and guesses.
Here's some math!
90 characters are possible for each. Meaning the possibilities are 90^4 if you dont know exponents that is 90*90*90*90. That is a bigggg number (big! big! humongous!). However, if you use random choosing each time, it is theoretically possible to guess an infinite amount of times without ever getting it right.
So do for loops! 90^4 is big! But much smaller than infinity.
I would suggest using multithreading to make it faster. If you hadn't have the timepassed variable, you could've used multiproccessing which is about 30% faster than multithreading. But, anyways, this is a good project!
There is a more efficient way to crack even longer passwords than just for loops. There are "password dictionaries" which contain "keywords" that are found in most passwords, which most password crackers use. Those dictionaries can crack passowords such as [email protected][email protected] very easily.
Most passwords are also hashed, so most crackers will have to run on special GPUs designed for hashing up to 30 billion times a second.
You could look into that, there are some free dictionaries that you could definitely find online and could probably get you up to at least 8 characters