diff --git a/armsrc/lfops.c b/armsrc/lfops.c index ac34c2a69..0d578295f 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -2258,7 +2258,7 @@ void CopyVikingtoT55xx(uint8_t *blocks, bool q5, bool em) { if (q5) { data[0] = T5555_SET_BITRATE(32) | T5555_MODULATION_MANCHESTER | 2 << T5555_MAXBLOCK_SHIFT; } else if (em) { - data[0] = (EM4x05_SET_BITRATE(32) | EM4x05_MODULATION_MANCHESTER | EM4x05_SET_NUM_BLOCKS(2) ); + data[0] = (EM4x05_SET_BITRATE(32) | EM4x05_MODULATION_MANCHESTER | EM4x05_SET_NUM_BLOCKS(2)); } data[1] = bytes_to_num(blocks, 4); diff --git a/client/src/cmdlfpyramid.c b/client/src/cmdlfpyramid.c index 1973bad49..452f3f61e 100644 --- a/client/src/cmdlfpyramid.c +++ b/client/src/cmdlfpyramid.c @@ -220,10 +220,10 @@ static int CmdPyramidClone(const char *Cmd) { void *argtable[] = { arg_param_begin, - arg_u64_1(NULL,"fc", "", "8-bit value facility code"), + arg_u64_1(NULL, "fc", "", "8-bit value facility code"), arg_u64_1(NULL, "cn", "", "16-bit value card number"), arg_lit0(NULL, "q5", "optional - specify writing to Q5/T5555 tag"), - arg_lit0(NULL, "em", "optional - specify writing to EM4305/4469 tag"), + arg_lit0(NULL, "em", "optional - specify writing to EM4305/4469 tag"), arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, false); @@ -301,7 +301,7 @@ static int CmdPyramidSim(const char *Cmd) { void *argtable[] = { arg_param_begin, - arg_u64_1(NULL,"fc", "", "8-bit value facility code"), + arg_u64_1(NULL, "fc", "", "8-bit value facility code"), arg_u64_1(NULL, "cn", "", "16-bit value card number"), arg_param_end }; diff --git a/client/src/cmdlfsecurakey.c b/client/src/cmdlfsecurakey.c index e54d0ff9c..c489427e2 100644 --- a/client/src/cmdlfsecurakey.c +++ b/client/src/cmdlfsecurakey.c @@ -105,7 +105,7 @@ int demodSecurakey(bool verbose) { if (bitLen <= 32) PrintAndLogEx(SUCCESS, "Wiegand: " _GREEN_("%08X") " parity (%s)", (lWiegand << (bitLen / 2)) | rWiegand, parity ? _GREEN_("ok") : _RED_("fail")); - if ( verbose ) { + if (verbose) { PrintAndLogEx(INFO, "\nHow the FC translates to printed FC is unknown"); PrintAndLogEx(INFO, "How the checksum is calculated is unknown"); PrintAndLogEx(INFO, "Help the community identify this format further\nby sharing your tag on the pm3 forum or discord"); diff --git a/client/src/cmdlfviking.c b/client/src/cmdlfviking.c index 2d60c4893..805eb875c 100644 --- a/client/src/cmdlfviking.c +++ b/client/src/cmdlfviking.c @@ -98,7 +98,7 @@ static int CmdVikingClone(const char *Cmd) { arg_param_begin, arg_strx0(NULL, "cn", "", "8 digit hex viking card number"), arg_lit0(NULL, "q5", "optional - specify writing to Q5/T5555 tag"), - arg_lit0(NULL, "em", "optional - specify writing to EM4305/4469 tag"), + arg_lit0(NULL, "em", "optional - specify writing to EM4305/4469 tag"), arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, false); @@ -134,7 +134,7 @@ static int CmdVikingClone(const char *Cmd) { num_to_bytes(rawID, 8, &payload.blocks[0]); char cardtype[16] = {"T55x7"}; - if (q5) + if (q5) snprintf(cardtype, sizeof(cardtype), "Q5/T5555"); else if (em) snprintf(cardtype, sizeof(cardtype), "EM4305/4469"); diff --git a/client/src/emv/emvcore.c b/client/src/emv/emvcore.c index 0bcd547b1..7982ff711 100644 --- a/client/src/emv/emvcore.c +++ b/client/src/emv/emvcore.c @@ -807,7 +807,7 @@ int trDDA(EMVCommandChannel channel, bool decodeTLV, struct tlvdb *tlv) { tlvdb_free(atc_db); return 9; } - + } else { struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv); if (dac_db) { diff --git a/doc/commands.md b/doc/commands.md index e52c2361d..770d9f4c6 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -11,7 +11,7 @@ Check column "offline" for their availability. |command |offline |description |------- |------- |----------- |`auto `|N |`Automated detection process for unknown tags` -|`clear `|Y |`clear screen` +|`clear `|Y |`Clear screen` |`help `|Y |`This help. Use ' help' for details of a particular command.` |`hints `|Y |`Turn hints on / off` |`msleep `|Y |`Add a pause in milliseconds` @@ -256,7 +256,6 @@ Check column "offline" for their availability. |`hf iclass restore `|N |`[options..] Restore a dump file onto a Picopass / iCLASS tag` |`hf iclass sniff `|N |` Eavesdrop Picopass / iCLASS communication` |`hf iclass wrbl `|N |`[options..] Write Picopass / iCLASS block` -|`hf iclass autopwn `|N |`[options..] Automatic key recovery tool for iCLASS` |`hf iclass chk `|N |`[options..] Check keys` |`hf iclass loclass `|Y |`[options..] Use loclass to perform bruteforce reader attack` |`hf iclass lookup `|Y |`[options..] Uses authentication trace to check for key in dictionary file` @@ -850,7 +849,7 @@ Check column "offline" for their availability. |------- |------- |----------- |`lf pyramid help `|Y |`this help` |`lf pyramid demod `|Y |`demodulate a Pyramid FSK tag from the GraphBuffer` -|`lf pyramid read `|N |`attempt to read and extract tag data` +|`lf pyramid reader `|N |`attempt to read and extract tag data` |`lf pyramid clone `|N |`clone pyramid tag to T55x7 or Q5/T5555` |`lf pyramid sim `|N |`simulate pyramid tag` @@ -863,7 +862,7 @@ Check column "offline" for their availability. |------- |------- |----------- |`lf securakey help `|Y |`This help` |`lf securakey demod `|Y |`Demodulate an Securakey tag from the GraphBuffer` -|`lf securakey read `|N |`Attempt to read and extract tag data from the antenna` +|`lf securakey reader `|N |`Attempt to read and extract tag data from the antenna` |`lf securakey clone `|N |`clone Securakey tag to T55x7` |`lf securakey sim `|N |`simulate Securakey tag` @@ -876,7 +875,7 @@ Check column "offline" for their availability. |------- |------- |----------- |`lf ti help `|Y |`This help` |`lf ti demod `|Y |`Demodulate raw bits for TI-type LF tag from the GraphBuffer` -|`lf ti read `|N |`Read and decode a TI 134 kHz tag` +|`lf ti reader `|N |`Read and decode a TI 134 kHz tag` |`lf ti write `|N |`Write new data to a r/w TI 134 kHz tag` @@ -918,7 +917,7 @@ Check column "offline" for their availability. |------- |------- |----------- |`lf viking help `|Y |`This help` |`lf viking demod `|Y |`Demodulate a Viking tag from the GraphBuffer` -|`lf viking read `|N |`Attempt to read and Extract tag data from the antenna` +|`lf viking reader `|N |`Attempt to read and Extract tag data from the antenna` |`lf viking clone `|N |`clone Viking tag to T55x7 or Q5/T5555` |`lf viking sim `|N |`simulate Viking tag` @@ -931,14 +930,14 @@ Check column "offline" for their availability. |------- |------- |----------- |`lf visa2000 help `|Y |`This help` |`lf visa2000 demod `|Y |`demodulate an VISA2000 tag from the GraphBuffer` -|`lf visa2000 read `|N |`attempt to read and extract tag data from the antenna` +|`lf visa2000 reader `|N |`attempt to read and extract tag data from the antenna` |`lf visa2000 clone `|N |`clone Visa2000 tag to T55x7 or Q5/T5555` |`lf visa2000 sim `|N |`simulate Visa2000 tag` ### mem - { Flash Memory manipulation... } + { Flash memory manipulation... } |command |offline |description |------- |------- |----------- @@ -953,7 +952,7 @@ Check column "offline" for their availability. ### reveng - { CRC calculations from RevEng software } + { CRC calculations from RevEng software... } [=] reveng: no mode switch specified. Use reveng -h for help. @@ -975,7 +974,7 @@ Check column "offline" for their availability. ### script - { Scripting commands } + { Scripting commands... } |command |offline |description |------- |------- |-----------