mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
Add additional condition to backdoor check
This commit is contained in:
@@ -560,7 +560,8 @@ NfcCommand mf_classic_poller_handler_analyze_backdoor(MfClassicPoller* instance)
|
|||||||
// Attempt backdoor authentication
|
// Attempt backdoor authentication
|
||||||
MfClassicError error = mf_classic_poller_auth(
|
MfClassicError error = mf_classic_poller_auth(
|
||||||
instance, 0, &dict_attack_ctx->current_key, MfClassicKeyTypeA, NULL, true);
|
instance, 0, &dict_attack_ctx->current_key, MfClassicKeyTypeA, NULL, true);
|
||||||
if((next_key_index == 0) && (error == MfClassicErrorProtocol)) {
|
if((next_key_index == 0) &&
|
||||||
|
(error == MfClassicErrorProtocol || error == MfClassicErrorTimeout)) {
|
||||||
FURI_LOG_E(TAG, "No backdoor identified");
|
FURI_LOG_E(TAG, "No backdoor identified");
|
||||||
dict_attack_ctx->backdoor = MfClassicBackdoorNone;
|
dict_attack_ctx->backdoor = MfClassicBackdoorNone;
|
||||||
instance->state = MfClassicPollerStateRequestKey;
|
instance->state = MfClassicPollerStateRequestKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user