CHG: 'hf mfdes info' : Now checks for 7b uid's. This will remove some faulty claims of tagidentifications.

This commit is contained in:
iceman1001 2017-09-14 11:06:49 +02:00
commit 0c2c6f3fd7
2 changed files with 20 additions and 6 deletions

View file

@ -145,7 +145,15 @@ int CmdHF14ADesInfo(const char *Cmd){
}
uint8_t isOK = resp.arg[0] & 0xff;
if ( !isOK ){
PrintAndLog("Command unsuccessful");
switch ( resp.arg[1] ) {
case 1:
PrintAndLog("Can't select card"); break;
case 2:
PrintAndLog("Card is most likely not Desfire. Its UID has wrong size"); break;
case 3:
default:
PrintAndLog("Command unsuccessful"); break;
}
return 0;
}
PrintAndLog("");