Python Forum
Brute Force Password Guesser - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Brute Force Password Guesser (/thread-13242.html)



Brute Force Password Guesser - 2skywalkers - Oct-05-2018

I've look around for answers for it before but Im having trouble finding a good explination. What I want to do is make a guesser that goes a, b, c, ... aa, ab, ac, ad, .. aaa, aaab. And so on. I can do it with numbers, but I can't figure out how to do it with letters. I don't have any code yet as I don't really no where to start.


RE: Brute Force Password Guesser - ichabod801 - Oct-05-2018

Are you familiar with the modulus operator (%)? a % b is the remainder after you divide a by b.

Now, think of the strings you are generating as numbers. What is the right most character of the string always going to be equal to?

Combine that with integer division (//) and a for loop, and you can generate what you want.