From 76217e8579912167cdcf9201faa1d3ab5899a96b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 16 Feb 2024 17:51:51 +0100 Subject: [PATCH] check the different keys --- client/src/cmdhfmfu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 64f159480..33f4e94b4 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -473,7 +473,7 @@ static int try_default_aes_keys(bool override) { for (uint8_t i = 0; i < ARRAYLEN(default_aes_keys); ++i) { uint8_t *key = default_aes_keys[0]; - for (uint8_t keyno = 0; keyno < 1; keyno++) { + for (uint8_t keyno = 0; keyno < 3; keyno++) { if (ulaes_requestAuthentication(key, keyno, true) == PM3_SUCCESS) { @@ -508,7 +508,6 @@ static int try_default_aes_keys(bool override) { return res; } - static int ul_auth_select(iso14a_card_select_t *card, uint64_t tagtype, bool hasAuthKey, uint8_t *authkey, uint8_t *pack, uint8_t packSize) { if (hasAuthKey && (tagtype & MFU_TT_UL_C)) { //will select card automatically and close connection on error