nfc - Problems with writing to sector trailer of Mifare Classic 1K card -


I work with mifare classic 1k card and I have trouble. I want to rewrite the reach bits of area 0x23. Now these are bytes in the Sector Trailer: 42 5A A7 B710 84 17 80F Bb 9 1A 70E2EFB00, where

the key A = 42 5 AA B B 7 10 84

Main B = C 9 1A 70E2EF B0

and

Accessbits = 17 80f 0b

I see that I need authentication with Key A if I want to write data in the field trailer. Okay, there is no problem, I know that a. After authentication, I create an API to update the trailer of the area:

FF D6 00 23 10 42 5A A B B 7 10 84 17 84 FA 0BC 9 1 E 70E 2 EF B0

and send it. But I have error with 63 00 code. What am i doing

Access bits 17 80fx decode to c1 = 0x8 , C2 = 0xE and C3 = 0xF , so that there are access bits:

  • (C1C2C3 ) _3 = 1 1 1
  • (c1c2c3) _2 = 0 1 1
  • (c1 C2C3) _1 = 0 1 1
  • (c1c2c3) _0 = 0 0 1

Therefore, the Data Block 0 gives access permissions to read and subtract with 0 A & amp; B allows reading and writing with data block 1 and 2 key B. The Sekker trailer (Block 3) is permanently preserved (only access to access access with Access A and B is allowed).

So you can not update the trailer block of that second because it is permanently secure.


Comments