DEV Community

Mukaila Samsondeen
Mukaila Samsondeen

Posted on

2 2

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more