Merge pull request #1427 from merlokk/hlp

setconfig help
This commit is contained in:
Oleg Moiseenko 2021-08-05 18:38:55 +03:00 committed by GitHub
commit 3609f8fb36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2557,8 +2557,20 @@ static int CmdHF14ADesSetConfiguration(const char *Cmd) {
CLIParserContext *ctx; CLIParserContext *ctx;
CLIParserInit(&ctx, "hf mfdes setconfig", CLIParserInit(&ctx, "hf mfdes setconfig",
"Set card configuration. WARNING! Danger zone! Needs to provide card's master key and works if not blocked by config.", "Set card configuration. WARNING! Danger zone! Needs to provide card's master key and works if not blocked by config.",
"hf mfdes setconfig --param 03 --data 0428 -> set parameter 03\n" "More about options MF2DLHX0.pdf. Options list:\n"
"hf mfdes setconfig --param 02 --data 0875778102637264 -> set parameter 02"); "00h PICC configuration.\n"
"02h ATS update.\n"
"03h SAK update\n"
"04h Secure Messaging Configuration.\n"
"05h Capability data. (here change for LRP in the Desfire Light)\n"
"06h DF Name renaming\n"
"08h File renaming\n"
"09h Value file configuration\n"
"0Ah Failed authentication counter setting\n"
"0Bh HW configuration\n"
"\n"
"hf mfdes setconfig --param 03 --data 0428 -> set SAK\n"
"hf mfdes setconfig --param 02 --data 0875778102637264 -> set ATS (first byte - length)");
void *argtable[] = { void *argtable[] = {
arg_param_begin, arg_param_begin,