Skip to content

Commit

Permalink
Merge pull request #2544 from ANTodorov/patch-1
Browse files Browse the repository at this point in the history
fix hf mfu pwdgen for 7 byte uid
  • Loading branch information
iceman1001 authored Sep 30, 2024
2 parents 71c86f4 + 26fe583 commit 549388e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/src/cmdhfmfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 549388e

Please sign in to comment.