mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
Now reading an UL-C card gives the success tone only if the key is found
This commit is contained in:
@@ -188,7 +188,11 @@ bool nfc_scene_read_on_event_mf_ultralight(NfcApp* instance, SceneManagerEvent e
|
|||||||
// Start dict attack for MFUL C cards only if no specific auth was attempted
|
// Start dict attack for MFUL C cards only if no specific auth was attempted
|
||||||
scene_manager_next_scene(instance->scene_manager, NfcSceneMfUltralightCDictAttack);
|
scene_manager_next_scene(instance->scene_manager, NfcSceneMfUltralightCDictAttack);
|
||||||
} else {
|
} else {
|
||||||
notification_message(instance->notifications, &sequence_success);
|
if(data->pages_read == data->pages_total) {
|
||||||
|
notification_message(instance->notifications, &sequence_success);
|
||||||
|
} else {
|
||||||
|
notification_message(instance->notifications, &sequence_semi_success);
|
||||||
|
}
|
||||||
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
||||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,12 @@ bool nfc_scene_mf_ultralight_c_dict_attack_on_event(void* context, SceneManagerE
|
|||||||
consumed = true;
|
consumed = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
notification_message(instance->notifications, &sequence_success);
|
// TODO: Could check if card is fully read here like MFC dict attack, but found key means fully read
|
||||||
|
if(instance->mf_ultralight_c_dict_context.auth_success) {
|
||||||
|
notification_message(instance->notifications, &sequence_success);
|
||||||
|
} else {
|
||||||
|
notification_message(instance->notifications, &sequence_semi_success);
|
||||||
|
}
|
||||||
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
||||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||||
consumed = true;
|
consumed = true;
|
||||||
@@ -184,7 +189,7 @@ bool nfc_scene_mf_ultralight_c_dict_attack_on_event(void* context, SceneManagerE
|
|||||||
} else {
|
} else {
|
||||||
nfc_poller_stop(instance->poller);
|
nfc_poller_stop(instance->poller);
|
||||||
nfc_poller_free(instance->poller);
|
nfc_poller_free(instance->poller);
|
||||||
notification_message(instance->notifications, &sequence_success);
|
notification_message(instance->notifications, &sequence_semi_success);
|
||||||
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
scene_manager_next_scene(instance->scene_manager, NfcSceneReadSuccess);
|
||||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user