mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
Fix MIFARE Plus SL1 sector overrun issue in state machine (#4288)
Co-authored-by: hedger <hedger@users.noreply.github.com>
This commit is contained in:
@@ -1921,7 +1921,8 @@ NfcCommand mf_classic_poller_handler_nested_controller(MfClassicPoller* instance
|
|||||||
sizeof(MfClassicKey)) :
|
sizeof(MfClassicKey)) :
|
||||||
NULL;
|
NULL;
|
||||||
}
|
}
|
||||||
if((is_weak || is_last_iter_for_hard_key) && dict_attack_ctx->nested_nonce.count > 0) {
|
if((is_weak && (dict_attack_ctx->nested_nonce.count == 1)) ||
|
||||||
|
(is_last_iter_for_hard_key && (dict_attack_ctx->nested_nonce.count == 8))) {
|
||||||
// Key verify and reuse
|
// Key verify and reuse
|
||||||
dict_attack_ctx->nested_phase = MfClassicNestedPhaseDictAttackVerify;
|
dict_attack_ctx->nested_phase = MfClassicNestedPhaseDictAttackVerify;
|
||||||
dict_attack_ctx->auth_passed = false;
|
dict_attack_ctx->auth_passed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user