From 4b64a45899cb5dc0eea5840b214f70436ee4d7fc Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 23 Jul 2023 11:15:52 +0200 Subject: [PATCH] make style --- client/src/cmddata.c | 6 +++--- client/src/cmdhf14a.c | 2 +- client/src/cmdhflegic.c | 4 ++-- doc/commands.json | 29 +++++++++++++++++------------ doc/commands.md | 2 +- 5 files changed, 24 insertions(+), 19 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 3dc6494c0..74273921f 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -3373,10 +3373,10 @@ static int envelope_square(const int *in, int *out, size_t len) { size_t i = 0; - while ( i < len - 8) { + while (i < len - 8) { - if (in[i] == 0 && in[i+1] == 0 && in[i+2] == 0 && in[i+3] == 0 && - in[i+4] == 0 && in[i+5] == 0 && in[i+6] == 0 && in[i+7] == 0) { + if (in[i] == 0 && in[i + 1] == 0 && in[i + 2] == 0 && in[i + 3] == 0 && + in[i + 4] == 0 && in[i + 5] == 0 && in[i + 6] == 0 && in[i + 7] == 0) { i += 8; continue; diff --git a/client/src/cmdhf14a.c b/client/src/cmdhf14a.c index cff210ad9..f2ca64076 100644 --- a/client/src/cmdhf14a.c +++ b/client/src/cmdhf14a.c @@ -757,7 +757,7 @@ int CmdHF14ASim(const char *Cmd) { "hf 14a sim -t 10 -> ST25TA IKEA Rothult\n" "hf 14a sim -t 11 -> Javacard (JCOP)\n" "hf 14a sim -t 12 -> 4K Seos card\n" - ); + ); void *argtable[] = { arg_param_begin, diff --git a/client/src/cmdhflegic.c b/client/src/cmdhflegic.c index 639947311..160eac05b 100644 --- a/client/src/cmdhflegic.c +++ b/client/src/cmdhflegic.c @@ -84,7 +84,7 @@ static int decode_and_print_memory(uint16_t card_size, const uint8_t *input_buff uint32_t calc_crc = CRC8Legic(data, 4); PrintAndLogEx(INFO, "--------------------- " _CYAN_("Tag Information") " ----------------------"); - PrintAndLogEx(NORMAL, ""); + PrintAndLogEx(NORMAL, ""); PrintAndLogEx(SUCCESS, " " _CYAN_("CDF: System Area")); PrintAndLogEx(INFO, "------------------------------------------------------"); PrintAndLogEx(SUCCESS, "MCD: " _GREEN_("%02X") " MSN: " _GREEN_("%s") " MCC: " _GREEN_("%02X") " ( %s )", @@ -417,7 +417,7 @@ static int CmdLegicInfo(const char *Cmd) { arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, true); - bool verbose = arg_get_lit(ctx, 1); + bool verbose = arg_get_lit(ctx, 1); CLIParserFree(ctx); uint16_t datalen = 0; diff --git a/doc/commands.json b/doc/commands.json index 7e6061ec3..84b09c862 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -1297,19 +1297,21 @@ "hf 14a sim -t 7 -> MFU EV1 / NTAG 215 Amiibo", "hf 14a sim -t 8 -> MIFARE Classic 4k", "hf 14a sim -t 9 -> FM11RF005SH Shanghai Metro", - "hf 14a sim -t 10 -> ST25TA IKEA Rothult" + "hf 14a sim -t 10 -> ST25TA IKEA Rothult", + "hf 14a sim -t 11 -> Javacard (JCOP)", + "hf 14a sim -t 12 -> 4K Seos card" ], "offline": false, "options": [ "-h, --help This help", - "-t, --type <1-10> Simulation type to use", + "-t, --type <1-12> Simulation type to use", "-u, --uid <4|7|10> hex bytes UID", "-n, --num Exit simulation after blocks have been read by reader. 0 = infinite", "-x Performs the 'reader attack', nr/ar attack against a reader", "--sk Fill simulator keys from found keys", "-v, --verbose verbose output" ], - "usage": "hf 14a sim [-hxv] -t <1-10> [-u ] [-n ] [--sk]" + "usage": "hf 14a sim [-hxv] -t <1-12> [-u ] [-n ] [--sk]" }, "hf 14a sniff": { "command": "hf 14a sniff", @@ -3617,9 +3619,10 @@ "-h, --help This help", "--22 LEGIC Prime MIM22", "--256 LEGIC Prime MIM256 (def)", - "--1024 LEGIC Prime MIM1024" + "--1024 LEGIC Prime MIM1024", + "-v, --verbose verbose output" ], - "usage": "hf legic eview [-h] [--22] [--256] [--1024]" + "usage": "hf legic eview [-hv] [--22] [--256] [--1024]" }, "hf legic info": { "command": "hf legic info", @@ -3629,9 +3632,10 @@ ], "offline": false, "options": [ - "-h, --help This help" + "-h, --help This help", + "-v, --verbose verbose output" ], - "usage": "hf legic info [-h]" + "usage": "hf legic info [-hv]" }, "hf legic list": { "command": "hf legic list", @@ -3723,9 +3727,10 @@ "offline": true, "options": [ "-h, --help This help", - "-f, --file Filename of dump" + "-f, --file Filename of dump", + "-v, --verbose verbose output" ], - "usage": "hf legic view [-h] -f " + "usage": "hf legic view [-hv] -f " }, "hf legic wipe": { "command": "hf legic wipe", @@ -9204,7 +9209,7 @@ }, "lf motorola demod": { "command": "lf motorola demod", - "description": "Try to find Motorola preamble, if found decode / descramble data", + "description": "Try to find Motorola Flexpass preamble, if found decode / descramble data", "notes": [ "lf motorola demod" ], @@ -9216,7 +9221,7 @@ }, "lf motorola reader": { "command": "lf motorola reader", - "description": "read a Motorola tag", + "description": "read a Motorola Flexpass tag", "notes": [ "lf motorola reader -@ -> continuous reader mode" ], @@ -11751,6 +11756,6 @@ "metadata": { "commands_extracted": 681, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2023-07-21T16:22:30" + "extracted_on": "2023-07-23T09:14:42" } } \ No newline at end of file diff --git a/doc/commands.md b/doc/commands.md index cd538fe3c..adbecb5bf 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -1070,7 +1070,7 @@ Check column "offline" for their availability. ### lf motorola - { Motorola RFIDs... } + { Motorola Flexpass RFIDs... } |command |offline |description |------- |------- |-----------