2023-06-02 14:48:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-03 11:24:27 +00:00
|
|
|
// #define RFID_125_PROTOCOL
|
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
typedef struct FuzzerPayload FuzzerPayload;
|
2023-06-03 11:24:27 +00:00
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
typedef enum {
|
2023-06-03 11:24:27 +00:00
|
|
|
#if defined(RFID_125_PROTOCOL)
|
|
|
|
EM4100,
|
|
|
|
HIDProx,
|
|
|
|
PAC,
|
|
|
|
H10301,
|
|
|
|
#else
|
2023-06-02 14:48:21 +00:00
|
|
|
DS1990,
|
|
|
|
Metakom,
|
|
|
|
Cyfral,
|
2023-06-03 11:24:27 +00:00
|
|
|
#endif
|
2023-06-05 11:10:51 +00:00
|
|
|
} FuzzerProtocolsID;
|
2023-06-03 11:24:27 +00:00
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
typedef enum {
|
|
|
|
FuzzerMainMenuIndexDefaultValues = 0,
|
|
|
|
FuzzerMainMenuIndexLoadFile,
|
|
|
|
FuzzerMainMenuIndexLoadFileCustomUids,
|
|
|
|
} FuzzerMainMenuIndex;
|
|
|
|
|
|
|
|
struct FuzzerPayload {
|
|
|
|
uint8_t* data;
|
|
|
|
uint8_t data_size;
|
2023-06-02 14:48:21 +00:00
|
|
|
};
|
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
uint8_t fuzzer_proto_get_max_data_size();
|
2023-06-02 14:48:21 +00:00
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
const char* fuzzer_proto_get_name(FuzzerProtocolsID index);
|
|
|
|
|
|
|
|
uint8_t fuzzer_proto_get_count_of_protocols();
|
2023-06-02 14:48:21 +00:00
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
const char* fuzzer_proto_get_menu_label(FuzzerMainMenuIndex index);
|
2023-06-02 14:48:21 +00:00
|
|
|
|
2023-06-05 11:10:51 +00:00
|
|
|
uint8_t fuzzer_proto_get_count_of_menu_items();
|