From 62d734dbfc3d3e13135af4c846c04f3f4fc6428b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 30 Aug 2020 01:12:27 +0200 Subject: [PATCH] hf mf cview --- client/src/cmdhfmf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index be450c69c..9062acac4 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -4340,7 +4340,12 @@ static int CmdHF14AMfCView(const char *Cmd) { PrintAndLogEx(INFO, "blk | data | ascii"); PrintAndLogEx(INFO, "----+-------------------------------------------------+-----------------"); for (uint16_t i = 0; i < numblocks; i++){ - PrintAndLogEx(INFO, "%03d | %s ", i, sprint_hex_ascii(dump + (i * 16) , 16) ); + + if (mfIsSectorTrailer(blockNo)) { + PrintAndLogEx(INFO, "%03d | " _YELLOW_("%s")", i, sprint_hex_ascii(dump + (i * 16) , 16) ); + } else { + PrintAndLogEx(INFO, "%03d | %s ", i, sprint_hex_ascii(dump + (i * 16) , 16) ); + } } PrintAndLogEx(INFO, "----+-------------------------------------------------+-----------------");