Merge pull request #1130 from tcprst/fido_cliparser

hf fido info - now use cliparser
This commit is contained in:
Iceman 2020-12-23 02:34:22 +01:00 committed by GitHub
commit 0551f1b7c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -48,10 +48,18 @@ static int cmd_hf_fido_list(const char *Cmd) {
return CmdTraceList(args);
}
static int cmd_hf_fido_info(const char *cmd) {
static int cmd_hf_fido_info(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "hf fido info",
"Get info from Fido tags",
"hf fido info");
if (cmd && strlen(cmd) > 0)
PrintAndLogEx(WARNING, "WARNING: command doesn't have any parameters.\n");
void *argtable[] = {
arg_param_begin,
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
// info about 14a part
infoHF14A(false, false, false);

View file

@ -73,7 +73,6 @@ hf felica rqspecver
hf felica resetmode
hf felica litesim
hf felica litedump
hf fido info
hf mf darkside
hf mf nested
hf mf hardnested