]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: 'LF VISA2000 CLONE' fixed the wrong blocknum index in output. Thanks @martin...
authoriceman1001 <iceman@iuse.se>
Fri, 16 Dec 2016 11:50:44 +0000 (12:50 +0100)
committericeman1001 <iceman@iuse.se>
Fri, 16 Dec 2016 11:50:44 +0000 (12:50 +0100)
client/cmdlfvisa2000.c

index af41f320b710a0828222008336a6b49fc1bdb9ef..9148a435b05767328c6b9ed60cbf571202430c94 100644 (file)
@@ -118,10 +118,8 @@ int CmdVisa2kClone(const char *Cmd) {
        PrintAndLog("Preparing to clone Visa2000 to T55x7 with CardId: %u", id);
        PrintAndLog("Blk | Data ");
        PrintAndLog("----+------------");
        PrintAndLog("Preparing to clone Visa2000 to T55x7 with CardId: %u", id);
        PrintAndLog("Blk | Data ");
        PrintAndLog("----+------------");
-       PrintAndLog(" 00 | 0x%08x", blocks[0]);
-       PrintAndLog(" 01 | 0x%08x", blocks[1]);
-       PrintAndLog(" 02 | 0x%08x", blocks[2]);
-       PrintAndLog(" 02 | 0x%08x", blocks[3]);
+       for(int i = 0; i<4; ++i)
+       PrintAndLog(" %02d | 0x%08x", i , blocks[i]);
        
        UsbCommand resp;
        UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}};
        
        UsbCommand resp;
        UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}};
Impressum, Datenschutz