Fuzzers App: attack gui

This commit is contained in:
gid9798
2023-06-02 20:33:28 +03:00
parent 321f2d8d50
commit e31a0c4d6d
14 changed files with 416 additions and 59 deletions

View File

@@ -3,6 +3,9 @@
typedef enum {
// FuzzerCustomEvent
FuzzerCustomEventViewMainOk = 100,
FuzzerCustomEventViewMainBack,
FuzzerCustomEventViewMainBack = 100,
FuzzerCustomEventViewMainOk,
FuzzerCustomEventViewAttackBack,
FuzzerCustomEventViewAttackOk,
} FuzzerCustomEvent;

View File

@@ -3,15 +3,12 @@
#include <furi.h>
#include <furi_hal.h>
// TODO replace it
typedef enum {
FuzzerMainMenuIndexDefaultValues = 0,
FuzzerMainMenuIndexLoadFile,
FuzzerMainMenuIndexLoadFileCustomUids,
FuzzerMainMenuIndexMax,
} FuzzerMainMenuIndex;
typedef struct {
uint8_t menu_index;
uint8_t proto_index;
} FuzzerState;
typedef enum {
FuzzerViewIDMain,
FuzzerViewIDAttack,
} FuzzerViewID;

View File

@@ -0,0 +1,7 @@
#include "gui_const.h"
const char* fuzzer_attack_names[FuzzerMainMenuIndexMax] = {
[FuzzerMainMenuIndexDefaultValues] = "Default Values",
[FuzzerMainMenuIndexLoadFile] = "Load File",
[FuzzerMainMenuIndexLoadFileCustomUids] = "Load UIDs from file",
};

View File

@@ -0,0 +1,12 @@
#pragma once
// TODO replace it
typedef enum {
FuzzerMainMenuIndexDefaultValues = 0,
FuzzerMainMenuIndexLoadFile,
FuzzerMainMenuIndexLoadFileCustomUids,
FuzzerMainMenuIndexMax,
} FuzzerMainMenuIndex;
extern const char* fuzzer_attack_names[];

View File

@@ -2,6 +2,10 @@
#include <stdint.h>
#define FUZZ_TIME_DELAY_MIN (4)
#define FUZZ_TIME_DELAY_DEFAULT (8)
#define FUZZ_TIME_DELAY_MAX (80)
typedef enum {
DS1990,
Metakom,