From 853e2bd9ff4b40d5008e52daf81a1848e1402e68 Mon Sep 17 00:00:00 2001 From: DidierA <1620015+didiera@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:41:18 +0200 Subject: [PATCH] hf mfdes bruteaid: fix byte order --- client/src/cmdhfmfdes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 4e4c19a57..62c2312b4 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -2133,6 +2133,9 @@ static int CmdHF14ADesBruteApps(const char *Cmd) { startAid[1] = 0x00; startAid[2] = 0x0F; } + + reverse_array(startAid, 3); + reverse_array(endAid, 3); uint32_t idStart = DesfireAIDByteToUint(startAid); uint32_t idEnd = DesfireAIDByteToUint(endAid); if (idStart > idEnd) {