mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
actually fix the list options
This commit is contained in:
parent
cd2c95251f
commit
470a0a5978
17 changed files with 55 additions and 18 deletions
|
@ -269,9 +269,11 @@ static int usage_hf_14a_reader(void) {
|
|||
}
|
||||
|
||||
static int CmdHF14AList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 14a");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -116,9 +116,11 @@ static bool wait_cmd_14b(bool verbose, bool is_select) {
|
|||
}
|
||||
|
||||
static int CmdHF14BList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 14b");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -1342,9 +1342,11 @@ static int CmdHF15Dump(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHF15List(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 15");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -115,9 +115,11 @@ static int switch_off_field_cryptorf(void) {
|
|||
}
|
||||
|
||||
static int CmdHFCryptoRFList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t cryptorf");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -407,9 +407,11 @@ static bool add_last_IDm(uint8_t position, uint8_t *data) {
|
|||
}
|
||||
|
||||
static int CmdHFFelicaList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t felica");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -41,9 +41,11 @@
|
|||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
static int cmd_hf_fido_list(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 14a");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -604,9 +604,11 @@ static void print_picopass_header(const picopass_hdr *hdr) {
|
|||
}
|
||||
|
||||
static int CmdHFiClassList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t iclass");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -1401,9 +1401,11 @@ static int CmdLegicWipe(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdLegicList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t legic");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -207,9 +207,11 @@ int infoLTO(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdHfLTOList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t lto");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -5196,9 +5196,11 @@ static int CmdHFMFPersonalize(const char *cmd) {
|
|||
}
|
||||
|
||||
static int CmdHF14AMfList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t mf");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -4470,9 +4470,11 @@ static int CmdHF14aDesChk(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHF14ADesList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t des");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -724,9 +724,11 @@ static int cmd_hf_st_pwd(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int cmd_hf_st_list(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 7816");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -225,9 +225,11 @@ static int CmdHfThinFilmSim(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHfThinFilmList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t thinfilm");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -481,9 +481,11 @@ static int CmdHFTopazCmdRaw(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHFTopazList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t topaz");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -149,9 +149,11 @@ static int usage_hitag_checkchallenges(void) {
|
|||
}
|
||||
|
||||
static int CmdLFHitagList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t hitag2");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
|
||||
|
|
|
@ -844,9 +844,11 @@ static int CmdSmartSetClock(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdSmartList(const char *Cmd) {
|
||||
char args[128];
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 7816");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
|
|
@ -1772,8 +1772,13 @@ static int CmdEMVScan(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdEMVList(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
return CmdTraceList("7816");
|
||||
char args[128] = {0};
|
||||
if (strlen(Cmd) == 0) {
|
||||
snprintf(args, sizeof(args), "-t 7816");
|
||||
} else {
|
||||
strncpy(args, Cmd, sizeof(args) - 1);
|
||||
}
|
||||
return CmdTraceList(args);
|
||||
}
|
||||
|
||||
static int CmdEMVTest(const char *Cmd) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue