diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index f2282dbfd..f5222fb9a 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -2256,7 +2256,17 @@ static int desfire_authenticate(int cmdAuthMode, int cmdAuthAlgo, uint8_t *aid, } static int CmdHF14ADesGetUID(const char *Cmd) { - (void)Cmd; + CLIParserContext *ctx; + CLIParserInit(&ctx, "hf mfdes getuid", + "Get UID from a MIFARE DESfire tag", + "hf mfdes getuid"); + + void *argtable[] = { + arg_param_begin, + arg_param_end + }; + CLIExecWithReturn(ctx, Cmd, argtable, true); + CLIParserFree(ctx); uint8_t uid[16] = {0}; int res = handler_desfire_getuid(uid); @@ -3438,7 +3448,18 @@ static int CmdHF14ADesFormatPICC(const char *Cmd) { } static int CmdHF14ADesInfo(const char *Cmd) { - (void)Cmd; // Cmd is not used so far + CLIParserContext *ctx; + CLIParserInit(&ctx, "hf mfdes info", + "Get info from MIFARE DESfire tags", + "hf mfdes info"); + + void *argtable[] = { + arg_param_begin, + arg_param_end + }; + CLIExecWithReturn(ctx, Cmd, argtable, true); + CLIParserFree(ctx); + DropFieldDesfire(); mfdes_info_res_t info; @@ -3862,8 +3883,18 @@ static int CmdHF14ADesDump(const char *Cmd) { } static int CmdHF14ADesEnumApplications(const char *Cmd) { + CLIParserContext *ctx; + CLIParserInit(&ctx, "hf mfdes enum", + "Enumerate all AID's on MIFARE DESfire tag", + "hf mfdes enum"); + + void *argtable[] = { + arg_param_begin, + arg_param_end + }; + CLIExecWithReturn(ctx, Cmd, argtable, true); + CLIParserFree(ctx); - (void)Cmd; // Cmd is not used so far DropFieldDesfire(); uint8_t aid[3] = {0}; diff --git a/doc/cliparser_todo.txt b/doc/cliparser_todo.txt index c3c81c2e7..785553240 100644 --- a/doc/cliparser_todo.txt +++ b/doc/cliparser_todo.txt @@ -102,7 +102,6 @@ hf mf gen3uid hf mf gen3blk hf mf gen3freeze hf mf ice -hf mfdes getuid lf config lf cmdread lf read