From 01e57db5f175bba49f8cb987b5e8988b68a76de3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 27 May 2025 10:12:58 +0200 Subject: [PATCH] text --- client/src/cmdhficlass.c | 11 ++++++----- doc/commands.json | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 6ba663897..1a917c1a8 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -2958,7 +2958,8 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { CLIParserInit(&ctx, "hf iclass tear", "Tear off an iCLASS tag block\n" "e-purse usually 300-500us to trigger the erase phase\n" - "also seen 1800-2100us on some cards\n", + "also seen 1800-2100us on some cards\n" + "Make sure you know the target card credit key. Typical `--ki 1` or `--ki 3`\n", "hf iclass tear --blk 10 -d AAAAAAAAAAAAAAAA -k 001122334455667B -s 300 -e 600\n" "hf iclass tear --blk 10 -d AAAAAAAAAAAAAAAA --ki 0 -s 300 -e 600\n" "hf iclass tear --blk 2 -d fdffffffffffffff --ki 1 --credit -s 400 -e 500" @@ -3138,8 +3139,8 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { } if (pagemap == 0x0) { - PrintAndLogEx(WARNING, _RED_("No auth possible. Read only if RA is enabled")); - goto out; + PrintAndLogEx(WARNING, _RED_("No auth possible. Read only if RA is enabled")); + goto out; } bool read_auth = auth; @@ -3210,7 +3211,7 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { } if (tearoff_loop > 1) { - PrintAndLogEx(INPLACE, " Tear off delay "_YELLOW_("%u")" / "_YELLOW_("%d")" us - "_YELLOW_("%u")" loops", params.delay_us, (tearoff_end & 0xFFFF), loop_count + 1); + PrintAndLogEx(INPLACE, " Tear off delay "_YELLOW_("%u")" / "_YELLOW_("%d")" us - "_YELLOW_("%u")" loops ", params.delay_us, (tearoff_end & 0xFFFF), loop_count + 1); } else { PrintAndLogEx(INPLACE, " Tear off delay "_YELLOW_("%u")" / "_YELLOW_("%d")" us", params.delay_us, (tearoff_end & 0xFFFF)); } @@ -3347,7 +3348,7 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { // if more OTP bits set.. if (data_read[1] > data_read_orig[1] || - data_read[2] > data_read_orig[2]) { + data_read[2] > data_read_orig[2]) { PrintAndLogEx(SUCCESS, "More OTP bits got set!!!"); isok = PM3_SUCCESS; } diff --git a/doc/commands.json b/doc/commands.json index 4d678aaeb..8f43d716a 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -3718,7 +3718,7 @@ }, "hf iclass tear": { "command": "hf iclass tear", - "description": "Tear off an iCLASS tag block e-purse usually 300-500us to trigger the erase phase also seen 1800-2100us on some cards", + "description": "Tear off an iCLASS tag block e-purse usually 300-500us to trigger the erase phase also seen 1800-2100us on some cards Make sure you know the target card credit key. Typical `--ki 1` or `--ki 3`", "notes": [ "hf iclass tear --blk 10 -d AAAAAAAAAAAAAAAA -k 001122334455667B -s 300 -e 600", "hf iclass tear --blk 10 -d AAAAAAAAAAAAAAAA --ki 0 -s 300 -e 600", @@ -13354,6 +13354,6 @@ "metadata": { "commands_extracted": 767, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2025-05-25T12:38:36" + "extracted_on": "2025-05-27T08:11:15" } }