Skip to content

Commit

Permalink
Merge pull request RfidResearchGroup#2337 from craftbyte/desfire-dele…
Browse files Browse the repository at this point in the history
…teapp-fix

Fix MIFARE DESfire DeleteApp command
  • Loading branch information
iceman1001 authored Mar 21, 2024
2 parents 9889228 + 9b765b4 commit 1a7b285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/cmdhfmfdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ static int CmdHF14ADesDeleteApp(const char *Cmd) {
arg_str0("m", "cmode", "<plain|mac|encrypt>", "Communicaton mode"),
arg_str0("c", "ccset", "<native|niso|iso>", "Communicaton command set"),
arg_str0(NULL, "schann", "<d40|ev1|ev2|lrp>", "Secure channel"),
arg_str0(NULL, "aid", "<hex>", "Application ID of delegated application (3 hex bytes, big endian)"),
arg_str0(NULL, "aid", "<hex>", "Application ID to delete (3 hex bytes, big endian)"),
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, false);
Expand All @@ -2686,7 +2686,7 @@ static int CmdHF14ADesDeleteApp(const char *Cmd) {
return PM3_ESOFT;
}

res = DesfireSelectAndAuthenticate(&dctx, securechann, appid, verbose);
res = DesfireSelectAndAuthenticate(&dctx, securechann, 0x000000, verbose);
if (res != PM3_SUCCESS) {
DropField();
return res;
Expand Down

0 comments on commit 1a7b285

Please sign in to comment.