From b7f3e4219ef125323072e25d69b4a5e15c44431b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 9 Feb 2026 01:12:54 +0100 Subject: [PATCH] make style --- client/src/emv/emv_tags.c | 2 +- doc/commands.json | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/client/src/emv/emv_tags.c b/client/src/emv/emv_tags.c index 5ecd7fbaf..172a006a6 100644 --- a/client/src/emv/emv_tags.c +++ b/client/src/emv/emv_tags.c @@ -444,7 +444,7 @@ static int emv_tlv_compare(const void *a, const void *b) { static const struct emv_tag *emv_get_tag(const struct tlv *tlv) { const struct emv_tag *tag = bsearch(tlv, emv_tags, ARRAYLEN(emv_tags), - sizeof(emv_tags[0]), emv_tlv_compare); + sizeof(emv_tags[0]), emv_tlv_compare); return tag ? tag : &emv_tags[0]; } diff --git a/doc/commands.json b/doc/commands.json index 60b82b2bd..3b5982d8c 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -7359,16 +7359,18 @@ "description": "Increment a MIFARE Ultralight Ev1 counter Will read but not increment counter if NTAG is detected", "notes": [ "hf mfu incr -c 0 -v 1337", - "hf mfu incr -c 2 -v 0 -p FFFFFFFF" + "hf mfu incr -c 2 -v 0 -k FFFFFFFF" ], "offline": false, "options": [ "-h, --help This help", "-c, --cnt Counter index from 0", "-v, --val Value to increment by (0-16777215)", - "-p, --pwd PWD to authenticate with" + "-k, --key Authentication key (UL-AES 16 bytes, EV1/NTAG 4 bytes)", + "-l Swap entered key's endianness", + "--schann use secure channel. Must have key" ], - "usage": "hf mfu incr [-h] -c -v [-p ]" + "usage": "hf mfu incr [-hl] -c -v [-k ] [--schann]" }, "hf mfu info": { "command": "hf mfu info", @@ -7517,9 +7519,11 @@ "-h, --help This help", "-k, --key New key (16 hex bytes)", "-i, --idx <0..1> New key index (def: 0), only for UL-AES", - "-l Swap entered keys' endianness" + "-l Swap entered keys' endianness", + "--usekey Current UL-C 3DES or UL-AES DataProt key (16 hex bytes)", + "--schann use secure channel. Must have usekey" ], - "usage": "hf mfu setkey [-hl] [-k ] [-i <0..1>]" + "usage": "hf mfu setkey [-hl] [-k ] [-i <0..1>] [--usekey ] [--schann]" }, "hf mfu setuid": { "command": "hf mfu setuid", @@ -13793,6 +13797,6 @@ "metadata": { "commands_extracted": 790, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2026-02-06T12:16:10" + "extracted_on": "2026-02-09T00:12:02" } }