Giter Club home page Giter Club logo

jwtcrack's Introduction

Crack a HS256, HS384 or HS512-signed JWT. You need PyJWT and tqdm for these scripts:

pip install PyJWT tqdm

crackjwt.py

crackjwt.py JWT dictionary.txt

Try to verify the signature on the JWT using all words in dictionary.txt (one per line).

jwt2john

jwt2john.py JWT

Convert a JWT to a format John the Ripper can understand.

John the Ripper now supports the JWT format, so converting the token is no longer necessary. John has a size limit on the data it will take. If you run into this limit, consider changing SALT_LIMBS in the source code.

jwtcrack's People

Contributors

abinpaul1 avatar jfgauron avatar sjord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jwtcrack's Issues

License Information

Hi,
Really great work Sjoerd! I really appreciate the project and the efforts you have put into it. We would like to use the project for a commercial training online/classroom. So, I just wanted to clarify, if we acknowledge the source, would that be sufficient and covered under the terms of use?

jwt2john not working with some input strings / formats?

This hmac-sha256 input string does not seem to be interpreted by john (with or without bleeding jumbo patches) following jwt2john even if forced to hmac-sha256. Any thoughts? What algorithms are supported? Maybe I am missing something?

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjMGUyOWViNC1iYWNhLTRiMGItYWE3OS00YzlmMDMxMjg5NWQiLCJ1c2VySWQiOjUwNywidXNlclVpZCI6ImQzMjQwZGZmLTEwZTktNDM2MC05ZjdkLWE4YzdmOTllMzc4MSIsImVtYWlsIjoiYWxpY2UuZGF0YXNjaWVuY2VAZ3VhcmRzaWdodC5jb20iLCJyb2xlcyI6WyJTVEFOREFSRCJdLCJuYW1lIjoiQWxpY2UgR3VhcmRzaWdodCIsImlhdCI6MTQ5MDE0NTU3MH0.J0KJ3N7WwqE9MIL2nABdLVSfseej4BiUFREJl8eSUqU

$ echo -en 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9' | base64 -d
{"alg":"HS256","typ":"JWT"}
$ jwt2john eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjMGUyOWViNC1iYWNhLTRiMGItYWE3OS00YzlmMDMxMjg5NWQiLCJ1c2VySWQiOjUwNywidXNlclVpZCI6ImQzMjQwZGZmLTEwZTktNDM2MC05ZjdkLWE4YzdmOTllMzc4MSIsImVtYWlsIjoiYWxpY2UuZGF0YXNjaWVuY2VAZ3VhcmRzaWdodC5jb20iLCJyb2xlcyI6WyJTVEFOREFSRCJdLCJuYW1lIjoiQWxpY2UgR3VhcmRzaWdodCIsImlhdCI6MTQ5MDE0NTU3MH0.J0KJ3N7WwqE9MIL2nABdLVSfseej4BiUFREJl8eSUqU > hash.txt
$ john hash.txt
Using default input encoding: UTF-8
No password hashes loaded (see FAQ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.