Simple HS256 JWT token brute force cracker with multi-thread support and minimal dependencies. It also shows a resume command on exit and has a nice progressbar.
npm install multithread-jwt-cracker !npm



jwt-cracker package by @lmammino, check out the original repo!
bash
npm install --global multithread-jwt-cracker
`
Usage
From command line:
`bash
multithread-jwt-cracker [] [] [] []
`
Where:
* token: the full HS256 JWT token string to crack
* alphabet: the alphabet to use for the brute force, type 'default' to omit
(default: "etaoinsrhldcumfpgwybv0123456789kxjqz _-.ETAOINSRHLDCUMFPGWYBVKXJQZ")
* maxLength: the max length of the string generated during the brute force (default: 12)
threads: the number of threads to use (default: 1, max: your-cpu-max-threads*)
* start: the index from where to resume the search
Requirements
This script requires Node.js version 6.0.0 or higher
Example
Cracking the default jwt.io example:
`bash
multithread-jwt-cracker "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ" "abcdefghijklmnopqrstuwxyz" 6 12
`
It starts cracking with 12 threads and only lower-case letters as alphabet. It takes about 240s to crack on i9-9900K:
`bash
Cracking process started. (pid: XXXX)
Token:
Alphabet:
maxLen: <6>
threads: <12>
[================= ] length 6/6 | cursor 187,210,000 | 754,879 secrets/sec | elapsed 248s Success!
Secret found! Secret: secret
Time taken (sec): 248
``