Paxton Dump Refactor + Hitag2 read and write + Plugin Additions and Changes - #9
Merged
Conversation
Updated block handling to be page-aware, added progress checkpoints, and improved documentation.
Paxton dumps now contain 1-7 for allowing pax->ht2 cloning with older dumps still supporting pax->pax but not pax->ht2, you will need to re-dump your paxtons to write to ht2 to capture the full 1-7 blocks
Updated the lfsearch.py middleware to ensure the 'raw' field is set to an empty string intentionally for Hitag 2, preventing incorrect payload handling and allowing it to fallback to bundle which is expected.
Refactor verification logic for Hitag2 and Paxton types to improve clarity and correctness.
Update write_paxton_blocks and write_hitag2_blocks functions to improve documentation and logic for writing to Hitag2 and Paxton tags.
Updated LF_TYPES to include Hitag2 as writable. Adjusted unsupported types and raw clone parameters to reflect changes.
With this plugin comes Iceman and the comminity dictionaries t55xx_default_pwds.dic and mfc_default_keys.dic. With 3 options, 1 Load them onto the iCopy SD, 2 To add custom keys to either dictionary and 3 to make a backup the the dictionaries in keys/mf1 and keys/t55xx so you can keep your changes. This creates a new directory on the SD card called backup_dictionaries/N/ with N incrementing if another backup is created, 1 will however ALWAYS be the latest backup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paxton Dump Refactor + Hitag2 read and write + Plugin Refactor
With this PR comes Hitag2 to Hitag2 cloning as well as a refactor for Paxton dumps to now carry Blocks 1-7 so Paxton to Hitag2 now works also.
Important Note:
Paxton dumps now save blocks 1-7 to allow for pax->generic HT2 using the default HT2 password (4D494B52) and in password mode. Older paxton dumps only saving blocks 4-7 will work fine for pax->pax writes but will not work for pax->HT2 so you will need to re-dump your paxton tags if you wish you use them to write to a generic HT2. This also assumes the HT2 uses password mode only and not crypto mode and that it has the default HT2 password anything other than those two conditions being met will fail.
Older dumps total payload length is 32 characters, this is checked by paxton for the old dump fallback and to ensure it can not be passed to a HT2 (this is when pax->ht2 will fail as ht2 expects 56)
New dumps total payload length is 56 characters, this is also checked by paxton to ensure if the payload length meets 56 then it will allow pax->HT2)
Hitag2 Dump Contents:
Paxton Switch2 New Dump Contents:
Paxton Net2 New Dump Contents:
New Plugin: Manage Dictionaries
This was made to help solve the gap for users to get the Iceman t55xx default dictionary and mfc default dictionary onto the users SD card without needing for them to plug into the PC and doing so manually. I also included the options to add keys to either dictionary, as well as the option to back up those dictionaries onto the SD card at
backup_dictionaries/N/just in case. The dictionaries used can be located here from the Iceman Repository these are the current latest copies at the time of writing.The current dictionaries included are
t55xx_default_pwds.dicandmfc_default_keys.dicFeatures:
3 Selectable options
1. Load Dictionaries -> This will load the iceman dictionaries into their correct paths in
keysready for use with either plugins or the middleware.2. Add to Dictionary -> This allows you a to select a dictionary like MF1 keys (12 hex) or T55xx keys (8 hex) and add to the specific dictionary, it will append the comment
# iCopy-XS Added Keyinto the file when appending for better identification. This will get appended along with the keys to the end of the dictionaries.3. Backup Dictionaries -> This will create a new directory on the SD card called
backup_dictionariesfor every new backup created it will create a subdirbackup_dictionaries/N/where 1 will always be the latest copy of the dictionariesThis helps to solve the issues where a dictionary can be applied but has not been loaded onto the iCopy via PC-Mode.