hf mfdes deleteaid - shouldn't select before since it cancels the current session

This commit is contained in:
iceman1001 2020-11-18 23:58:50 +01:00
parent 4cafbcc259
commit 4d28ffc014

View file

@ -2422,14 +2422,9 @@ static int CmdHF14ADesDeleteApp(const char *Cmd) {
return PM3_ESOFT;
}
uint8_t rootaid[3] = {0x00, 0x00, 0x00};
int res = handler_desfire_select_application(rootaid);
if (res != PM3_SUCCESS) {
DropField();
return res;
}
res = handler_desfire_deleteapp(aid);
int res = handler_desfire_deleteapp(aid);
DropField();
tag->rf_field_on = false;
if (res == PM3_SUCCESS) {
PrintAndLogEx(SUCCESS, "Successfully deleted aid.");
}