https://github.com/piecioshka/brute-force-generator
🔨 Build a dictionary by permuting passed letters (using ES2015+)
https://github.com/piecioshka/brute-force-generator
cli security
Last synced: 10 days ago
JSON representation
🔨 Build a dictionary by permuting passed letters (using ES2015+)
- Host: GitHub
- URL: https://github.com/piecioshka/brute-force-generator
- Owner: piecioshka
- Created: 2019-05-13T20:01:17.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2026-01-12T15:38:37.000Z (6 months ago)
- Last Synced: 2026-04-23T12:34:48.643Z (2 months ago)
- Topics: cli, security
- Language: JavaScript
- Homepage:
- Size: 153 KB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# brute-force-generator
[](#cli)
[](https://www.npmjs.com/package/brute-force-generator)
[](https://badge.fury.io/js/brute-force-generator)
[](https://www.npmjs.com/package/brute-force-generator)
[](https://packagephobia.com/result?p=brute-force-generator)
[](https://piecioshka.mit-license.org)
[](https://github.com/piecioshka/brute-force-generator/actions/workflows/testing.yml)
🔨 Build a dictionary by permuting passed letters (using ES2015+)
## Usage
```javascript
const generate = require('brute-force-generator');
const gen = generate(['a', 'b'], 2);
for (let record of gen) {
console.log(record); // 'a', 'b', 'aa', 'ab', 'ba', 'bb'
}
```
## CLI
Installation:
```bash
npm install -g brute-force-generator
```
Help:
```bash
brute-force-generator --help
Usage: brute-force-generator -a [string] -l [num]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-a, --alphabet [required]
-l, --length [required]
```
Usage:
```bash
# Lowercase latin alphabet — abcdefghijklmnopqrstuvwxyz
brute-force-generator -a abcdefghijklmnopqrstuvwxyz -l 5 > latin-5.dic
# Generate infinity wordlist (may take some time 😈)
brute-force-generator -a abcdefghijklmnopqrstuvwxyz -l Infinity
```
## Related
* [dicts](https://github.com/piecioshka/dicts)
* [test-md5-tools](https://github.com/piecioshka/test-md5-tools)
* [indexed-string-variation](https://github.com/lmammino/indexed-string-variation)
## License
[The MIT License](https://piecioshka.mit-license.org) @ 2019