From 2e09354bbaa122f49806590244199d58e82b8e45 Mon Sep 17 00:00:00 2001 From: Ryan Saridar <8403417+VortixDev@users.noreply.github.com> Date: Thu, 8 Apr 2021 16:51:21 +0100 Subject: [PATCH 1/2] Fix RESTORE mis-annotation --- client/src/cmdhflist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhflist.c b/client/src/cmdhflist.c index 6a6d57fd7..baf60406d 100644 --- a/client/src/cmdhflist.c +++ b/client/src/cmdhflist.c @@ -228,7 +228,10 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) { snprintf(exp, size, "DEC(%d)", cmd[1]); break; case MIFARE_CMD_RESTORE: - snprintf(exp, size, "RESTORE(%d)", cmd[1]); + if (cmdsize == 4) + snprintf(exp, size, "RESTORE(%d)", cmd[1]); + else + return 0; break; case MIFARE_CMD_TRANSFER: snprintf(exp, size, "TRANSFER(%d)", cmd[1]); From 7aaa5c93417ec4cf26104b8167faca66e47f8ccf Mon Sep 17 00:00:00 2001 From: Ryan Saridar <8403417+VortixDev@users.noreply.github.com> Date: Thu, 8 Apr 2021 16:51:47 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd5926616..1823134ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Fix RESTORE mis-annotation (@VortixDev) - Changed `smart raw` - now uses NG (@iceman1001) - Added `hf iclass configcard` - now can download / generate config card dumps with a cardhelper [WIP] (@iceman1001) - Fix swapped DESELECT and WTX annotations (@VortixDev)