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

Changed hf iclass view/decrypt to detect SIO lengths better and show if legacy credentials are encrypted #2117

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

nvx
Copy link
Contributor

@nvx nvx commented Oct 4, 2023

It now does some super basic parsing of the ASN.1 to determine the length rather than pattern matching. I also feed this information into the block view to correctly highlight the SIO blocks rather than always assuming it's the same number of blocks.

I also added some bounds checking for safety and tweaked the legacy block display to show "HID CFG" for block 6, and "Enc Cred" if the legacy block is encrypted instead of just always showing "Cred".

This fixes the bug mentioned in discord where it would fail to show custom keyed SIOs correctly

@iceman1001 iceman1001 merged commit 720b692 into RfidResearchGroup:master Oct 4, 2023
12 checks passed
@iceman1001
Copy link
Collaborator

Excellent!

@nvx nvx deleted the improve_iclass_view branch October 4, 2023 10: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