Skip to content

Generate a wordlist mangling a given word.

Notifications You must be signed in to change notification settings

patrickrbc/smangler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smangler

Generate variants of a word following different strategies that are commonly used in order to create a password. This project does not aims to produce an exaustive output but a set of probable values instead. Some of the strategies used to generate are: capitalization, upper case, camel case and leet speaking.

CircleCI

Installation

npm install -g smangler

Usage

$ smangler -h

  Usage: smangler [options]

  Options:
    -h, --help      Show this help message and exit.
    -v, --version   Show the version and exit.
    -w, --words [string]   One or multiple words comma separated
    -m, --min [number]     Minimum length (default: 0)
    -M, --max [number]     Max length (default: 80)

$ smangler -w password
password
pAsSwOrD
Password
pa55word
p4ssw0rd
...
97P455w0rD
98P455w0rD
99P455w0rD
@P455w0rD
@@P455w0rD

$ smangler -w password | wc -l
64360

If the -w option is not provided, the program will read from the standard input.

$ cat interesting_words.txt | smangler

It can also be used an imported library:

const smangler = require('smangler')

console.log(smangler({words: 'password', max: 4}))

License

MIT License

Copyright (c) 2019 patrickrbc

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

Packages

No packages published