{"id":21617284,"url":"https://github.com/hemantsonu20/jwt-cracker","last_synced_at":"2025-04-11T07:37:13.305Z","repository":{"id":16370103,"uuid":"79821825","full_name":"hemantsonu20/jwt-cracker","owner":"hemantsonu20","description":"A multi-threaded jwt cracker via brute force approach","archived":false,"fork":false,"pushed_at":"2023-03-06T13:56:58.000Z","size":14274,"stargazers_count":1,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T05:09:27.995Z","etag":null,"topics":["java","java-8","jwt","jwt-cracker","jwt-token","maven","sonar","spring-boot","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hemantsonu20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-23T16:18:15.000Z","updated_at":"2022-01-23T14:35:54.000Z","dependencies_parsed_at":"2023-02-12T23:10:25.873Z","dependency_job_id":null,"html_url":"https://github.com/hemantsonu20/jwt-cracker","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantsonu20%2Fjwt-cracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantsonu20%2Fjwt-cracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantsonu20%2Fjwt-cracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantsonu20%2Fjwt-cracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemantsonu20","download_url":"https://codeload.github.com/hemantsonu20/jwt-cracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248359053,"owners_count":21090469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-8","jwt","jwt-cracker","jwt-token","maven","sonar","spring-boot","travis-ci"],"created_at":"2024-11-24T22:17:09.564Z","updated_at":"2025-04-11T07:37:13.270Z","avatar_url":"https://github.com/hemantsonu20.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/hemantsonu20/jwt-cracker.svg?branch=master)](https://travis-ci.com/hemantsonu20/jwt-cracker) \n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n[![Line Of Code](https://sonarcloud.io/api/project_badges/measure?project=com.github.hemantsonu20%3Ajwt-cracker\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=com.github.hemantsonu20%3Ajwt-cracker)\n\n# jwt-cracker\nA multi-threaded JWT cracker via brute force approach.\n\n## JAVA-DOCS\nJava-docs for this project is checked in [docs](/docs/apidocs) folder.  \nAfter every successful commit on master branch, it is automatically updated via CI.  Here is the [link](https://hemantsonu20.github.io/jwt-cracker/apidocs/).  \n\n## USAGE\nDownlaod the project and run mvn clean package. A jar will be created in your {projectdir}/target directory.  \nOr you can get updated jar from the [releases](https://github.com/hemantsonu20/jwt-cracker/releases) section.  \n\n## Command Line Options\n| Flags                   | Descriptions                                                | Required | Default    |\n| ---------------------   |-------------                                                | -----    | --------   |  \n| \"-t\", \"--token\"         | jwt token to be cracked                                     | true     | No Default |  \n| \"-mt\", \"--max-threads\"  | max no of threads to be used                                | false    | 20         |  \n| \"-l\", \"--length\"        | max possible length of the jwt secret key                   | true     | 10         |  \n| \"-c\", \"--chars\"         | charset to be included combination of a-z, A-Z and 0-9 only | true     | a-zA-Z0-9  |  \n\n## Examples\n1. java -jar target/jwt-cracker-0.0.1-SNAPSHOT.jar -c a-z -t eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwianRpIjoiZTczMWJhZWYtNzA5MS00YTMxLWJjOWUtOWI5NWY3ZWZkOGY5IiwiaWF0IjoxNDg1MzMwMTk5LCJleHAiOjE0ODUzMzM3OTl9.t-pea7zd3MRfPI2M8hRKFum-4RY0l4xqbCUIyh8kiAc\n \n **Output**\u003cbr/\u003e\n password cracked: [powers]\u003cbr/\u003e\n total time taken [hh::mm:ss:SSS] 0:11:38.600\n \n2. java -jar target/jwt-cracker-0.0.1-SNAPSHOT.jar -c a-z -t eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwianRpIjoiNzM4YmY5N2YtMzZiZi00MGViLWEwNzAtYWIyNjU2ODBkYzI2IiwiaWF0IjoxNDg1MzI5ODQ2LCJleHAiOjE0ODUzMzM0NDZ9.nbvi9BQJHbfPxAzGZHO6YbfKqAxrCjedJPPVnD0_QLY\n \n **Output**\u003cbr/\u003e\n password cracked: [power]\u003cbr/\u003e\n total time taken [hh::mm:ss:SSS] 0:00:26.349\n \n3. java -jar target/jwt-cracker-0.0.1-SNAPSHOT.jar -c a-z0-9 -t eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwianRpIjoiN2JiODdjOGItMzJiMS00NTk3LWFlMGYtMmI1MWY3MTQ1YjNlIiwiaWF0IjoxNDg1MzM2NTkzLCJleHAiOjE0ODUzNDAxOTN9.sxua3rDJcSH0cKWu5F6v0Xq__1DZ5HdjcnRfwWqnEpA\n\n **Output**\u003cbr/\u003e\n password cracked: [new123]\u003cbr/\u003e\n total time taken [hh::mm:ss:SSS] 0:20:52.520\n \n4. java -jar target/jwt-cracker-0.0.1-SNAPSHOT.jar -c a-z0-9 -t eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwianRpIjoiN2JiODdjOGItMzJiMS00NTk3LWFlMGYtMmI1MWY3MTQ1YjNlIiwiaWF0IjoxNDg1MzM2NTkzLCJleHAiOjE0ODUzNDAxOTN9.sxua3rDJcSH0cKWu5F6v0Xq__1DZ5HdjcnRfwWqnEpA -mt 50\n\n **Output**\u003cbr/\u003e\n password cracked: [new123]\u003cbr/\u003e\n total time taken [hh::mm:ss:SSS] 0:38:19.124\n \n5. java -jar target/jwt-cracker-0.0.1-SNAPSHOT.jar -c a-z0-9 -t eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwianRpIjoiN2JiODdjOGItMzJiMS00NTk3LWFlMGYtMmI1MWY3MTQ1YjNlIiwiaWF0IjoxNDg1MzM2NTkzLCJleHAiOjE0ODUzNDAxOTN9.sxua3rDJcSH0cKWu5F6v0Xq__1DZ5HdjcnRfwWqnEpA -mt 4\n\n **Output**\u003cbr/\u003e\n password cracked: [new123]\u003cbr/\u003e\n total time taken [hh::mm:ss:SSS] 1:01:22.845\n \n## Note\n* Its not always beneficial to use more thread for better performance.\n* See example 3 (20 thread), example 4 (50 thread) and example 5 (4 thread). More threads may add overhead of context switch to the system resulting in performance degradation.\n* All above tests were executed on my system with Intel i5 @3.20GHz 2 physical core, 8 GB RAM.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantsonu20%2Fjwt-cracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemantsonu20%2Fjwt-cracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantsonu20%2Fjwt-cracker/lists"}