From 83f6e2b56b03bd3c5dc65e3466022cf124d2265c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 14 Aug 2024 10:57:05 +0200 Subject: [PATCH] make style --- client/src/uart/uart_posix.c | 2 +- doc/commands.json | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/client/src/uart/uart_posix.c b/client/src/uart/uart_posix.c index f728b5deb..20b249a5d 100644 --- a/client/src/uart/uart_posix.c +++ b/client/src/uart/uart_posix.c @@ -360,7 +360,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) { free(prefix); // Freshly available port can take a while before getting permission to access it. Up to 600ms on my machine... - for (uint8_t i =0; i < 10; i++) { + for (uint8_t i = 0; i < 10; i++) { sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK); if (sp->fd != -1 || errno != EACCES) break; diff --git a/doc/commands.json b/doc/commands.json index 65501d183..95f7279c9 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -4340,9 +4340,10 @@ "--4k MIFARE Classic 4k / S70", "--emu Fill simulator keys from found keys", "--dump Dump found keys to binary file", - "-f, --file Filename of dictionary" + "-f, --file Filename of dictionary", + "--no-default Don't add the bunch of extra default keys" ], - "usage": "hf mf chk [-hab*] [-k ]... [--tblk ] [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [-f ]" + "usage": "hf mf chk [-hab*] [-k ]... [--tblk ] [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [-f ] [--no-default]" }, "hf mf cload": { "command": "hf mf cload", @@ -4703,9 +4704,10 @@ "-f, --file filename of dictionary", "--blk block number (single block recovery mode)", "-a single block recovery key A", - "-b single block recovery key B" + "-b single block recovery key B", + "--no-default Don't add the bunch of extra default keys" ], - "usage": "hf mf fchk [-hab] [-k ]... [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [--mem] [-f ] [--blk ]" + "usage": "hf mf fchk [-hab] [-k ]... [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [--mem] [-f ] [--blk ] [--no-default]" }, "hf mf gchpwd": { "command": "hf mf gchpwd", @@ -5044,13 +5046,14 @@ "--key2 nested key, 6 hex bytes (default=same)", "-n number of nonces (default=2)", "--reset reset between attempts, even if auth was successful", + "--hardreset hard reset (RF off/on) between attempts, even if auth was successful", "--addread auth(blk)-read(blk)-auth(blk2)", "--addauth auth(blk)-auth(blk)-auth(blk2)", "--incblk2 auth(blk)-auth(blk2)-auth(blk2+4)-...", "--corruptnrar corrupt {nR}{aR}, but with correct parity", "--corruptnrarparity correct {nR}{aR}, but with corrupted parity" ], - "usage": "hf mf isen [-hab] [--blk ] [-c ] [-k ] [--blk2 ] [--a2] [--b2] [--c2 ] [--key2 ] [-n ] [--reset] [--addread] [--addauth] [--incblk2] [--corruptnrar] [--corruptnrarparity]" + "usage": "hf mf isen [-hab] [--blk ] [-c ] [-k ] [--blk2 ] [--a2] [--b2] [--c2 ] [--key2 ] [-n ] [--reset] [--hardreset] [--addread] [--addauth] [--incblk2] [--corruptnrar] [--corruptnrarparity]" }, "hf mf mad": { "command": "hf mf mad", @@ -12810,6 +12813,6 @@ "metadata": { "commands_extracted": 740, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2024-08-03T19:17:38" + "extracted_on": "2024-08-14T08:56:40" } }