Hashcat

Cracking examples

  1. JSON Web Tokens (JWT)

Eg. Cracking a JWT secret:

  • jwt.txt: entire JWT sequence (header, payload and signature) (eg. eyJhbGxxx.eyJ1c2xxx.gLYfqxxx )

  • jwt.secrets.list: JWT secrets wordlist

$ hashcat -m 16500 -a 0 jwt.txt jwt.secrets.list

Flags

  • -m/--hash-type: Hash type

    • Eg. -m 16500 : Hash type of JWT (JSON Web Tokens)

  • -a: Attack mode

    • Eg. -a 0: Dictionary attack

Possible wordlists

Last updated