2022-07-26 15:30:49 +00:00
|
|
|
#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>
|
2023-05-17 16:45:30 +00:00
|
|
|
#include <lib/nfc/protocols/nfcv.h>
|
|
|
|
#include <lib/nfc/protocols/slix.h>
|
2022-09-03 12:25:36 +00:00
|
|
|
#include <lib/nfc/helpers/reader_analyzer.h>
|
2022-07-26 15:30:49 +00:00
|
|
|
|
|
|
|
struct NfcWorker {
|
|
|
|
FuriThread* thread;
|
|
|
|
Storage* storage;
|
|
|
|
Stream* dict_stream;
|
|
|
|
|
|
|
|
NfcDeviceData* dev_data;
|
|
|
|
|
|
|
|
NfcWorkerCallback callback;
|
|
|
|
void* context;
|
|
|
|
|
|
|
|
NfcWorkerState state;
|
|
|
|
|
2022-09-03 12:25:36 +00:00
|
|
|
ReaderAnalyzer* reader_analyzer;
|
2022-07-26 15:30:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
|
|
|
|
|
|
|
|
int32_t nfc_worker_task(void* context);
|
|
|
|
|
|
|
|
void nfc_worker_read(NfcWorker* nfc_worker);
|
|
|
|
|
2022-11-10 16:29:57 +00:00
|
|
|
void nfc_worker_read_type(NfcWorker* nfc_worker);
|
|
|
|
|
2022-07-26 15:30:49 +00:00
|
|
|
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);
|
|
|
|
|
2022-10-28 16:10:16 +00:00
|
|
|
void nfc_worker_write_mf_classic(NfcWorker* nfc_worker);
|
|
|
|
|
|
|
|
void nfc_worker_update_mf_classic(NfcWorker* nfc_worker);
|
|
|
|
|
2022-08-03 17:07:35 +00:00
|
|
|
void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker);
|
2022-07-26 15:30:49 +00:00
|
|
|
|
2022-08-07 15:09:00 +00:00
|
|
|
void nfc_worker_mf_ultralight_read_auth(NfcWorker* nfc_worker);
|
|
|
|
|
|
|
|
void nfc_worker_mf_ul_auth_attack(NfcWorker* nfc_worker);
|
|
|
|
|
2022-07-26 15:30:49 +00:00
|
|
|
void nfc_worker_emulate_apdu(NfcWorker* nfc_worker);
|
2022-09-03 12:25:36 +00:00
|
|
|
|
|
|
|
void nfc_worker_analyze_reader(NfcWorker* nfc_worker);
|