【发布时间】:2016-01-09 06:07:54
【问题描述】:
我正在寻找执行字典攻击并想知道如何创建一个单词列表,其中每个单词包含 5 个字母 (af)和 5 个数字 (2-9) 或 6 个字母 (af) 和 4 个数字 (2-9) 仅(我不能这样做)。
这是我目前所拥有的(来自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)
谢谢
【问题讨论】:
标签: python python-3.x itertools dictionary-attack