mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
NFC app UI updates, MVP
This commit is contained in:
@@ -68,6 +68,9 @@ static NfcCommand mf_classic_poller_handle_data_update(MfClassicPoller* instance
|
||||
mf_classic_get_read_sectors_and_keys(
|
||||
instance->data, &data_update->sectors_read, &data_update->keys_found);
|
||||
data_update->current_sector = instance->mode_ctx.dict_attack_ctx.current_sector;
|
||||
data_update->nested_phase = instance->mode_ctx.dict_attack_ctx.nested_phase;
|
||||
data_update->prng_type = instance->mode_ctx.dict_attack_ctx.prng_type;
|
||||
data_update->backdoor = instance->mode_ctx.dict_attack_ctx.backdoor;
|
||||
instance->mfc_event.type = MfClassicPollerEventTypeDataUpdate;
|
||||
return instance->callback(instance->general_event, instance->context);
|
||||
}
|
||||
@@ -1723,7 +1726,8 @@ bool is_valid_sum(uint16_t sum) {
|
||||
|
||||
NfcCommand mf_classic_poller_handler_nested_controller(MfClassicPoller* instance) {
|
||||
// Iterate through keys
|
||||
NfcCommand command = NfcCommandContinue;
|
||||
//NfcCommand command = NfcCommandContinue;
|
||||
NfcCommand command = mf_classic_poller_handle_data_update(instance);
|
||||
MfClassicPollerDictAttackContext* dict_attack_ctx = &instance->mode_ctx.dict_attack_ctx;
|
||||
bool initial_dict_attack_iter = false;
|
||||
if(dict_attack_ctx->nested_phase == MfClassicNestedPhaseNone) {
|
||||
|
||||
@@ -77,6 +77,9 @@ typedef struct {
|
||||
uint8_t sectors_read; /**< Number of sectors read. */
|
||||
uint8_t keys_found; /**< Number of keys found. */
|
||||
uint8_t current_sector; /**< Current sector number. */
|
||||
uint8_t nested_phase; /**< Nested attack phase. */
|
||||
uint8_t prng_type; /**< PRNG (weak or hard). */
|
||||
uint8_t backdoor; /**< Backdoor type. */
|
||||
} MfClassicPollerEventDataUpdate;
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,7 +52,6 @@ typedef enum {
|
||||
MfClassicNestedPhaseAnalyzePRNG,
|
||||
MfClassicNestedPhaseDictAttack,
|
||||
MfClassicNestedPhaseDictAttackResume,
|
||||
MfClassicNestedPhaseAnalyzeBackdoor,
|
||||
MfClassicNestedPhaseCalibrate,
|
||||
MfClassicNestedPhaseCollectNtEnc,
|
||||
MfClassicNestedPhaseFinished,
|
||||
|
||||
Reference in New Issue
Block a user