From 39984c400af0deae8f9032e2293993a9a5020f35 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 5 Apr 2024 00:37:02 +0200 Subject: [PATCH] make Ev1 keys stick out and with an explaination making it a bit more clear for user --- client/src/cmdhfmf.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 07c235bc5..bd0f21494 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -4244,12 +4244,18 @@ void printKeyTableEx(size_t sectorscnt, sector_t *e_sector, uint8_t start_sector s = i; } - PrintAndLogEx(SUCCESS, " " _YELLOW_("%03d") " | %03d | %s | %s | %s | %s" - , s - , mfSectorTrailerOfSector(s) - , strA, resA - , strB, resB - ); + char extra[24] = {0x00}; + if (sectorscnt == 18 && i > 15) { + strcat(extra, "( " _MAGENTA_("*") " )"); + } + + PrintAndLogEx(SUCCESS, " " _YELLOW_("%03d") " | %03d | %s | %s | %s | %s %s" + , s + , mfSectorTrailerOfSector(s) + , strA, resA + , strB, resB + , extra + ); } @@ -4267,6 +4273,10 @@ void printKeyTableEx(size_t sectorscnt, sector_t *e_sector, uint8_t start_sector _YELLOW_("A") ":keyA " " )" ); + if (sectorscnt == 18) { + PrintAndLogEx(INFO, "( " _MAGENTA_("*") " ) These sectors used for signature. Lays outside of user memory"); + } + } else { PrintAndLogEx(SUCCESS, "( " _RED_("0") ":Failed / " _GREEN_("1") ":Success )"); }