I'm new to python, but I just made a basic wordlist generator with a combination of unknown and known alphanumeric characters that are stored into a file:
textfile = file('passwords.txt', 'wt')
import itertools
numbers = itertools.product('0123456789', repeat=8)
alphanum = itertools.product('0123456789ABCDEF', repeat=4)
for i in numbers:
for c in alphanum:
textfile.write(''.join(i)+'XXXX'+''.join(c)+'\n')
textfile.close()
I get this kind of output:
"00000000XXXX@@@@"
where the X are numbers (known numbers) and @ a mix of characters and numbers. That's fine. But I want the first 8 numeric values to change, and they keep being 0's, not from 0-9. I have tried some things but nothing worked...
How to solve this? And what am I doing wrong? I know there are programs like crunch and cewl etc etc.. but I like it more to start doing my own simple scripts and keep learning.
Thanks, and sorry if something like this have been answered, I couldn't find the exact thing I want.