From 4ffddb3c6d8ada267c03efa76bcbeba2dbd325af Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Sat, 21 Aug 2021 15:09:13 +0300 Subject: [PATCH] add hints --- client/src/cmdhfmfdes.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 98fca667e..3e62f5039 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -4147,7 +4147,9 @@ static int CmdHF14ADesValueOperations(const char *Cmd) { "Get File Settings from file from application. Master key needs to be provided or flag --no-auth set (depend on cards settings).", "hf mfdes value --aid 123456 --fid 01 -> get value app=123456, file=01 with defaults from `default` command\n" "hf mfdes value --aid 123456 --fid 01 --op credit -d 00000001 -> credit value app=123456, file=01 with defaults from `default` command\n" - "hf mfdes value -n 0 -t des -k 0000000000000000 -f none --aid 123456 --fid 01 -> get value with default factory setup"); + "hf mfdes value -n 0 -t des -k 0000000000000000 -f none --aid 123456 --fid 01 -> get value with default factory setup\n" + "hf mfdes val --appisoid df01 --fid 03 -s lrp -t aes -n 1 --op credit --d 00000001 -m encrypt -> credit value in the lrp encrypted mode\n" + "hf mfdes val --appisoid df01 --fid 03 -s lrp -t aes -n 1 --op get -m plain -> get value in plain (nevertheless of mode) works for desfire light (look SetConfiguration option 0x09)"); void *argtable[] = { arg_param_begin, @@ -4228,7 +4230,7 @@ static int CmdHF14ADesValueOperations(const char *Cmd) { return PM3_ESOFT; } if (verbose) - PrintAndLogEx(INFO, "Operation %s OK", CLIGetOptionListStr(DesfireValueFileOperOpts, op)); + PrintAndLogEx(INFO, "Operation %s " _GREEN_("OK"), CLIGetOptionListStr(DesfireValueFileOperOpts, op)); if (op == MFDES_GET_VALUE) { PrintAndLogEx(SUCCESS, "Value: " _GREEN_("%d (0x%08x)"), value, value); @@ -4241,7 +4243,7 @@ static int CmdHF14ADesValueOperations(const char *Cmd) { return PM3_ESOFT; } if (verbose) - PrintAndLogEx(INFO, "Commit OK"); + PrintAndLogEx(INFO, "Commit " _GREEN_("OK")); PrintAndLogEx(SUCCESS, "Value changed " _GREEN_("successfully")); }