mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
textual
This commit is contained in:
parent
c27264e4c4
commit
811f76785d
7 changed files with 25 additions and 20 deletions
|
@ -1817,7 +1817,7 @@ static int CmdSamples(const char *Cmd) {
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_int0("n", NULL, "<dec>", "num of samples (512 - 40000)"),
|
arg_int0("n", NULL, "<dec>", "num of samples (512 - 40000)"),
|
||||||
arg_lit0("v", "verbose", "verbose"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
|
|
@ -290,7 +290,7 @@ static int CmdHF14BCmdRaw(const char *Cmd) {
|
||||||
arg_lit0("c", "crc", "calculate and append CRC"),
|
arg_lit0("c", "crc", "calculate and append CRC"),
|
||||||
arg_lit0("r", NULL, "do not read response from card"),
|
arg_lit0("r", NULL, "do not read response from card"),
|
||||||
arg_int0("t", "timeout", "<dec>", "timeout in ms"),
|
arg_int0("t", "timeout", "<dec>", "timeout in ms"),
|
||||||
arg_lit0("v", "verbose", "verbose"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_str0("d", "data", "<hex>", "data, bytes to send"),
|
arg_str0("d", "data", "<hex>", "data, bytes to send"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
|
@ -931,7 +931,7 @@ static int CmdHF14Binfo(const char *Cmd) {
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_lit0("s", "aidsearch", "checks if AIDs from aidlist.json is present on the card and prints information about found AIDs"),
|
arg_lit0("s", "aidsearch", "checks if AIDs from aidlist.json is present on the card and prints information about found AIDs"),
|
||||||
arg_lit0("v", "verbose", "verbose"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -1186,12 +1186,12 @@ static int CmdHF14BReader(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_lit0("s", "silent", "silent (no messages)"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_lit0("@", NULL, "optional - continuous reader mode"),
|
arg_lit0("@", NULL, "optional - continuous reader mode"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
bool verbose = (arg_get_lit(ctx, 1) == false);
|
bool verbose = arg_get_lit(ctx, 1);
|
||||||
bool cm = arg_get_lit(ctx, 2);
|
bool cm = arg_get_lit(ctx, 2);
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
|
@ -2203,20 +2203,25 @@ int readHF14B(bool loop, bool verbose) {
|
||||||
do {
|
do {
|
||||||
// try std 14b (atqb)
|
// try std 14b (atqb)
|
||||||
if (HF14B_std_reader(verbose))
|
if (HF14B_std_reader(verbose))
|
||||||
return PM3_SUCCESS;
|
if (loop)
|
||||||
|
continue;
|
||||||
|
|
||||||
// try ST Microelectronics 14b
|
// try ST Microelectronics 14b
|
||||||
if (HF14B_st_reader(verbose))
|
if (HF14B_st_reader(verbose))
|
||||||
return PM3_SUCCESS;
|
if (loop)
|
||||||
|
continue;
|
||||||
|
|
||||||
// try ASK CT 14b
|
// try ASK CT 14b
|
||||||
if (HF14B_ask_ct_reader(verbose))
|
if (HF14B_ask_ct_reader(verbose))
|
||||||
return PM3_SUCCESS;
|
if (loop)
|
||||||
|
continue;
|
||||||
|
|
||||||
// try unknown 14b read commands (to be identified later)
|
// try unknown 14b read commands (to be identified later)
|
||||||
// could be read of calypso, CEPAS, moneo, or pico pass.
|
// could be read of calypso, CEPAS, moneo, or pico pass.
|
||||||
if (HF14B_other_reader(verbose))
|
if (HF14B_other_reader(verbose))
|
||||||
return PM3_SUCCESS;
|
if (loop)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
|
||||||
} while (loop && kbd_enter_pressed() == false);
|
} while (loop && kbd_enter_pressed() == false);
|
||||||
|
|
||||||
|
|
|
@ -591,7 +591,7 @@ static int CmdHFFelicaAuthentication1(const char *Cmd) {
|
||||||
arg_str0(NULL, "sn", "<hex>", "number of service, 1 byte"),
|
arg_str0(NULL, "sn", "<hex>", "number of service, 1 byte"),
|
||||||
arg_str0(NULL, "scl", "<hex>", "service code list, 2 bytes"),
|
arg_str0(NULL, "scl", "<hex>", "service code list, 2 bytes"),
|
||||||
arg_str0("k", "key", "<hex>", "3des key, 16 bytes"),
|
arg_str0("k", "key", "<hex>", "3des key, 16 bytes"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -804,7 +804,7 @@ static int CmdHFFelicaAuthentication2(const char *Cmd) {
|
||||||
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
||||||
arg_str0("c", "cc", "<hex>", "M3c card challenge, 8 bytes"),
|
arg_str0("c", "cc", "<hex>", "M3c card challenge, 8 bytes"),
|
||||||
arg_str0("k", "key", "<hex>", "3des M3c decryption key, 16 bytes"),
|
arg_str0("k", "key", "<hex>", "3des M3c decryption key, 16 bytes"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -970,7 +970,7 @@ static int CmdHFFelicaWritePlain(const char *Cmd) {
|
||||||
arg_str0(NULL, "scl", "<hex>", "service code list"),
|
arg_str0(NULL, "scl", "<hex>", "service code list"),
|
||||||
arg_str0(NULL, "bn", "<hex>", "number of block"),
|
arg_str0(NULL, "bn", "<hex>", "number of block"),
|
||||||
arg_str0(NULL, "ble", "<hex>", "block list element (def 2|3 bytes)"),
|
arg_str0(NULL, "ble", "<hex>", "block list element (def 2|3 bytes)"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -1136,7 +1136,7 @@ static int CmdHFFelicaReadPlain(const char *Cmd) {
|
||||||
arg_str0(NULL, "scl", "<hex>", "service code list"),
|
arg_str0(NULL, "scl", "<hex>", "service code list"),
|
||||||
arg_str0(NULL, "bn", "<hex>", "number of block"),
|
arg_str0(NULL, "bn", "<hex>", "number of block"),
|
||||||
arg_str0(NULL, "ble", "<hex>", "block list element (def 2|3 bytes)"),
|
arg_str0(NULL, "ble", "<hex>", "block list element (def 2|3 bytes)"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -1364,7 +1364,7 @@ static int CmdHFFelicaRequestSpecificationVersion(const char *Cmd) {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
||||||
arg_str0("r", NULL, "<hex>", "set custom reserve"),
|
arg_str0("r", NULL, "<hex>", "set custom reserve"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -1471,7 +1471,7 @@ static int CmdHFFelicaResetMode(const char *Cmd) {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
arg_str0("i", NULL, "<hex>", "set custom IDm"),
|
||||||
arg_str0("r", NULL, "<hex>", "set custom reserve"),
|
arg_str0("r", NULL, "<hex>", "set custom reserve"),
|
||||||
arg_lit0("v", "verbose", "verbose helptext"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
|
|
@ -461,7 +461,7 @@ static int CmdHFMFPWritePerso(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_lit0("v", "verbose", "Verbose mode"),
|
arg_lit0("v", "verbose", "Verbose output"),
|
||||||
arg_str1(NULL, "ki", "<hex>", " Key number, 2 hex bytes"),
|
arg_str1(NULL, "ki", "<hex>", " Key number, 2 hex bytes"),
|
||||||
arg_str0(NULL, "key", "<hex>", " Key, 16 hex bytes"),
|
arg_str0(NULL, "key", "<hex>", " Key, 16 hex bytes"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
|
|
|
@ -487,7 +487,7 @@ static int CmdAWIDBrute(const char *Cmd) {
|
||||||
arg_u64_1(NULL, "fc", "<dec>", "8|16bit value facility code"),
|
arg_u64_1(NULL, "fc", "<dec>", "8|16bit value facility code"),
|
||||||
arg_u64_0(NULL, "cn", "<dec>", "optional - card number to start with, max 65535"),
|
arg_u64_0(NULL, "cn", "<dec>", "optional - card number to start with, max 65535"),
|
||||||
arg_u64_0(NULL, "delay", "<dec>", "optional - delay betweens attempts in ms. Default 1000ms"),
|
arg_u64_0(NULL, "delay", "<dec>", "optional - delay betweens attempts in ms. Default 1000ms"),
|
||||||
arg_lit0("v", "verbose", "verbose logging, show all tries"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||||
|
|
|
@ -628,7 +628,7 @@ int CmdEM4x50Info(const char *Cmd) {
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_str0("p", "pwd", "<hex>", "password, 4 hex bytes, lsb"),
|
arg_str0("p", "pwd", "<hex>", "password, 4 hex bytes, lsb"),
|
||||||
arg_lit0("v", "verbose", "additional output of data section"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -670,7 +670,7 @@ static int CmdSmartInfo(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_lit0("v", "verbose", "verbose"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
@ -748,7 +748,7 @@ static int CmdSmartReader(const char *Cmd) {
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
arg_lit0("v", "verbose", "verbose"),
|
arg_lit0("v", "verbose", "verbose output"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue