From 235d920b52a62b07573a301a5f170df175ad1221 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 10 Oct 2020 17:20:43 +0200 Subject: [PATCH] em 4x05_dump: indication of active PW closer to reality --- client/src/cmdlfem4x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdlfem4x.c b/client/src/cmdlfem4x.c index 6dd661a65..bd9e9989f 100644 --- a/client/src/cmdlfem4x.c +++ b/client/src/cmdlfem4x.c @@ -1013,7 +1013,7 @@ static int CmdEM4x05Dump(const char *Cmd) { if (status14 == PM3_SUCCESS) { if (!usePwd) needReadPwd = false; - if (word != 0x00) { + if ((word & 0x00008000) != 0x00) { lock_bits = word; gotLockBits = true; } @@ -1023,7 +1023,7 @@ static int CmdEM4x05Dump(const char *Cmd) { } status15 = EM4x05ReadWord_ext(15, pwd, usePwd, &word); if (status15 == PM3_SUCCESS) { - if (word != 0x00) { // assume block 15 is the current lock block + if ((word & 0x00008000) != 0x00) { // assume block 15 is the current lock block lock_bits = word; gotLockBits = true; lockInPW2 = true;