add hints

This commit is contained in:
merlokk 2021-08-21 15:09:13 +03:00
parent 3d82da8ebe
commit 4ffddb3c6d

View file

@ -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"));
}