When I came over wordlist generation tools like crunch. I wanted to generate all [lower, upper] case combinations of a specific char sequence but sadly I couldn't 😥️. So I worte my own code to do that with some other features. Then I implemented it as a cli tool for any one facing this situation.
$ npm install -g wordlist-generator-cli
$ wgen [options]
options:
-V, --version output the version number
-w, --word <value> Specify the word to generate combinations
-o, --output <path> Specify the path for the output file
-p, --preserved [value] Specify a word to preserve from combinations, works
with -i option
-i, --index [value] Specify the index for the preserved word in the
combinations word
index is 0 based
default is -1
-h, --help display help for command
$ wgen -w abc -o /home/user/wordlists/wordlist.txt
__ _____ _ __ __| | (_)___| |_ __ _ ___ _ __
\ \ /\ / / _ \| '__/ _` | | / __| __|____ / _` |/ _ \ '_ \
\ V V / (_) | | | (_| | | \__ \ ||_____| (_| | __/ | | |
\_/\_/ \___/|_| \__,_|_|_|___/\__| \__, |\___|_| |_|
|___/
Generating combinations of 8 words...
Generated successfully.
wordlist can be found at path: /home/user/wordlists/wordlist.txt
abc
abC
aBc
aBC
Abc
AbC
ABc
ABC
[-p] option allow you to specify chars you want to add to the combinations. [-i] option allow you to specify the index at the combinations to add preserved chars to.
If you didn't add the [-i] option it will add chars to the end of the combinations.
$ wgen -w abcd -o /home/user/wordlists/wordlist.txt -p @
__ _____ _ __ __| | (_)___| |_ __ _ ___ _ __
\ \ /\ / / _ \| '__/ _` | | / __| __|____ / _` |/ _ \ '_ \
\ V V / (_) | | | (_| | | \__ \ ||_____| (_| | __/ | | |
\_/\_/ \___/|_| \__,_|_|_|___/\__| \__, |\___|_| |_|
|___/
Generating combinations of 16 words...
Generated successfully.
wordlist can be found at path: /home/user/wordlists/wordlist.txt
abcd@
abcD@
abCd@
abCD@
aBcd@
aBcD@
aBCd@
aBCD@
Abcd@
AbcD@
AbCd@
AbCD@
ABcd@
ABcD@
ABCd@
ABCD@
Note: index is 0 based.
$ wgen -w abcd -o /home/user/wordlists/wordlist.txt -p @ -i 2
__ _____ _ __ __| | (_)___| |_ __ _ ___ _ __
\ \ /\ / / _ \| '__/ _` | | / __| __|____ / _` |/ _ \ '_ \
\ V V / (_) | | | (_| | | \__ \ ||_____| (_| | __/ | | |
\_/\_/ \___/|_| \__,_|_|_|___/\__| \__, |\___|_| |_|
|___/
Generating combinations of 16 words...
Generated successfully.
wordlist can be found at path: /home/user/wordlists/wordlist.txt
ab@cd
ab@cD
ab@Cd
ab@CD
aB@cd
aB@cD
aB@Cd
aB@CD
Ab@cd
Ab@Cd
Ab@cD
Ab@CD
AB@cd
AB@cD
AB@Cd
AB@CD
wordlist-generator-cli is ISC Licensed.