An open API service indexing awesome lists of open source software.

https://github.com/tjaart-code/brute-string-generator

a script that generates all possible strings of specified lengths using a given character set and an optional prefix.
https://github.com/tjaart-code/brute-string-generator

python3

Last synced: about 1 year ago
JSON representation

a script that generates all possible strings of specified lengths using a given character set and an optional prefix.

Awesome Lists containing this project

README

          

# Brute Force String Generator

This code produces all possible combinations of strings using a specified character set. It accepts a minimum and maximum length, a prefix, and an optional output file to save the generated strings.

#### Example Usage:



python3 bruteStringer.py 3 5 abc "pre_" output.txt

This command would:

Generate strings of length 3 to 5.

Use the character set abc (i.e., generate combinations of "a", "b", and "c").

Add the prefix "pre_" to each generated string.

Save the output to output.txt.



Sample Output:

For min_length=3, max_length=4, charset="abc", and prefix="pre_", the output in the file could look like this:

pre_aaa

pre_aab

pre_aac

pre_aba

pre_abb

...

pre_acc

pre_baa

pre_bab

...