Skip to content

jwt-cracker-go is a simple brute force cracker for HS256, HS384, and HS512 JWT tokens, inspired by jwt-cracker.

Notifications You must be signed in to change notification settings

elvisgraho/jwt-cracker-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-cracker-go

A fast JWT token cracker that supports multiple algorithms and cracking methods. Built in Go.

Features

  • Multiple Algorithms: Supports HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512
  • Cracking Methods:
    • Brute force with custom alphabet and max length
    • Dictionary attack with password files
    • Pattern-based cracking
  • Token Analysis: Analyzes tokens for security issues
  • Secret Generation: Generates common JWT secrets
  • Progress Tracking: Real-time progress with ETA
  • Parallel Processing: Multi-core support for faster cracking

Installation

go install github.com/elvisgraho/jwt-cracker-go@latest

Usage

Basic Usage

jwt-cracker-go -t <jwt_token> [options]

Options

  • -t: JWT token to crack (required)
  • -a: Alphabet for brute force (default: a-zA-Z0-9)
  • -max: Maximum secret length (default: 12)
  • -f: Password file for dictionary attack
  • -p: Pattern for secret generation (base64, hex, uuid, email, date, ip)
  • -alg: Specify JWT algorithm
  • -analyze: Analyze token for security issues
  • -generate: Generate common JWT secrets
  • -o: Output file for results
  • -v: Verbose output
  • -c: Number of concurrent workers (0 = CPU count)
  • -batch: Batch size for processing (0 = auto)
  • -force: Force cracking even if token is invalid

Examples

  1. Brute force attack:
jwt-cracker-go -t eyJhbGciOiJIUzI1NiIs... -max 8
  1. Dictionary attack:
jwt-cracker-go -t eyJhbGciOiJIUzI1NiIs... -f passwords.txt
  1. Analyze token:
jwt-cracker-go -t eyJhbGciOiJIUzI1NiIs... -analyze
  1. Generate secrets:
jwt-cracker-go -generate -o secrets.txt
  1. Pattern-based cracking:
jwt-cracker-go -t eyJhbGciOiJIUzI1NiIs... -p base64

Performance

  • Multi-core parallel processing
  • Efficient batch processing
  • Memory-optimized for large dictionaries
  • Progress tracking with ETA

License

MIT License

About

jwt-cracker-go is a simple brute force cracker for HS256, HS384, and HS512 JWT tokens, inspired by jwt-cracker.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages