mirror of
https://gitea.tendokyu.moe/TeamTofuShop/taitools.git
synced 2026-09-22 22:28:06 +03:00
update understanding of the OTP bytes in a nesica blue card
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ HRESULT nesica_card_populate(
|
||||
// Lock bits signal which parts of the card are write-locked
|
||||
// On real blue nesicas, OTP and pages 4-8 inclusive are locked (0xF8 0x01)
|
||||
// Internal is "reserved for internal data" and observed to be 0x48
|
||||
// OTP bytes are impl specific, observed to be 0x23 0x21 0x54 0x55 on sample card (#!TU)
|
||||
// OTP bytes are impl specific, observed to be different per card
|
||||
|
||||
// UID of 00010203040506 with BCC0 8B and BCC1 04
|
||||
// TODO: User-setable UID?
|
||||
@@ -59,7 +59,7 @@ HRESULT nesica_card_populate(
|
||||
mifare->pages[2].bytes[2] = 0xF8;
|
||||
mifare->pages[2].bytes[3] = 0x01;
|
||||
|
||||
memcpy_s(mifare->pages[3].bytes, 4, (uint8_t *)"#!TU", 4); // OTP
|
||||
memcpy_s(mifare->pages[3].bytes, 4, (uint8_t *)"ASDF", 4); // OTP, probably doesn't matter?
|
||||
memcpy_s(mifare->pages[4].bytes, 4, (uint8_t *)"T053", 4); // UID header?
|
||||
memcpy_s(mifare->pages[5].bytes, 16, card_sn, 16); // UID, should clobber pages 5-8 safely
|
||||
|
||||
|
||||
Reference in New Issue
Block a user