]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed setting block0 for "magic card". now it works)
authorMerlokbr@gmail.com <Merlokbr@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 10:00:44 +0000 (10:00 +0000)
committerMerlokbr@gmail.com <Merlokbr@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 10:00:44 +0000 (10:00 +0000)
client/mifarehost.c

index ef70fe9770ddba86a69ea87659e298179ba37328..11859e025962d19b6e57fca78bd43d78b786689a 100644 (file)
@@ -221,6 +221,10 @@ int mfCSetUID(uint8_t *uid, uint8_t *oldUID, int wantWipe) {
        memset(block0, 0, 16);\r
        memcpy(block0, uid, 4); \r
        block0[4] = block0[0]^block0[1]^block0[2]^block0[3]; // Mifare UID BCC\r
+       // mifare classic SAK(byte 5) and ATQA(byte 6 and 7)\r
+       block0[5] = 0x88;\r
+       block0[6] = 0x04;\r
+       block0[7] = 0x00;\r
        \r
        return mfCSetBlock(0, block0, oldUID, wantWipe, CSETBLOCK_SINGLE_OPER);\r
 }\r
Impressum, Datenschutz