From aa3e6611b59b8afe54064b9f1013cae4cda7e751 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 5 Nov 2025 16:32:05 +0100 Subject: [PATCH] added support to read bruce dump files. Only changes the file extension (.rfid) compared to the Flipper Zero (.nfc) formats --- CHANGELOG.md | 5 ++++- client/src/fileutils.c | 3 +++ client/src/fileutils.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e3462738..601440064 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,10 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] -- Updated id48lib (adds unit tests, better build management) +- Added support for Bruce dump files [.rfid] (@iceman1001) +- Added script `read_t-union.py` (@klks) +- Added better ECP configuration aliases (@kormax) +- Updated id48lib (adds unit tests, better build management) (@henrygab) - Added two trace files for Ultralight AES (@iceman1001) - Added support for Ultralight AES secure messaing in `hf 14a raw` (@iceman1001) - Added support for Ultralight AES secure messaging in `hf mfu info/rdbl/wrbl/dump/ndefread/wipe/setkey` (@iceman1001) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 0ed0b75ab..c5a3b8dfa 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -91,6 +91,8 @@ DumpFileType_t get_filetype(const char *filename) { o = FLIPPER; } else if (str_endswith(s, "xml")) { o = TAGINFO; + } else if (str_endswith(s, "rfid")) { + o = BRUCE; } else { // mfd, trc, trace is binary o = BIN; @@ -3293,6 +3295,7 @@ int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumpl } break; } + case BRUCE: case FLIPPER: { nfc_df_e dumptype = NFC_DF_UNKNOWN; res = detect_nfc_dump_format(fn, &dumptype, true); diff --git a/client/src/fileutils.h b/client/src/fileutils.h index 33407b886..ef1642a3f 100644 --- a/client/src/fileutils.h +++ b/client/src/fileutils.h @@ -84,6 +84,7 @@ typedef enum { MCT, FLIPPER, TAGINFO, + BRUCE, } DumpFileType_t; typedef enum {