WIP: iOS 18.0 support#1
Draft
gilboz wants to merge 3 commits into
Draft
Conversation
- Make `SandboxData` class abstract in order to make it extendable, prep work to extend for iOS 18 format
- Provide richer API to the `SandboxData` object (`read_short`, `read_string`, `read_binary`, ...) which makes the code easier to write and understand
- Removed `parse_profile` method and instead you can create a new instance of `SandboxData` by providing it an input file..
- Moved `display_sandbox_profile` to a method of `SandboxData` (and make it actually print its findings..)
- Main logic is now borken into `SandboxData.parse_common` and
`SandboxData.decompile`
- Got rid of `read_sandbox_operations` method, this is now handled in `parse_args` method..
- Better order of operations (regex list parsing only if the mode is not `-psb`)
- Code cleanup for unused imports and variables, make the code more modern by adding type hinting (gradually..) and making better us of argparse usage (e.g. using type=argparse.FileType to open files)
- This code was already tested and found working against sandbox blobs dumped from iOS 17.X
kernelcaches..
…beta, the autobox collection seems to work but not the main collection
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.
SandboxDataclass abstract in order to make it extendable, prep work to extend for iOS 18 format - Provide richer API to theSandboxDataobject (read_short,read_string,read_binary, ...) which makes the code easier to write and understand - Removedparse_profilemethod and instead you can create a new instance ofSandboxDataby providing it an input file.. - Moveddisplay_sandbox_profileto a method ofSandboxData(and make it actually print its findings..) - Main logic is now borken intoSandboxData.parse_commonandSandboxData.decompileread_sandbox_operationsmethod, this is now handled inparse_argsmethod..-psb)