Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hf mfu pwdgen for 7 byte uid #2544

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

ANTodorov
Copy link
Contributor

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

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 <ANTodorov@users.noreply.github.com>
Copy link

You are welcome to add an entry to the CHANGELOG.md as well

add line for the `hf mfu pwdgen` fix

Signed-off-by: Anton Todorov <ANTodorov@users.noreply.github.com>
@iceman1001
Copy link
Collaborator

I believe the correct flow would be if uidlen == 4 then zero out and adapt uidlen.

@ANTodorov
Copy link
Contributor Author

ANTodorov commented Sep 30, 2024

It was my initial fix, but then I've saw that the uid is initialized with zeroes at the creation
So I thought there is no need to zero-out something that is already zero. tested with a 4 byte uid on the command line:

[usb] pm3 --> hf mfu pwdgen --uid 04CAB22A
[=] -----------------------------------
[=]  UID 4b... 04 CA B2 2A 
[=]  UID 7b... 04 CA B2 2A 00 00 00 
[=] -----------------------------------

If you prefer the exact check against 4-byte I'll push an update asap.

@ANTodorov
Copy link
Contributor Author

ah, uid len is not updated... I see yep. updating

Signed-off-by: Anton Todorov <ANTodorov@users.noreply.github.com>
@iceman1001 iceman1001 merged commit 549388e into RfidResearchGroup:master Sep 30, 2024
12 checks passed
@iceman1001
Copy link
Collaborator

Good catch!

@ANTodorov ANTodorov deleted the patch-1 branch September 30, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants