]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
hf mf nested: transfer keys to the correct block in one sector mode. 555/head
authorArnie97 <arnie97@gmail.com>
Fri, 26 Jan 2018 17:55:38 +0000 (01:55 +0800)
committerArnie97 <arnie97@gmail.com>
Fri, 26 Jan 2018 17:55:38 +0000 (01:55 +0800)
client/cmdhfmf.c

index ddfb1c024f12ed79763149c8b17813cb7b7d653f..dbb6d092f5f49b2fabf9202b5550847cffd7af98 100644 (file)
@@ -683,9 +683,9 @@ int CmdHF14AMfNested(const char *Cmd)
                        if (transferToEml) {\r
                                uint8_t sectortrailer;\r
                                if (trgBlockNo < 32*4) {        // 4 block sector\r
                        if (transferToEml) {\r
                                uint8_t sectortrailer;\r
                                if (trgBlockNo < 32*4) {        // 4 block sector\r
-                                       sectortrailer = (trgBlockNo & 0x03) + 3;\r
+                                       sectortrailer = (trgBlockNo & ~0x03) + 3;\r
                                } else {                                        // 16 block sector\r
                                } else {                                        // 16 block sector\r
-                                       sectortrailer = (trgBlockNo & 0x0f) + 15;\r
+                                       sectortrailer = (trgBlockNo & ~0x0f) + 15;\r
                                }\r
                                mfEmlGetMem(keyBlock, sectortrailer, 1);\r
 \r
                                }\r
                                mfEmlGetMem(keyBlock, sectortrailer, 1);\r
 \r
Impressum, Datenschutz