more details of recovery

This commit is contained in:
iceman1001 2020-10-30 02:32:13 +01:00
commit 60b12ca905

View file

@ -5395,11 +5395,15 @@ static int CmdHf14AMfSuperCard(const char *Cmd) {
uint64_t key64 = -1; uint64_t key64 = -1;
res = mfkey32_moebius(&data, &key64); res = mfkey32_moebius(&data, &key64);
if (res) if (res) {
PrintAndLogEx(SUCCESS, "recovered key [ " _GREEN_("%12" PRIX64) " ]", key64); PrintAndLogEx(SUCCESS, "UID: %s Sector %02x key %c [ " _GREEN_("%12" PRIX64) " ]"
else , sprint_hex_inrow(outA, 4)
, data.sector
, (data.keytype == 0x60) ? 'A' : 'B'
, key64);
} else {
PrintAndLogEx(FAILED, "failed to recover any key"); PrintAndLogEx(FAILED, "failed to recover any key");
}
return PM3_SUCCESS; return PM3_SUCCESS;
} }