mfu info authkeyptr fix
didn't follow @iceman1001 s l parameter changes fully... fixed now.. :)
This commit is contained in:
@@ -757,7 +757,7 @@ int CmdHF14AMfUInfo(const char *Cmd){
|
|||||||
if ((tagtype & (UL_EV1_48 | UL_EV1_128))) {
|
if ((tagtype & (UL_EV1_48 | UL_EV1_128))) {
|
||||||
if (ulev1_print_counters() != 3) {
|
if (ulev1_print_counters() != 3) {
|
||||||
// failed - re-select
|
// failed - re-select
|
||||||
if (!ul_auth_select( &card, tagtype, hasAuthKey, authenticationkey, pack, sizeof(pack))) return -1;
|
if (!ul_auth_select( &card, tagtype, hasAuthKey, authkeyptr, pack, sizeof(pack))) return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -772,7 +772,7 @@ int CmdHF14AMfUInfo(const char *Cmd){
|
|||||||
if (status == 32) ulev1_print_signature( ulev1_signature, sizeof(ulev1_signature));
|
if (status == 32) ulev1_print_signature( ulev1_signature, sizeof(ulev1_signature));
|
||||||
else {
|
else {
|
||||||
// re-select
|
// re-select
|
||||||
if (!ul_auth_select( &card, tagtype, hasAuthKey, authenticationkey, pack, sizeof(pack))) return -1;
|
if (!ul_auth_select( &card, tagtype, hasAuthKey, authkeyptr, pack, sizeof(pack))) return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -787,7 +787,7 @@ int CmdHF14AMfUInfo(const char *Cmd){
|
|||||||
ulev1_print_version(version);
|
ulev1_print_version(version);
|
||||||
} else {
|
} else {
|
||||||
locked = true;
|
locked = true;
|
||||||
if (!ul_auth_select( &card, tagtype, hasAuthKey, authenticationkey, pack, sizeof(pack))) return -1;
|
if (!ul_auth_select( &card, tagtype, hasAuthKey, authkeyptr, pack, sizeof(pack))) return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t startconfigblock = 0;
|
uint8_t startconfigblock = 0;
|
||||||
@@ -824,7 +824,7 @@ int CmdHF14AMfUInfo(const char *Cmd){
|
|||||||
PrintAndLog("Found a default password: %s || Pack: %02X %02X",sprint_hex(key, 4), pack[0], pack[1]);
|
PrintAndLog("Found a default password: %s || Pack: %02X %02X",sprint_hex(key, 4), pack[0], pack[1]);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (!ul_auth_select( &card, tagtype, hasAuthKey, authenticationkey, pack, sizeof(pack))) return -1;
|
if (!ul_auth_select( &card, tagtype, hasAuthKey, authkeyptr, pack, sizeof(pack))) return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (len < 1) PrintAndLog("password not known");
|
if (len < 1) PrintAndLog("password not known");
|
||||||
|
|||||||
Reference in New Issue
Block a user