Skip to content

Instantly share code, notes, and snippets.

@racerxdl
Created June 22, 2022 19:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racerxdl/886b2ad59b2575b322b6e1bca8cd2e02 to your computer and use it in GitHub Desktop.
Save racerxdl/886b2ad59b2575b322b6e1bca8cd2e02 to your computer and use it in GitHub Desktop.
Initialize unfused JCOP card
java -jar gp.jar -d \
  -a 00a4040010C238E449F725B1510EAA699550CABA16 \
  -a 00f00000 \
  -a c0d6030510404142434445464748494a4b4c4d4e4f \
  -a c0d6032110404142434445464748494a4b4c4d4e4f \
  -a c0d6033D10404142434445464748494a4b4c4d4e4f

APDU commands explanation:

  • 00a4040010C238E449F725B1510EAA699550CABA16
    • 00a4040010 => Initialize Card
    • C238E449F725B1510EAA699550CABA16 => Transport Key (TK)
  • 00f00000 => Factory Reset, Open to Initialize
  • c0d6030510404142434445464748494a4b4c4d4e4f => Set key slot 0 to default test key 404142434445464748494A4B4C4D4E4F
  • c0d6032110404142434445464748494a4b4c4d4e4f => Set key slot 2 to default test key 404142434445464748494A4B4C4D4E4F
  • c0d6033D10404142434445464748494a4b4c4d4e4f => Set key slot 3 to default test key 404142434445464748494A4B4C4D4E4F

Tested card: https://pt.aliexpress.com/item/32856082491.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment