mazen160 / jwt-pwn Goto Github PK
View Code? Open in Web Editor NEWSecurity Testing Scripts for JWT
License: MIT License
Security Testing Scripts for JWT
License: MIT License
/pentest/wordlist.txt个文件github地址是多少
Add to readme for golang
go get /usr/local/go/src/github.com/dgrijalva/jwt-go
need to update codec as default utf8 wont cut it for rockyou.txt.
open(file, "r",encoding="ISO-8859-1")
(base) jwt-pwn $ python3 jwt-mimicker.py "token_here"
Traceback (most recent call last):
File "jwt-mimicker.py", line 33, in <module>
main()
File "jwt-mimicker.py", line 21, in main
jwt_token_value = jwt.decode(jwt_token, verify=False)
File "/opt/anaconda3/lib/python3.7/site-packages/jwt/api_jwt.py", line 113, in decode
decoded = self.decode_complete(jwt, key, algorithms, options, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/jwt/api_jwt.py", line 80, in decode_complete
'It is required that you pass in a value for the "algorithms" argument when calling decode().'
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
This is because pyjwt has updated to 2.0 with many breaking changes.
https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst#require-explicit-algorithms-in-jwtdecode-by-default
Fast solution:
pip install pyJWT==1.7.1
#fix this error by including this code or whichever algorithm needs to be specified. But it is safer to not hard code. Always.
decoded_token = jwt.decode(jwt_token, secret_key, algorithms=["HS256"])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.