This commit is contained in:
iceman1001 2022-10-20 17:31:23 +02:00
parent acb6fcb970
commit 9e9d8ddbde

View file

@ -214,7 +214,7 @@ int MADCheck(uint8_t *sector0, uint8_t *sector10, bool verbose, bool *haveMAD2)
int res = madCRCCheck(sector0, true, 1);
if (verbose && res == PM3_SUCCESS)
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " (%s)", "CRC8", sector0[16], _GREEN_("ok"));
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " ( %s )", "CRC8", sector0[16], _GREEN_("ok"));
if (mad_ver == 2 && sector10) {
int res2 = madCRCCheck(sector10, true, 2);
@ -222,7 +222,7 @@ int MADCheck(uint8_t *sector0, uint8_t *sector10, bool verbose, bool *haveMAD2)
res = res2;
if (verbose && !res2)
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " (%s)", "CRC8", sector10[0], _GREEN_("ok"));
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " ( %s )", "CRC8", sector10[0], _GREEN_("ok"));
}
// MA (multi-application card)
@ -354,9 +354,9 @@ int MAD2DecodeAndPrint(uint8_t *sector, bool swapmad, bool verbose) {
int res = madCRCCheck(sector, true, 2);
if (verbose) {
if (res == PM3_SUCCESS)
PrintAndLogEx(SUCCESS, "CRC8 (%s)", _GREEN_("ok"));
PrintAndLogEx(SUCCESS, "CRC8 ( %s )", _GREEN_("ok"));
else
PrintAndLogEx(WARNING, "CRC8 (%s)", _RED_("fail"));
PrintAndLogEx(WARNING, "CRC8 ( %s )", _RED_("fail"));
}
int ibs = MADInfoByteDecode(sector, swapmad, 2, verbose);