mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
hf mfu pwdgen with 4byte uid should adapt to 7 byte
Signed-off-by: Anton Todorov <ANTodorov@users.noreply.github.com>
This commit is contained in:
@@ -4392,6 +4392,10 @@ 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 if (u_len == 4) {
|
||||
// adapt to 7 bytes :)
|
||||
memset(uid + 4, 0x00, 3);
|
||||
u_len = 7;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user