From d3336ef8422ab9466f818fcd160730d2919b24b1 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Tue, 13 Oct 2020 14:26:40 +0800 Subject: [PATCH 1/3] fix text --- client/src/cmdlfem4x50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 4e608cd42..fa4e2f765 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -16,7 +16,7 @@ #include "em4x50.h" static int usage_lf_em4x50_info(void) { - PrintAndLogEx(NORMAL, "Read all information of EM4x50. Tag nust be on antenna."); + PrintAndLogEx(NORMAL, "Read all information of EM4x50. Tag must be on antenna."); PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "Usage: lf em 4x50_info [h] [v] [p ]"); PrintAndLogEx(NORMAL, "Options:"); From 1afddd2b1215f754863ac54bdf88dec0419adac0 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Tue, 13 Oct 2020 17:27:28 +0800 Subject: [PATCH 2/3] 32 sector print incomplete for Mifare 4K --- client/src/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index f197194d4..b842bd7a7 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -827,7 +827,7 @@ static int CmdHF14AMfRdSc(const char *Cmd) { uint8_t blocks = 4; uint8_t start = sectorNo * 4; - if (sectorNo > 32) { + if (sectorNo >= 32) { blocks = 16; start = 128 + (sectorNo - 32) * 16; } From 1bc14437318724d0fe85fbdf839a265e39db8751 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Tue, 13 Oct 2020 17:33:32 +0800 Subject: [PATCH 3/3] 32 sector print Incomplete for Mifare 4K(more) --- client/src/cmdhfmf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index b842bd7a7..ead78d7e4 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -3671,7 +3671,7 @@ static int CmdHF14AMfEGetSc(const char *Cmd) { PrintAndLogEx(NORMAL, "----+------------------------------------------------"); uint8_t blocks = 4; uint8_t start = sector * 4; - if (sector > 32) { + if (sector >= 32) { blocks = 16; start = 128 + (sector - 32) * 16; } @@ -4365,7 +4365,7 @@ static int CmdHF14AMfCGetSc(const char *Cmd) { PrintAndLogEx(NORMAL, "----+------------------------------------------------"); uint8_t blocks = 4; uint8_t start = sector * 4; - if (sector > 32) { + if (sector >= 32) { blocks = 16; start = 128 + (sector - 32) * 16; }