I'm looking to preform a dictionary attack and want to know how to create a wordlist that has every 10 letter permutation of the letters a-f and 2-9 (which I can do) WHEN every word contains 5 letters (a-f) and 5 numbers (2-9) OR 6 letters (a-f) and 4 numbers (2-9) ONLY (what I can't do).
Here's what I have so far (from here):
import itertools
chrs = 'abcdef23456789'
n = 2
min_length, max_length = 10, 10
for n in range(min_length, max_length+1):
for xs in itertools.product(chrs, repeat=n):
print ''.join(xs)
Thanks