# JSON Web Tokens

## JWT Tool

JWT Tool is great for finding issues in JSON Web Tokens. It will help to identify the following issues:

* JWT uses HS256 signing algorithm
* JWT contains sensitive data
* JWT does not expire
* JWT permits a NULL signature
* RS256 to HS256

```
python jwt_tool.py <JWT> -X a
```

* <https://github.com/ticarpi/jwt_tool/>

## Cracking with Hashcat

Use the following command to crack JWTs.&#x20;

`hashcat.exe -m 16500 /JWT.txt rockyou.txt --backend-ignore-cuda`

JWT.txt should contain your JWT.

Various password wordlists can be used. rockyou.txt is one example.

* <https://hashcat.net/hashcat/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.pentestlist.com/offensive-security/web-application/exploitation/json-web-tokens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
