From 12b0143f4649272843965848c6f91e40013d5cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=90=E6=AD=AA?= Date: Tue, 22 Sep 2026 22:51:14 +0800 Subject: [PATCH] fix: hf 15 cfinalize does not erase the tag memory The help text and the -y warning said finalize erases the whole tag memory to 00000000. A dump of a tag before and after finalize shows otherwise: the configuration blocks are cleared, but user data is relocated rather than erased. Data written to block 0x38 before finalize read back at block 0x20 afterwards. Co-Authored-By: Claude Opus 5 --- client/src/cmdhf15.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmdhf15.c b/client/src/cmdhf15.c index 08d297bf2..3bfa55a05 100644 --- a/client/src/cmdhf15.c +++ b/client/src/cmdhf15.c @@ -3466,8 +3466,8 @@ static int CmdHF15CFinalize(const char *Cmd) { CLIParserContext *ctx; CLIParserInit(&ctx, "hf 15 cfinalize", "Finalize a magic ISO15693 'V3' tag.\n" - _RED_("This operation is irreversible.") " Finalize erases the whole tag\n" - "memory to 00000000 and locks the UID for good. Set the UID with\n" + _RED_("This operation is irreversible.") " It locks the UID for good,\n" + "clears the configuration blocks and shifts the block numbering. Set it with\n" "`" _YELLOW_("hf 15 csetuid --v3") "` first, then lock it in with this command.", "hf 15 cfinalize -y" ); @@ -3482,7 +3482,7 @@ static int CmdHF15CFinalize(const char *Cmd) { CLIParserFree(ctx); if (confirmed == false) { - PrintAndLogEx(WARNING, _RED_("This operation is irreversible!") " Tag memory is erased and the UID locked."); + PrintAndLogEx(WARNING, _RED_("This operation is irreversible!") " The UID is locked and the blocks move."); PrintAndLogEx(WARNING, "Add " _YELLOW_("-y") " to confirm and proceed."); return PM3_EINVARG; }