check the different keys

This commit is contained in:
iceman1001 2024-02-16 17:51:51 +01:00
commit 76217e8579

View file

@ -473,7 +473,7 @@ static int try_default_aes_keys(bool override) {
for (uint8_t i = 0; i < ARRAYLEN(default_aes_keys); ++i) { for (uint8_t i = 0; i < ARRAYLEN(default_aes_keys); ++i) {
uint8_t *key = default_aes_keys[0]; 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) { if (ulaes_requestAuthentication(key, keyno, true) == PM3_SUCCESS) {
@ -508,7 +508,6 @@ static int try_default_aes_keys(bool override) {
return res; 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) { 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)) { if (hasAuthKey && (tagtype & MFU_TT_UL_C)) {
//will select card automatically and close connection on error //will select card automatically and close connection on error