To run mywt from a docker image, run:
To install myjwt, on git:
To install myjwt on BlackArch:
![Packaging status]()
| Option | Type | Example | help|
| --------------------------- |:---------:|:--------:| ---:|
| --ful-payload | JSON | {"user": "admin"} | New payload for your jwt.|
| -h, --add-header | key=value | user=admin | Add a new key, value to your jwt header, if key is present old value will be replaced.|
| -p, --add-payload | key=value | user=admin | Add a new key, value to your jwt payload, if key is present old value will be replaced.|
| Option | Type | Example | help|
--- | --- | --- | ---
| --sign | text | mysecretkey | Sign Your jwt with your key
| -- | text | mysecretkey | your key.
| Option | Type | Example | help|
--- | --- | --- | ---
| -none, --none- | Nothing | | Check None Alg .
| --hmac | PATH | ./public.pem | Check RS/HMAC Alg , and sign your jwt with public key.
| --bruteforce | PATH | ./wordlist/big.txt | Bruteforce to guess th secret used to sign the token. Use txt file with all password stored(1 by line)
| --crack | REGEX | "[a-z]{4}" | regex to iterate all string possibilities to guess the secret used to sign the token.
| --kid | text | "00; echo /etc/.passwd" | Kid Injection sql
| --jku | text | MYPUBLICIP | Jku Header to bypass authentication, use --file if you want to change your jwks file name, and --key if you want to use your own private pem
| --x5u | text | MYPUBLICIP | For jku or x5c Header, use --file if you want to change your jwks file name, and --key if you want to use your own private pem
| Option | Type | Example | help|
--- | --- | --- | ---
| -u, --url | url | Url to send your jwt.
| -m, --method | text | POST | Method use to send request to url.(Default: GET).
| -d, --data | key=value | secret=MY_JWT | Data send to your url.Format: key=value. if value = MY_JWT value will be replace by your new jwt.
| -c, --cookies | key=value | secret=MY_JWT | Cookies to send to your url.Format: key=value.if value = MY_JWT value will be replace by your new jwt.
| Option | Type | Example | help|
--- | --- | --- | ---
| --crt | PATH | ./public.crt| For x5cHeader, force crt file
| --key | PATH | ./private.pem| For jku or x5c Header, force private key to your key file
| --file | text | myfile| For jku Header, force file name without .json extension
| --print | Nothing | | Print Decoded JWT
| --help | Nothing | | Show Helper message and exit.
| -- | Nothing | | Show Myjwt
Full example here: 01-modify-jwt
Full example here: 02-none-
Full example here: 03-sign-key
Full example here: 04-brute-force
Full example here: 05-rsa-hmac-confusion
Full example here: 06-kid-injection
Full example here: 07-jku-bypass
Full example here: 08-x5u-bypass
make lintmake testThe log's become rather long. It moved to its own file.
See CHANGES.
开发语言:Python
Star 数:139
该项目属于CTF思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A cli for cracking, testing vulnerabilities on Json Web Token(JWT)展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | MyJWT - 用于破解、测试Jso上的漏洞的CLI |
| 所属分类 | CTF思路 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 23:51:00 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 112 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |