X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/545a1f385c4e9f3fc28729e3a4c6a50e080c72f9..ec56429002dbccf8af357253a758ec88f359a21e:/client/mifarehost.c diff --git a/client/mifarehost.c b/client/mifarehost.c index ef70fe97..fb6a4bdb 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -1,4 +1,4 @@ -// Merlok, 2011 +// Merlok, 2011, 2012 // people from mifare@nethemba.com, 2010 // // This code is licensed to you under the terms of the GNU GPL, version 2 or, @@ -221,6 +221,10 @@ int mfCSetUID(uint8_t *uid, uint8_t *oldUID, int wantWipe) { memset(block0, 0, 16); memcpy(block0, uid, 4); block0[4] = block0[0]^block0[1]^block0[2]^block0[3]; // Mifare UID BCC + // mifare classic SAK(byte 5) and ATQA(byte 6 and 7) + block0[5] = 0x88; + block0[6] = 0x04; + block0[7] = 0x00; return mfCSetBlock(0, block0, oldUID, wantWipe, CSETBLOCK_SINGLE_OPER); }