New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wordlist-generator-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordlist-generator-cli

cli tool for wordlist generation.

latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

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.

Keywords

wordlist

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts