hf mfdes bruteaid: fix byte order

This commit is contained in:
DidierA 2025-03-31 18:41:18 +02:00
commit 853e2bd9ff
No known key found for this signature in database

View file

@ -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) {