mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 15:15:39 -07:00
print MAD version
This commit is contained in:
parent
fbd298850a
commit
8c00ce7185
1 changed files with 10 additions and 0 deletions
|
@ -1621,6 +1621,16 @@ static int CmdHF14aDesMAD(const char *Cmd) {
|
|||
if (foundFFFFFF) {
|
||||
res = DesfireSelectAIDHexNoFieldOn(&dctx, 0xffffff);
|
||||
if (res == PM3_SUCCESS) {
|
||||
uint32_t madver = 0;
|
||||
res = DesfireValueFileOperations(&dctx, 0x00, MFDES_GET_VALUE, &madver);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(WARNING, "Desfire GetValue for MAD version command " _RED_("error") ". Result: %d", res);
|
||||
} else {
|
||||
if (madver == 3)
|
||||
PrintAndLogEx(SUCCESS, "MAD version: " _GREEN_("3"));
|
||||
else
|
||||
PrintAndLogEx(WARNING, "MAD version: " _YELLOW_("%d"), madver);
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue