]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
bugfix hf mf sim
authorpwpiwi <pwpiwi@users.noreply.github.com>
Tue, 5 Aug 2014 16:40:19 +0000 (18:40 +0200)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Tue, 5 Aug 2014 16:40:19 +0000 (18:40 +0200)
- an additional erronous byte was sent after SAK

armsrc/iso14443a.c

index bb73d5b7b4515b4754075f9b32d9f31a05bc58da..9a80a17723b3ca4e6a4f392a21fc4166d5b8a9f2 100644 (file)
@@ -2279,7 +2279,7 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
                                // select card
                                if (len == 9 && 
                                                (receivedCmd[0] == 0x93 && receivedCmd[1] == 0x70 && memcmp(&receivedCmd[2], rUIDBCC1, 4) == 0)) {
                                // select card
                                if (len == 9 && 
                                                (receivedCmd[0] == 0x93 && receivedCmd[1] == 0x70 && memcmp(&receivedCmd[2], rUIDBCC1, 4) == 0)) {
-                                       EmSendCmd(_7BUID?rSAK1:rSAK, sizeof(_7BUID?rSAK1:rSAK));
+                                       EmSendCmd(_7BUID?rSAK1:rSAK, _7BUID?sizeof(rSAK1):sizeof(rSAK));
                                        cuid = bytes_to_num(rUIDBCC1, 4);
                                        if (!_7BUID) {
                                                cardSTATE = MFEMUL_WORK;
                                        cuid = bytes_to_num(rUIDBCC1, 4);
                                        if (!_7BUID) {
                                                cardSTATE = MFEMUL_WORK;
Impressum, Datenschutz