From ae93b28d7ecb68d7f1c1792631f6c47da5f80005 Mon Sep 17 00:00:00 2001 From: tcprst Date: Sat, 28 Nov 2020 19:59:30 -0500 Subject: [PATCH] hf mfp info - now use cliparser --- client/src/cmdhfmfp.c | 10 ++++++++++ doc/cliparser_todo.txt | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhfmfp.c b/client/src/cmdhfmfp.c index 1f0d47ae5..46d7bf0cf 100644 --- a/client/src/cmdhfmfp.c +++ b/client/src/cmdhfmfp.c @@ -266,7 +266,17 @@ static int get_plus_version(uint8_t *version, int *version_len) { } static int CmdHFMFPInfo(const char *Cmd) { + CLIParserContext *ctx; + CLIParserInit(&ctx, "hf mfp info", + "Get info from MIFARE Plus tags", + "hf mfp info"); + void *argtable[] = { + arg_param_begin, + arg_param_end + }; + CLIExecWithReturn(ctx, Cmd, argtable, true); + PrintAndLogEx(NORMAL, ""); PrintAndLogEx(INFO, "--- " _CYAN_("Tag Information") " ---------------------------"); PrintAndLogEx(INFO, "-------------------------------------------------------------"); diff --git a/doc/cliparser_todo.txt b/doc/cliparser_todo.txt index e1facf7da..fee237c59 100644 --- a/doc/cliparser_todo.txt +++ b/doc/cliparser_todo.txt @@ -139,7 +139,6 @@ hf mf gen3uid hf mf gen3blk hf mf gen3freeze hf mf ice -hf mfp info hf mfu info hf mfu dump hf mfu restore