Skip to content

Instantly share code, notes, and snippets.

@3a1
Last active December 6, 2023 21:54
Show Gist options
  • Save 3a1/5213252ba927abbb7935940fd53ef526 to your computer and use it in GitHub Desktop.
Save 3a1/5213252ba927abbb7935940fd53ef526 to your computer and use it in GitHub Desktop.
Wordlist Generator
import itertools
min_length = 3
max_length = 3
charset = "abcdefghijklmnopqrstuvwxyz0123456789-"
wordlist = [''.join(candidate) for candidate in itertools.product(charset, repeat=min_length)]
output_file_path = "wordlist.txt"
with open(output_file_path, 'w') as file:
for word in wordlist:
file.write(word + '\n')
print(f"Saved: {output_file_path}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment