mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
make style
This commit is contained in:
parent
6066179d35
commit
db083034d6
6 changed files with 17 additions and 18 deletions
|
@ -2258,7 +2258,7 @@ void CopyVikingtoT55xx(uint8_t *blocks, bool q5, bool em) {
|
||||||
if (q5) {
|
if (q5) {
|
||||||
data[0] = T5555_SET_BITRATE(32) | T5555_MODULATION_MANCHESTER | 2 << T5555_MAXBLOCK_SHIFT;
|
data[0] = T5555_SET_BITRATE(32) | T5555_MODULATION_MANCHESTER | 2 << T5555_MAXBLOCK_SHIFT;
|
||||||
} else if (em) {
|
} 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);
|
data[1] = bytes_to_num(blocks, 4);
|
||||||
|
|
|
@ -220,10 +220,10 @@ static int CmdPyramidClone(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_u64_1(NULL,"fc", "<dec>", "8-bit value facility code"),
|
arg_u64_1(NULL, "fc", "<dec>", "8-bit value facility code"),
|
||||||
arg_u64_1(NULL, "cn", "<dec>", "16-bit value card number"),
|
arg_u64_1(NULL, "cn", "<dec>", "16-bit value card number"),
|
||||||
arg_lit0(NULL, "q5", "optional - specify writing to Q5/T5555 tag"),
|
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
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||||
|
@ -301,7 +301,7 @@ static int CmdPyramidSim(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_u64_1(NULL,"fc", "<dec>", "8-bit value facility code"),
|
arg_u64_1(NULL, "fc", "<dec>", "8-bit value facility code"),
|
||||||
arg_u64_1(NULL, "cn", "<dec>", "16-bit value card number"),
|
arg_u64_1(NULL, "cn", "<dec>", "16-bit value card number"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
|
|
|
@ -105,7 +105,7 @@ int demodSecurakey(bool verbose) {
|
||||||
if (bitLen <= 32)
|
if (bitLen <= 32)
|
||||||
PrintAndLogEx(SUCCESS, "Wiegand: " _GREEN_("%08X") " parity (%s)", (lWiegand << (bitLen / 2)) | rWiegand, parity ? _GREEN_("ok") : _RED_("fail"));
|
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, "\nHow the FC translates to printed FC is unknown");
|
||||||
PrintAndLogEx(INFO, "How the checksum is calculated 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");
|
PrintAndLogEx(INFO, "Help the community identify this format further\nby sharing your tag on the pm3 forum or discord");
|
||||||
|
|
|
@ -98,7 +98,7 @@ static int CmdVikingClone(const char *Cmd) {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_strx0(NULL, "cn", "<hex>", "8 digit hex viking card number"),
|
arg_strx0(NULL, "cn", "<hex>", "8 digit hex viking card number"),
|
||||||
arg_lit0(NULL, "q5", "optional - specify writing to Q5/T5555 tag"),
|
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
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||||
|
@ -134,7 +134,7 @@ static int CmdVikingClone(const char *Cmd) {
|
||||||
num_to_bytes(rawID, 8, &payload.blocks[0]);
|
num_to_bytes(rawID, 8, &payload.blocks[0]);
|
||||||
|
|
||||||
char cardtype[16] = {"T55x7"};
|
char cardtype[16] = {"T55x7"};
|
||||||
if (q5)
|
if (q5)
|
||||||
snprintf(cardtype, sizeof(cardtype), "Q5/T5555");
|
snprintf(cardtype, sizeof(cardtype), "Q5/T5555");
|
||||||
else if (em)
|
else if (em)
|
||||||
snprintf(cardtype, sizeof(cardtype), "EM4305/4469");
|
snprintf(cardtype, sizeof(cardtype), "EM4305/4469");
|
||||||
|
|
|
@ -807,7 +807,7 @@ int trDDA(EMVCommandChannel channel, bool decodeTLV, struct tlvdb *tlv) {
|
||||||
tlvdb_free(atc_db);
|
tlvdb_free(atc_db);
|
||||||
return 9;
|
return 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv);
|
struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv);
|
||||||
if (dac_db) {
|
if (dac_db) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ Check column "offline" for their availability.
|
||||||
|command |offline |description
|
|command |offline |description
|
||||||
|------- |------- |-----------
|
|------- |------- |-----------
|
||||||
|`auto `|N |`Automated detection process for unknown tags`
|
|`auto `|N |`Automated detection process for unknown tags`
|
||||||
|`clear `|Y |`clear screen`
|
|`clear `|Y |`Clear screen`
|
||||||
|`help `|Y |`This help. Use '<command> help' for details of a particular command.`
|
|`help `|Y |`This help. Use '<command> help' for details of a particular command.`
|
||||||
|`hints `|Y |`Turn hints on / off`
|
|`hints `|Y |`Turn hints on / off`
|
||||||
|`msleep `|Y |`Add a pause in milliseconds`
|
|`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 restore `|N |`[options..] Restore a dump file onto a Picopass / iCLASS tag`
|
||||||
|`hf iclass sniff `|N |` Eavesdrop Picopass / iCLASS communication`
|
|`hf iclass sniff `|N |` Eavesdrop Picopass / iCLASS communication`
|
||||||
|`hf iclass wrbl `|N |`[options..] Write Picopass / iCLASS block`
|
|`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 chk `|N |`[options..] Check keys`
|
||||||
|`hf iclass loclass `|Y |`[options..] Use loclass to perform bruteforce reader attack`
|
|`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`
|
|`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 help `|Y |`this help`
|
||||||
|`lf pyramid demod `|Y |`demodulate a Pyramid FSK tag from the GraphBuffer`
|
|`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 clone `|N |`clone pyramid tag to T55x7 or Q5/T5555`
|
||||||
|`lf pyramid sim `|N |`simulate pyramid tag`
|
|`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 help `|Y |`This help`
|
||||||
|`lf securakey demod `|Y |`Demodulate an Securakey tag from the GraphBuffer`
|
|`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 clone `|N |`clone Securakey tag to T55x7`
|
||||||
|`lf securakey sim `|N |`simulate Securakey tag`
|
|`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 help `|Y |`This help`
|
||||||
|`lf ti demod `|Y |`Demodulate raw bits for TI-type LF tag from the GraphBuffer`
|
|`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`
|
|`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 help `|Y |`This help`
|
||||||
|`lf viking demod `|Y |`Demodulate a Viking tag from the GraphBuffer`
|
|`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 clone `|N |`clone Viking tag to T55x7 or Q5/T5555`
|
||||||
|`lf viking sim `|N |`simulate Viking tag`
|
|`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 help `|Y |`This help`
|
||||||
|`lf visa2000 demod `|Y |`demodulate an VISA2000 tag from the GraphBuffer`
|
|`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 clone `|N |`clone Visa2000 tag to T55x7 or Q5/T5555`
|
||||||
|`lf visa2000 sim `|N |`simulate Visa2000 tag`
|
|`lf visa2000 sim `|N |`simulate Visa2000 tag`
|
||||||
|
|
||||||
|
|
||||||
### mem
|
### mem
|
||||||
|
|
||||||
{ Flash Memory manipulation... }
|
{ Flash memory manipulation... }
|
||||||
|
|
||||||
|command |offline |description
|
|command |offline |description
|
||||||
|------- |------- |-----------
|
|------- |------- |-----------
|
||||||
|
@ -953,7 +952,7 @@ Check column "offline" for their availability.
|
||||||
|
|
||||||
### reveng
|
### reveng
|
||||||
|
|
||||||
{ CRC calculations from RevEng software }
|
{ CRC calculations from RevEng software... }
|
||||||
|
|
||||||
[=] reveng: no mode switch specified. Use reveng -h for help.
|
[=] reveng: no mode switch specified. Use reveng -h for help.
|
||||||
|
|
||||||
|
@ -975,7 +974,7 @@ Check column "offline" for their availability.
|
||||||
|
|
||||||
### script
|
### script
|
||||||
|
|
||||||
{ Scripting commands }
|
{ Scripting commands... }
|
||||||
|
|
||||||
|command |offline |description
|
|command |offline |description
|
||||||
|------- |------- |-----------
|
|------- |------- |-----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue