From 9f78323c15245829bcb67c79b71853c16a105877 Mon Sep 17 00:00:00 2001 From: Ryan Saridar <8403417+VortixDev@users.noreply.github.com> Date: Thu, 10 Dec 2020 01:58:53 +0000 Subject: [PATCH 1/2] Fix mistaken increment and decrement constants --- include/protocols.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/protocols.h b/include/protocols.h index fcb446661..dafce0024 100644 --- a/include/protocols.h +++ b/include/protocols.h @@ -160,8 +160,8 @@ ISO 7816-4 Basic interindustry commands. For command APDU's. #define MIFARE_MAGICWUPC1 0x40 #define MIFARE_MAGICWUPC2 0x43 #define MIFARE_MAGICWIPEC 0x41 -#define MIFARE_CMD_INC 0xC0 -#define MIFARE_CMD_DEC 0xC1 +#define MIFARE_CMD_DEC 0xC0 +#define MIFARE_CMD_INC 0xC1 #define MIFARE_CMD_RESTORE 0xC2 #define MIFARE_CMD_TRANSFER 0xB0 From afc904cbc72ebb1bd31b281c3ab133aa292027a3 Mon Sep 17 00:00:00 2001 From: Ryan Saridar <8403417+VortixDev@users.noreply.github.com> Date: Thu, 10 Dec 2020 02:00:18 +0000 Subject: [PATCH 2/2] Fix mistaken increment and decrement constants --- tools/mf_nonce_brute/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mf_nonce_brute/protocol.h b/tools/mf_nonce_brute/protocol.h index 50784392f..1eda47986 100644 --- a/tools/mf_nonce_brute/protocol.h +++ b/tools/mf_nonce_brute/protocol.h @@ -6,8 +6,8 @@ #define MIFARE_AUTH_KEYA 0x60 #define MIFARE_AUTH_KEYB 0x61 -#define MIFARE_CMD_INC 0xC0 -#define MIFARE_CMD_DEC 0xC1 +#define MIFARE_CMD_DEC 0xC0 +#define MIFARE_CMD_INC 0xC1 #define MIFARE_CMD_RESTORE 0xC2 #define MIFARE_CMD_TRANSFER 0xB0