From 18e4c072e7bd0a254549c7fc4566d5cc9895fa99 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 28 May 2025 20:54:05 +0200 Subject: [PATCH] style --- client/src/cmdhfmf.c | 6 +++--- client/src/pm3line_vocabulary.h | 2 +- doc/commands.json | 2 +- tools/mfc/card_only/staticnested_0nt.c | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 8de811a78..23facd528 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -160,7 +160,7 @@ static uint8_t CalculateCheckSum(uint8_t data[SAFLOK_BASIC_ACCESS_BYTE_NUM]) { } // Function to parse and print Saflok data -static void ParseAndPrintSaflokData(const sector_t* sector0_info, const sector_t* sector1_info) { +static void ParseAndPrintSaflokData(const sector_t *sector0_info, const sector_t *sector1_info) { (void)sector1_info; // Not directly used for payload parsing currently if (!sector0_info) { @@ -4806,7 +4806,7 @@ void printKeyTableEx(size_t sectorscnt, sector_t *e_sector, uint8_t start_sector _YELLOW_("H") ":Hardnested / " _YELLOW_("C") ":statiCnested / " _YELLOW_("A") ":keyA " - " )" + " )" ); if (sectorscnt == 18) { PrintAndLogEx(INFO, "( " _MAGENTA_("*") " ) These sectors used for signature. Lays outside of user memory"); @@ -10568,7 +10568,7 @@ static int CmdHF14AMfBambuKeys(const char *Cmd) { PrintAndLogEx(INFO, "-----------------------------------"); uint8_t keys[32 * 6]; - mfc_algo_bambu_all(uid, (void*)keys); + mfc_algo_bambu_all(uid, (void *)keys); for (int block = 0; block < 32; block++) { PrintAndLogEx(INFO, "%d: %012" PRIX64, block, bytes_to_num(keys + (block * 6), 6)); diff --git a/client/src/pm3line_vocabulary.h b/client/src/pm3line_vocabulary.h index d637f4e6e..7f91e8d60 100644 --- a/client/src/pm3line_vocabulary.h +++ b/client/src/pm3line_vocabulary.h @@ -356,7 +356,7 @@ const static vocabulary_t vocabulary[] = { { 0, "hf mf fchk" }, { 1, "hf mf decrypt" }, { 0, "hf mf supercard" }, - { 1, "hf mf blgen" }, + { 1, "hf mf bambukeys" }, { 0, "hf mf auth4" }, { 1, "hf mf acl" }, { 0, "hf mf dump" }, diff --git a/doc/commands.json b/doc/commands.json index e9400a96b..eb9cdcee3 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -13371,6 +13371,6 @@ "metadata": { "commands_extracted": 768, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2025-05-27T08:11:15" + "extracted_on": "2025-05-28T18:50:22" } } diff --git a/tools/mfc/card_only/staticnested_0nt.c b/tools/mfc/card_only/staticnested_0nt.c index 44bfaaf11..088b4aadc 100644 --- a/tools/mfc/card_only/staticnested_0nt.c +++ b/tools/mfc/card_only/staticnested_0nt.c @@ -272,7 +272,9 @@ static uint64_t **unpredictable_nested(NtpKs1List *pNKL, uint32_t keyCounts[]) { pthread_cond_wait(&status_cond, &status_mutex); activeThreads = 0; for (int i = 0; i < NUM_THREADS; i++) { - if (thread_status[i]) activeThreads++; + if (thread_status[i]) { + activeThreads++; + } } }