Skip to content

Commit

Permalink
make Ev1 keys stick out and with an explaination making it a bit more…
Browse files Browse the repository at this point in the history
… clear for user
  • Loading branch information
iceman1001 committed Apr 4, 2024
1 parent 2631803 commit 39984c4
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions client/src/cmdhfmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

}

Expand All @@ -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 )");
}
Expand Down

0 comments on commit 39984c4

Please sign in to comment.