diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index ae1b72ac1..dddfa98e4 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -2399,14 +2399,13 @@ static int CmdHFiClassCreditEpurse(const char *Cmd) { "Credit the epurse on an iCLASS tag. The provided key must be the credit key.\n" "The first two bytes of the epurse are the debit value (big endian) and may be any value except FFFF.\n" "The remaining two bytes of the epurse are the credit value and must be smaller than the previous value.", - "hf iclass creditepurse -d FEFFFFFF -k 001122334455667B\n" - "hf iclass creditepurse -d FEFFFFFF --ki 0"); + "hf iclass creditepurse --ki 0 -d FEFFFEFF"); void *argtable[] = { arg_param_begin, arg_str0("k", "key", "", "Credit key as 8 hex bytes"), arg_int0(NULL, "ki", "", "Key index to select key from memory 'hf iclass managekeys'"), - arg_str1("d", "data", "", "data to write as 8 hex bytes"), + arg_str1("d", "data", "", "data to write as 4 hex bytes"), arg_lit0(NULL, "elite", "elite computations applied to key"), arg_lit0(NULL, "raw", "no computations applied to key"), arg_lit0("v", "verbose", "verbose output"), @@ -3223,7 +3222,7 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { goto out; } - if (blockno == 1){ + if (blockno == 1) { read_auth = false; } diff --git a/doc/commands.json b/doc/commands.json index 3de531df8..4d678aaeb 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -3285,15 +3285,14 @@ "command": "hf iclass creditepurse", "description": "Credit the epurse on an iCLASS tag. The provided key must be the credit key. The first two bytes of the epurse are the debit value (big endian) and may be any value except FFFF. The remaining two bytes of the epurse are the credit value and must be smaller than the previous value.", "notes": [ - "hf iclass creditepurse -d FEFFFFFF -k 001122334455667B", - "hf iclass creditepurse -d FEFFFFFF --ki 0" + "hf iclass creditepurse --ki 0 -d FEFFFEFF" ], "offline": false, "options": [ "-h, --help This help", "-k, --key Credit key as 8 hex bytes", "--ki Key index to select key from memory 'hf iclass managekeys'", - "-d, --data data to write as 8 hex bytes", + "-d, --data data to write as 4 hex bytes", "--elite elite computations applied to key", "--raw no computations applied to key", "-v, --verbose verbose output", @@ -13355,6 +13354,6 @@ "metadata": { "commands_extracted": 767, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2025-05-24T19:13:03" + "extracted_on": "2025-05-25T12:38:36" } }