Merge pull request #2544 from ANTodorov/patch-1

fix hf mfu pwdgen for 7 byte uid
This commit is contained in:
Iceman 2024-09-30 18:53:22 +03:00 committed by GitHub
commit 549388ed92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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]
- Fixed `hf mfu pwdgen` for the 7 byte UID (@ANTodorov)
- Added `hf iclass unhash` command to reverse an iclass diversified key to hash0 pre-images (@antiklesys)
- Added crypto1 support to `hf 14a raw` (@doegox)
- Changed `hw version` command to print LUA and Python versions (@jmichelp)

View file

@ -4392,7 +4392,7 @@ 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 {
} else if (u_len == 4) {
// adapt to 7 bytes :)
memset(uid + 4, 0x00, 3);
u_len = 7;