Python Forum

Full Version: Brute Force Password Guesser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.