make style

This commit is contained in:
Philippe Teuwen 2024-08-14 10:57:05 +02:00
commit 83f6e2b56b
2 changed files with 10 additions and 7 deletions

View file

@ -360,7 +360,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
free(prefix); free(prefix);
// Freshly available port can take a while before getting permission to access it. Up to 600ms on my machine... // 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); sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK);
if (sp->fd != -1 || errno != EACCES) if (sp->fd != -1 || errno != EACCES)
break; break;

View file

@ -4340,9 +4340,10 @@
"--4k MIFARE Classic 4k / S70", "--4k MIFARE Classic 4k / S70",
"--emu Fill simulator keys from found keys", "--emu Fill simulator keys from found keys",
"--dump Dump found keys to binary file", "--dump Dump found keys to binary file",
"-f, --file <fn> Filename of dictionary" "-f, --file <fn> Filename of dictionary",
"--no-default Don't add the bunch of extra default keys"
], ],
"usage": "hf mf chk [-hab*] [-k <hex>]... [--tblk <dec>] [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [-f <fn>]" "usage": "hf mf chk [-hab*] [-k <hex>]... [--tblk <dec>] [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [-f <fn>] [--no-default]"
}, },
"hf mf cload": { "hf mf cload": {
"command": "hf mf cload", "command": "hf mf cload",
@ -4703,9 +4704,10 @@
"-f, --file <fn> filename of dictionary", "-f, --file <fn> filename of dictionary",
"--blk <dec> block number (single block recovery mode)", "--blk <dec> block number (single block recovery mode)",
"-a single block recovery key A", "-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 <hex>]... [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [--mem] [-f <fn>] [--blk <dec>]" "usage": "hf mf fchk [-hab] [-k <hex>]... [--mini] [--1k] [--2k] [--4k] [--emu] [--dump] [--mem] [-f <fn>] [--blk <dec>] [--no-default]"
}, },
"hf mf gchpwd": { "hf mf gchpwd": {
"command": "hf mf gchpwd", "command": "hf mf gchpwd",
@ -5044,13 +5046,14 @@
"--key2 <hex> nested key, 6 hex bytes (default=same)", "--key2 <hex> nested key, 6 hex bytes (default=same)",
"-n <dec> number of nonces (default=2)", "-n <dec> number of nonces (default=2)",
"--reset reset between attempts, even if auth was successful", "--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)", "--addread auth(blk)-read(blk)-auth(blk2)",
"--addauth auth(blk)-auth(blk)-auth(blk2)", "--addauth auth(blk)-auth(blk)-auth(blk2)",
"--incblk2 auth(blk)-auth(blk2)-auth(blk2+4)-...", "--incblk2 auth(blk)-auth(blk2)-auth(blk2+4)-...",
"--corruptnrar corrupt {nR}{aR}, but with correct parity", "--corruptnrar corrupt {nR}{aR}, but with correct parity",
"--corruptnrarparity correct {nR}{aR}, but with corrupted parity" "--corruptnrarparity correct {nR}{aR}, but with corrupted parity"
], ],
"usage": "hf mf isen [-hab] [--blk <dec>] [-c <dec>] [-k <hex>] [--blk2 <dec>] [--a2] [--b2] [--c2 <dec>] [--key2 <hex>] [-n <dec>] [--reset] [--addread] [--addauth] [--incblk2] [--corruptnrar] [--corruptnrarparity]" "usage": "hf mf isen [-hab] [--blk <dec>] [-c <dec>] [-k <hex>] [--blk2 <dec>] [--a2] [--b2] [--c2 <dec>] [--key2 <hex>] [-n <dec>] [--reset] [--hardreset] [--addread] [--addauth] [--incblk2] [--corruptnrar] [--corruptnrarparity]"
}, },
"hf mf mad": { "hf mf mad": {
"command": "hf mf mad", "command": "hf mf mad",
@ -12810,6 +12813,6 @@
"metadata": { "metadata": {
"commands_extracted": 740, "commands_extracted": 740,
"extracted_by": "PM3Help2JSON v1.00", "extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2024-08-03T19:17:38" "extracted_on": "2024-08-14T08:56:40"
} }
} }