mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
Fix Ultralight EV1 regression (#4287)
* Fix EV1 regression introduced in e7634d7
* ./fbt format
---------
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -152,13 +152,16 @@ static NfcCommand
|
|||||||
if(!mf_ultralight_event->data->auth_context.skip_auth) {
|
if(!mf_ultralight_event->data->auth_context.skip_auth) {
|
||||||
mf_ultralight_event->data->auth_context.password = instance->mf_ul_auth->password;
|
mf_ultralight_event->data->auth_context.password = instance->mf_ul_auth->password;
|
||||||
|
|
||||||
// Only set tdes_key for Manual/Reader auth types, not for dictionary attacks
|
if(data->type == MfUltralightTypeMfulC) {
|
||||||
if(instance->mf_ul_auth->type == MfUltralightAuthTypeManual ||
|
// Only set tdes_key for Manual/Reader auth types, not for dictionary attacks
|
||||||
instance->mf_ul_auth->type == MfUltralightAuthTypeReader) {
|
if(instance->mf_ul_auth->type == MfUltralightAuthTypeManual ||
|
||||||
mf_ultralight_event->data->key_request_data.key = instance->mf_ul_auth->tdes_key;
|
instance->mf_ul_auth->type == MfUltralightAuthTypeReader) {
|
||||||
mf_ultralight_event->data->key_request_data.key_provided = true;
|
mf_ultralight_event->data->key_request_data.key =
|
||||||
} else {
|
instance->mf_ul_auth->tdes_key;
|
||||||
mf_ultralight_event->data->key_request_data.key_provided = false;
|
mf_ultralight_event->data->key_request_data.key_provided = true;
|
||||||
|
} else {
|
||||||
|
mf_ultralight_event->data->key_request_data.key_provided = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(mf_ultralight_event->type == MfUltralightPollerEventTypeAuthSuccess) {
|
} else if(mf_ultralight_event->type == MfUltralightPollerEventTypeAuthSuccess) {
|
||||||
|
|||||||
Reference in New Issue
Block a user