From 63b92a37827ec33dbf25998c61a5b48cfbfa618c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 30 Aug 2020 01:14:50 +0200 Subject: [PATCH] hf mf cview --- client/src/cmdhfmf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 9062acac4..283c9eddd 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -4341,8 +4341,10 @@ static int CmdHF14AMfCView(const char *Cmd) { PrintAndLogEx(INFO, "----+-------------------------------------------------+-----------------"); for (uint16_t i = 0; i < numblocks; i++){ - if (mfIsSectorTrailer(blockNo)) { - PrintAndLogEx(INFO, "%03d | " _YELLOW_("%s")", i, sprint_hex_ascii(dump + (i * 16) , 16) ); + if (i == 0) { + PrintAndLogEx(INFO, "%03d | " _RED_("%s"), i, sprint_hex_ascii(dump + (i * 16) , 16) ); + } else if (mfIsSectorTrailer(i)) { + 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) ); }