added Ultralight-C simulation. hf mfu sim -t 13. Use eload first. Also added support to upload UL-C dictionaries and UL-AES to spiffs memory. A lot of textual reworked across client. Unifiy texts and a bit more color ;)

This commit is contained in:
iceman1001 committed 2025-06-19 17:26:20 +02:00
1 parent 0e87f01ab9
commit 65607fc727
52 files changed
+1074 -430

No files matched your search

+6 -4
View File
@@ -21,6 +21,12 @@
#define AEND "\x1b[0m"
#define _CLEAR_ "\x1b[2J"
#define _CLEAR_SCROLLBACK_ "\x1b[3J"
#define _TOP_ "\x1b[1;1f"
#define _CLR_ "\x1b[0K"
#define _BLACK_(s) "\x1b[30m" s AEND
#define _RED_(s) "\x1b[31m" s AEND
#define _GREEN_(s) "\x1b[32m" s AEND
@@ -57,10 +63,6 @@
#define _BACK_BRIGHT_CYAN_(s) "\x1b[46;1m" s AEND
#define _BACK_BRIGHT_WHITE_(s) "\x1b[47;1m" s AEND
#define _CLEAR_ "\x1b[2J"
#define _CLEAR_SCROLLBACK_ "\x1b[3J"
#define _TOP_ "\x1b[1;1f"
#if defined(HAVE_READLINE)
// https://wiki.hackzine.org/development/misc/readline-color-prompt.html
// Applications may indicate that the prompt contains
+6
View File
@@ -349,6 +349,12 @@ typedef struct {
uint8_t key[6];
} PACKED mfc_eload_t;
typedef struct {
bool use_flashmem;
uint16_t keycount;
uint8_t keys[];
} PACKED mfulc_keys_t;
typedef struct {
uint8_t status;
uint8_t CSN[8];
+7
View File
@@ -79,6 +79,13 @@
#define MF_KEYS_FILE "dict_mf.bin"
#define MF_KEY_LENGTH 6
// MIFARE Ultralight-C keys stored in spiffs
#define MFULC_KEYS_FILE "dict_mfulc.bin"
#define MFULC_KEY_LENGTH (16)
// MIFARE Ultralight-AES keys stored in spiffs
#define MFULAES_KEYS_FILE "dict_mfulaes.bin"
#define MFULAES_KEY_LENGTH (16)
// RDV40, validation structure to help identifying that client/firmware is talking with RDV40
typedef struct {
uint8_t magic[4];