1

请帮助我如何访问 Mi-fare ultralight 1k 标签。

我尝试了命令

ff 82 00 01 06 ff ff ff ff ff ff and ff 82 00 01 06 A1 A2 A3 A4 A5 A6

在阅读器上成功加载。

但是当我尝试命令时

ff 88 00 01 60 00

用于使用标签进行身份验证

状态字63 00(操作失败)

日志如下所示

[ACS ACR122 0] : Running script
[1] > ff 82 00 01 06 FF FF FF FF FF FF
< 90 00
[2] > ff 88 00 01 60 00
< 63 00
[ACS ACR122 0] : Running script
[1] > ff 82 00 01 06 A1 A2 A3 A4 A5 A6
< 90 00
[2] > ff 88 00 01 60 00
< 63 00

我正在使用的 MIFARE 1K 标签的 ATR

3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A

下面给出了用于 MIFARE 1K 标签的 ACR122U 阅读器附带的脚本。这也是不成功的

MIFARE 1K 卡和 ACR122U PC/SC 读卡器的演示脚本

(c) 2008 年,Advanced Card Systems Ltd.

[1] Load (Mifare Default) key in reader (key location 0)
FF 82 00 00 06 FF FF FF FF FF FF (9000)

; [2] Authenticate sector 0, Block 0 with key at location 0
FF 86 00 00 05 01 00 00 60 00 (9000)

; [3] Read the full 16 bytes from Sector 0, Block 1
FF B0 00 01 10 [xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx] (9000)

; [4] Update the 16 bytes in Sector 0, block 1
FF D6 00 01 10 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F (9000)

; [5] Read the full 16 bytes from Sector 0, Block 1 again
FF B0 00 01 10 [xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx] (9000)

; [6] Authenticate sector 1, Block 5 with key at location 0
FF 86 00 00 05 01 00 05 60 00 (9000)

; [7] Store a value "1" into block 5
FF D7 00 05 05 00 00 00 00 01 (9000)

; [8] Read the value block 5
FF B1 00 05 04 [xx xx xx xx] (9000)

; [9] Copy the value from value block 5 to value block 6
FF D7 00 05 02 03 06 (9000)

; [10] Read the value block 6
FF B1 00 06 04 [xx xx xx xx] (9000)

; [11] Increment the value block 5 by "5"
FF D7 00 05 05 01 00 00 00 05 (9000)

; [12] Read the value block 5
FF B1 00 05 04 [xx xx xx xx] (9000)
4

1 回答 1

2

这张卡在我看来就像 MIFARE Classic 1K。

我认为您要与之进行身份验证的密钥号有误。尝试这个:

ff 82 00 01 06 FF FF FF FF FF FF  //Set key with on slot 1
ff 88 00 01 60 01                 //Auth with key from slot 1 to block 1 

我希望这将有所帮助。

于 2012-05-24T08:55:44.517 回答