mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 12:13:08 +00:00
0161d49d80
* WIP: builds * can read standard * Test standard picopass dictiony during attack * correctly save diversified key * read card on success * more logs * update file location * Call setup methods * backbutton and attempt at skip * fixed skip * remove found key state * rename dictionary attack * move notification * center button back to start menu * wait for card * Picopass: proper integer formatting * Picopass: even more proper integer formatting * remove nextState Co-authored-by: あく <alleteam@gmail.com>
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
#pragma once
|
|
#include <stdint.h>
|
|
#include <gui/view.h>
|
|
#include <gui/modules/widget.h>
|
|
|
|
#include <lib/nfc/protocols/mifare_classic.h>
|
|
|
|
typedef struct DictAttack DictAttack;
|
|
|
|
typedef void (*DictAttackCallback)(void* context);
|
|
|
|
DictAttack* dict_attack_alloc();
|
|
|
|
void dict_attack_free(DictAttack* dict_attack);
|
|
|
|
void dict_attack_reset(DictAttack* dict_attack);
|
|
|
|
View* dict_attack_get_view(DictAttack* dict_attack);
|
|
|
|
void dict_attack_set_callback(DictAttack* dict_attack, DictAttackCallback callback, void* context);
|
|
|
|
void dict_attack_set_header(DictAttack* dict_attack, const char* header);
|
|
|
|
void dict_attack_set_card_detected(DictAttack* dict_attack);
|
|
|
|
void dict_attack_set_card_removed(DictAttack* dict_attack);
|
|
|
|
void dict_attack_set_sector_read(DictAttack* dict_attack, uint8_t sec_read);
|
|
|
|
void dict_attack_set_keys_found(DictAttack* dict_attack, uint8_t keys_found);
|
|
|
|
void dict_attack_set_current_sector(DictAttack* dict_attack, uint8_t curr_sec);
|
|
|
|
void dict_attack_inc_current_sector(DictAttack* dict_attack);
|
|
|
|
void dict_attack_inc_keys_found(DictAttack* dict_attack);
|
|
|
|
void dict_attack_set_total_dict_keys(DictAttack* dict_attack, uint16_t dict_keys_total);
|
|
|
|
void dict_attack_inc_current_dict_key(DictAttack* dict_attack, uint16_t keys_tried);
|
|
|
|
void dict_attack_set_key_attack(DictAttack* dict_attack, bool is_key_attack, uint8_t sector);
|
|
|
|
void dict_attack_inc_key_attack_current_sector(DictAttack* dict_attack);
|