From 627d775331a86b13dacb867bb5666de6d4d1a652 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Tue, 17 Aug 2021 18:03:54 +0300 Subject: [PATCH] info fix --- client/src/cmdhfmfdes.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index f4c7eb421..904f2adab 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -625,6 +625,12 @@ static int CmdHF14ADesInfo(const char *Cmd) { dctx.commMode = DCMPlain; dctx.cmdSet = DCCNative; + res = DesfireAnticollision(false); + if (res != PM3_SUCCESS) { + DropField(); + return res; + } + if (cardtype == DESFIRE_EV2 || cardtype == DESFIRE_LIGHT || cardtype == DESFIRE_EV3 || @@ -646,12 +652,6 @@ static int CmdHF14ADesInfo(const char *Cmd) { } } - res = DesfireSelectAIDHex(&dctx, 0x000000, false, 0); - if (res != PM3_SUCCESS) { - DropField(); - return res; - } - PICCInfoS PICCInfo = {0}; uint8_t aidbuf[250] = {0};