Skip to content

Instantly share code, notes, and snippets.

@iangcarroll
Created March 12, 2022 04:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iangcarroll/a5a70d9e005e7cf4ac559f81b727f085 to your computer and use it in GitHub Desktop.
Save iangcarroll/a5a70d9e005e7cf4ac559f81b727f085 to your computer and use it in GitHub Desktop.
HID iCLASS 3DES Transport Key

It is a pain to find the iclass_decryptionkey.bin file online to modify the Wiegand data for HID iCLASS cards. I found it online in only one place, so here it is in case it disappears. This is required for hf iclass encode, hf iclass encrypt, etc.

$ xxd iclass_decryptionkey.bin
00000000: b421 2cca b7ed 210f 7b93 d459 39c7 dd36  .!,...!.{..Y9..6

$ xxd -p iclass_decryptionkey.bin
b4212ccab7ed210f7b93d45939c7dd36

[usb] pm3 --> hf iclass encrypt -d 0102030405060708 -k b4212ccab7ed210f7b93d45939c7dd36
[+] plain....... 0102030405060708
[+] encrypted... 4B8F355F294BD156

[usb] pm3 --> hf iclass encode --fc 200 --cn 1234 --ki 0 -w H10301 --enckey b4212ccab7ed210f7b93d45939c7dd36
[+] Using key[0] AE A6 84 A6 DA B2 32 78
[+] Write block 6/0x06 ( ok )  --> 030303030003E017
[+] Write block 7/0x07 ( ok )  --> 5F10AAB7A5EC1D8C
[+] Write block 8/0x08 ( ok )  --> 2AD4C8211F996871
[+] Write block 9/0x09 ( ok )  --> 2AD4C8211F996871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment