
JSON Web Token (JWT) पर क्रैकिंग और कमजोरियों का परीक्षण करने के लिए एक CLI
यह CLI पेंटेस्टर्स, CTF खिलाड़ियों या डेवलपर्स के लिए है।
आप अपने jwt को संशोधित कर सकते हैं, साइन कर सकते हैं, इंजेक्ट कर सकते हैं, आदि...
अधिक जानकारी के लिए दस्तावेज़ीकरण देखें।
यदि आपको कोई समस्या या सुधार दिखाई दे, तो एक मुद्दा भेजें। मैं जल्द से जल्द उत्तर दूंगा।
आनंद लें :)
दस्तावेज़ीकरण http://myjwt.readthedocs.io पर उपलब्ध है
myjwt को स्थापित करने के लिए, बस pip का उपयोग करें:
pip install myjwt
डॉकर इमेज से myjwt चलाने के लिए, चलाएँ:
docker run -it docker.pkg.github.com/mbouamama/myjwt/myjwt:latest myjwt
# mount volume for wordlist
docker run -v $(pwd)/wordlist:/home/wordlist/ -it docker.pkg.github.com/mbouamama/myjwt/myjwt:latest myjwt
# On Windows
docker run -v %CD%/wordlist:/home/wordlist/ -it docker.pkg.github.com/mbouamama/myjwt/myjwt:latest myjwt
git पर myjwt स्थापित करने के लिए:
git clone https://github.com/mBouamama/MyJWT.git
cd ./MyJWT
pip install -r requirements.txt
python MyJWT/myjwt_cli.py --help
BlackArch पर myjwt स्थापित करने के लिए:
pacman -S myjwt
$ myjwt --help
Usage: myjwt [OPTIONS] JWT
This cli is for pentesters, CTF players, or dev.
You can modify your jwt, sign, inject ,etc...
Full documentation is at http://myjwt.readthedocs.io.
If you see problems or enhancement send an issue.I will respond as soon as possible.
Enjoy :)
All new jwt will be copy to the clipboard.
Options:
--version Show the version and exit.
--full-payload TEXT New payload for your jwt.Json format Required.
-h, --add-header TEXT Add a new key, value to your jwt header, if key
is present old value will be replaced.Format:
key=value.
-p, --add-payload TEXT Add a new key, value to your jwt payload, if
key is present old value will be
replaced.Format: key=value.
--sign TEXT Sign Your jwt with key given.
--verify TEXT verify your key.
-none, --none-vulnerability Check None Alg vulnerability.
--hmac PATH Check RS/HMAC Alg vulnerability.
--bruteforce PATH Bruteforce to guess the secret used to sign the
token.
-r, --crack TEXT regex to iterate all string possibilities to
guess the secret used to sign the token.
--kid TEXT Kid Injection sql
--jku TEXT Jku Header to bypass authentication
--x5u TEXT X5u Header to bypass authentication
--crt TEXT For x5cHeader, force crt file
--key TEXT For jku or x5c Header, force private key to
your key file
--file TEXT For jku Header and x5u Header, force file name
--print Print Decoded JWT
-u, --url TEXT Url to send your jwt.
-m, --method TEXT Method use for send request to url.(Default
GET).
-d, --data TEXT Data send to your url.Format: key=value. if
value = MY_JWT value will be replace by new
jwt.
-c, --cookies TEXT Cookies to send to your url.Format: key=value.
if value = MY_JWT value will be replace by new
jwt.
--help Show this message and exit.
| विकल्प | प्रकार | उदाहरण | सहायता |
|---|---|---|---|
| --ful-payload | JSON | {"user": "admin"} | आपके jwt के लिए नया payload। |
| -h, --add-header | key=value | user=admin | आपके jwt हेडर में एक नई key, value जोड़ें, यदि key मौजूद है तो पुरानी value बदल दी जाएगी। |
| -p, --add-payload | key=value | user=admin | आपके jwt payload में एक नई key, value जोड़ें, यदि key मौजूद है तो पुरानी value बदल दी जाएगी। |
| विकल्प | प्रकार | उदाहरण | सहायता |
|---|---|---|---|
| --sign | text | mysecretkey | अपनी कुंजी से अपने jwt पर हस्ताक्षर करें |
| --verify | text | mysecretkey | अपनी कुंजी सत्यापित करें। |