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.
- Host: GitHub
- URL: https://github.com/tjaart-code/brute-string-generator
- Owner: tjaart-code
- License: gpl-3.0
- Created: 2024-10-08T15:04:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T08:55:48.000Z (over 1 year ago)
- Last Synced: 2025-02-18T09:34:36.604Z (over 1 year ago)
- Topics: python3
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
...