DEV Community

Mukaila Samsondeen
Mukaila Samsondeen

Posted on Edited on

creating wordlist with python to bruteForce

"""Wordlist can be used for brute force.
"""

creating wordlist with python

import itertools

letters = "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"
n = 6

Creating wordlist

file = open("wordlist.txt", "w")

Generate combinations and then write to "wordlist"

for wl in itertools.product(letters, repeat = n):
file.write("".join(wl) + "\n")

Top comments (0)