Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
distributed-jwt-cracker
Advanced tools
An experimental distributed JWT token cracker built using Node.js and ZeroMQ
An experimental distributed JWT token cracker built using Node.js and ZeroMQ. It can be used to discover the password (or "secret") of an unencrypted JWT token using a HS256 signature.
Through NPM:
npm i -g distributed-jwt-cracker
Requires ZeroMq libraries to be already installed in your machine.
To start a new server:
jwt-cracker-server <jwtToken> [options]
The following options are available:
option | description | type | default |
---|---|---|---|
-p, --port | The port used to accept incoming connections | number | 9900 |
-P, --pubPort | The port used to publish signals to all the workers | number | 9901 |
-a, --alphabet | The alphabet used to generate the passwords | string | "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789" |
-b, --batchSize | The number of attempts assigned to every client in a batch | number | 1000000 |
-s, --start | The index from where to start the search | number | 0 |
Example, using the example JWT.io token over a simple alphabet:
jwt-cracker-server eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ -a=abcdefghijklmnopqrstuwxyz
To start a new client:
jwt-cracker-client [options]
The following options are available:
option | description | type | default |
---|---|---|---|
-h, --host | The hostname of the server | string | "localhost" |
-p, --port | The port used to connect to the batch server | number | 9900 |
-P, --pubPort | The port used to subscribe to broadcast signals (e.g. exit) | number | 9901 |
Example:
jwt-cracker-client --host=localhost --port=9900 --pubPort=9901
This project has been thoroughly discussed in two articles published on RisingStack community blog:
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
Licensed under MIT License. © Luciano Mammino.
FAQs
An experimental distributed JWT token cracker built using Node.js and ZeroMQ
The npm package distributed-jwt-cracker receives a total of 5 weekly downloads. As such, distributed-jwt-cracker popularity was classified as not popular.
We found that distributed-jwt-cracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.