wd_generator.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Python-Pentest-Tools 作者: proxyanon 项目源码 文件源码
def generator(min_lenght, max_lenght, chars, name):
    lines = 0
    try:
        file=open(name, "w")
    except IOError:
        print "\n[x] Error : %s este caminho nao existe\n"%(name)
        exit()
    file_stats(max_lenght)
    print ""
    for n in range(min_lenght, max_lenght + 1):
        for xs in product(chars, repeat=n):
            lines = lines + 1
            string=''.join(xs)
            file.write(string + "\n")
            stdout.write('\r[+] Saving character `%s`' % string)
            stdout.flush()
    print "\a"
    file.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号