mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-24 03:07:21 +03:00
9ffcc52ada
* mifare ultralight auth prototype * it works! * Reference source * use countof * rework everything * oops forgot scenes * build: revert changes in manifest, stack size * build: fix buid, format sources * nfc: update unlock ultralight GUI * nfc: fix byte input header * nfc: add new scenes for locked ultralight * nfc: add data read to ultralights * nfc: add unlock option in mf ultralight menu * nfc: add data read init in ultralight generation * nfc: lin sources, fix unlocked save * nfc: format python sources * nfc: clean up Co-authored-by: gornekich <n.gorbadey@gmail.com>
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "nfc_worker.h"
|
|
|
|
#include <furi.h>
|
|
#include <lib/toolbox/stream/file_stream.h>
|
|
|
|
#include <lib/nfc/protocols/nfc_util.h>
|
|
#include <lib/nfc/protocols/emv.h>
|
|
#include <lib/nfc/protocols/mifare_common.h>
|
|
#include <lib/nfc/protocols/mifare_ultralight.h>
|
|
#include <lib/nfc/protocols/mifare_classic.h>
|
|
#include <lib/nfc/protocols/mifare_desfire.h>
|
|
#include <lib/nfc/protocols/nfca.h>
|
|
|
|
#include "helpers/nfc_debug_pcap.h"
|
|
|
|
struct NfcWorker {
|
|
FuriThread* thread;
|
|
Storage* storage;
|
|
Stream* dict_stream;
|
|
|
|
NfcDeviceData* dev_data;
|
|
|
|
NfcWorkerCallback callback;
|
|
void* context;
|
|
|
|
NfcWorkerState state;
|
|
|
|
NfcDebugPcapWorker* debug_pcap_worker;
|
|
};
|
|
|
|
void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
|
|
|
|
int32_t nfc_worker_task(void* context);
|
|
|
|
void nfc_worker_read(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_uid(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_mf_classic(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_mf_ultralight_read_auth(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_mf_ul_auth_attack(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_apdu(NfcWorker* nfc_worker);
|