1 - brute-force attack on a JWT (JSON Web Token) to discover its secret key
2 - The tool enables you to guess more than 100,000 secret keys in about 5 seconds.
Sjwt is a Python script designed to perform a brute-force attack on a JWT (JSON Web Token) to discover its secret key. It uses a provided wordlist of potential keys and attempts to decode the JWT with each key until it finds a match or exhausts the wordlist.
- Python 3.x
PyJWTlibrary (Automatically installed if missing)
-
Prepare Your Wordlist:
- When you download the tool, a file
wordlist.txtwill be downloaded, which contains more than 100,00 secret keys. - You can change the file as you like and add more, but keep the file name
wordlist.txt
- When you download the tool, a file
-
Run the Script:
On Windows:
- Download the
sjwt.pyfile from the repository. - Open Command Prompt and navigate to the directory where
sjwt.pyis located. - Run the script by typing:
python sjwt.py
- Follow the prompts:
- Type
yto install the required library (PyJWT) if it's not already installed. - Enter your JWT token when prompted.
- Type
On Other Operating Systems (Linux/MacOS):
- Clone the repository:
git clone https://github.com/Alawsi/sjwt.git cd sjwt python sjwt.py - Follow the prompts as described above.
- Download the
