mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 07:05:40 -07:00
minor fix
This commit is contained in:
parent
11b94e7748
commit
2218b4e7db
1 changed files with 7 additions and 4 deletions
|
@ -615,7 +615,7 @@ int CmdTraceList(const char *Cmd) {
|
||||||
"trace list -t hitags -> interpret as " _YELLOW_("HitagS") " communications\n"
|
"trace list -t hitags -> interpret as " _YELLOW_("HitagS") " communications\n"
|
||||||
"trace list -t lto -> interpret as " _YELLOW_("LTO-CM") " communications\n"
|
"trace list -t lto -> interpret as " _YELLOW_("LTO-CM") " communications\n"
|
||||||
"trace list -t cryptorf -> interpret as " _YELLOW_("CryptoRF") " communitcations\n"
|
"trace list -t cryptorf -> interpret as " _YELLOW_("CryptoRF") " communitcations\n"
|
||||||
"trace list -t mf -d <mfc_default_keys.dic> -> use dictionary keys file\n"
|
"trace list -t mf --dict <mfc_default_keys> -> use dictionary keys file\n"
|
||||||
"trace list -t 14a -f -> show frame delay times\n"
|
"trace list -t 14a -f -> show frame delay times\n"
|
||||||
"trace list -t 14a -1 -> use trace buffer "
|
"trace list -t 14a -1 -> use trace buffer "
|
||||||
);
|
);
|
||||||
|
@ -630,7 +630,7 @@ int CmdTraceList(const char *Cmd) {
|
||||||
arg_lit0("x", NULL, "show hexdump to convert to pcap(ng)\n"
|
arg_lit0("x", NULL, "show hexdump to convert to pcap(ng)\n"
|
||||||
" or to import into Wireshark using encapsulation type \"ISO 14443\""),
|
" or to import into Wireshark using encapsulation type \"ISO 14443\""),
|
||||||
arg_strx0("t", "type", NULL, "protocol to annotate the trace"),
|
arg_strx0("t", "type", NULL, "protocol to annotate the trace"),
|
||||||
arg_strx0("d", "dict", NULL, "use dictionary keys file"),
|
arg_strx0(NULL, "dict", "<file>", "use dictionary keys file"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||||
|
@ -648,8 +648,11 @@ int CmdTraceList(const char *Cmd) {
|
||||||
str_lower(type);
|
str_lower(type);
|
||||||
|
|
||||||
int diclen = 0;
|
int diclen = 0;
|
||||||
char dictionary[FILE_PATH_SIZE] = {0};
|
char dictionary[FILE_PATH_SIZE + 2] = {0};
|
||||||
CLIParamStrToBuf(arg_get_str(ctx, 8), (uint8_t *)dictionary, sizeof(dictionary), &diclen);
|
if (CLIParamStrToBuf(arg_get_str(ctx, 8), (uint8_t *)dictionary, FILE_PATH_SIZE, &diclen)) {
|
||||||
|
PrintAndLogEx(FAILED, "Dictionary file name too long or invalid.");
|
||||||
|
diclen = 0;
|
||||||
|
}
|
||||||
|
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue