From 07337549685a3e32165c502a2eb45da64e87be86 Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Mon, 30 Sep 2024 16:25:00 +0300 Subject: [PATCH] fix hf mfu pwdgen for 7 byte uid The last 3 bytes of the 7 byte uid are zeroed out Tested with the example from the forum http://www.proxmark.org/forum/viewtopic.php?pid=44238#p44238 Signed-off-by: Anton Todorov --- client/src/cmdhfmfu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 6f7c9cdfa..d56ae5123 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -4392,10 +4392,6 @@ static int CmdHF14AMfUPwdGen(const char *Cmd) { if (u_len != 7 && u_len != 4) { PrintAndLogEx(WARNING, "Key must be 7 hex bytes"); return PM3_EINVARG; - } else { - // adapt to 7 bytes :) - memset(uid + 4, 0x00, 3); - u_len = 7; } }