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

Parse more load_command in MachO files #5690

Open
4 tasks
seekbytes opened this issue Jul 4, 2024 · 0 comments
Open
4 tasks

Parse more load_command in MachO files #5690

seekbytes opened this issue Jul 4, 2024 · 0 comments
Labels
Component: BinaryViewType Effort: Trivial Issue should take < 1 day File Format: Mach-O Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality

Comments

@seekbytes
Copy link

seekbytes commented Jul 4, 2024

A mach-o binary is composed by an array of load commands that are parsed successfully by bninja. However there're some unique load command for which you don't implement any custom structure for.

This issue would propose:

  • create a custom structure 'dynamic' where you can include:
struct load_command __macho_load_command_[N] {
  enum load_command_type_t cmd = LC_SAMPLE;
  uint32_t cmdsize = 0x20  
  bytes buffer[cmdsize]
}

OR dedicate two/three days (or less, don't know how much time it would take) to document the most used load commands and write all the custom structs for it.

Current load commands not supported (bninja applies the default load_command structure):

@xusheng6 xusheng6 changed the title Include content bytes for the load_command Parse more load_command in MachO files Jul 8, 2024
@xusheng6 xusheng6 added Type: Enhancement Issue is a small enhancement to existing functionality File Format: Mach-O Impact: Low Issue is a papercut or has a good, supported workaround Effort: Low Issue should take < 1 week Component: BinaryViewType labels Jul 8, 2024
@0cyn 0cyn added Effort: Trivial Issue should take < 1 day and removed Effort: Low Issue should take < 1 week labels Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: BinaryViewType Effort: Trivial Issue should take < 1 day File Format: Mach-O Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants