From 3c35a87dee99aaca79c2e0dd31b7af636bbdbec2 Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Fri, 16 May 2025 23:19:26 +0800 Subject: [PATCH] Fix bug with iclass legbrute index value being ignored Fixed issue https://github.com/RfidResearchGroup/proxmark3/issues/2845 --- client/src/cmdhficlass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index b21282ce2..3264eea54 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -4255,7 +4255,7 @@ static int CmdHFiClassLegRecLookUp(const char *Cmd) { uint8_t startingKey[PICOPASS_BLOCK_SIZE] = {0}; CLIGetHexWithReturn(ctx, 4, startingKey, &startingkey_len); - uint64_t index = arg_get_int_def(ctx, 6, 0); //has to be 64 as we're bruteforcing 40 bits + uint64_t index = arg_get_int_def(ctx, 5, 0); //has to be 64 as we're bruteforcing 40 bits index = index * 1000000; CLIParserFree(ctx);