Merge pull request #2846 from Antiklesys/master

Fix bug with iclass legbrute index value being ignored
This commit is contained in:
Iceman 2025-05-16 17:38:08 +02:00 committed by GitHub
commit fe4ee76ff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4255,7 +4255,7 @@ static int CmdHFiClassLegRecLookUp(const char *Cmd) {
uint8_t startingKey[PICOPASS_BLOCK_SIZE] = {0}; uint8_t startingKey[PICOPASS_BLOCK_SIZE] = {0};
CLIGetHexWithReturn(ctx, 4, startingKey, &startingkey_len); 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; index = index * 1000000;
CLIParserFree(ctx); CLIParserFree(ctx);