wordlist-generator-cli

1.0.5 • Public • Published

Wordlist Generator Cli

Description

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.

Install

$ npm install -g wordlist-generator-cli

Usage

$ 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

Examples

Example 1:

$ 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

output file contents:

abc
abC
aBc
aBC
Abc
AbC
ABc
ABC

Example 2:

[-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

output file contents:

abcd@
abcD@
abCd@
abCD@
aBcd@
aBcD@
aBCd@
aBCD@
Abcd@
AbcD@
AbCd@
AbCD@
ABcd@
ABcD@
ABCd@
ABCD@

Example 3:

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

output file contents:

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

License

wordlist-generator-cli is ISC Licensed.

Package Sidebar

Install

npm i wordlist-generator-cli

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

11.6 kB

Total Files

8

Last publish

Collaborators

  • tarek-saimouah