From 8d3e301b55bbeb828634cb406bc1636b426bd61f Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Sun, 25 May 2025 20:36:35 +0800 Subject: [PATCH] Updated hf iclass tear to not run if the authentication fuses are blown Updated hf iclass tear to not run if the authentication fuses are blown. Or it will just get stuck at the beginning and not start anyway. At least this informs the users why this is happening. --- client/src/cmdhficlass.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index ae1b72ac1..53afe888d 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -3137,6 +3137,11 @@ static int CmdHFiClass_TearBlock(const char *Cmd) { auth = false; } + if (pagemap == 0x0) { + PrintAndLogEx(WARNING, _RED_("No auth possible. Read only if RA is enabled")); + goto out; + } + bool read_auth = auth; // perform initial read here, repeat if failed or 00s