Skip to content

Create a metaclass for file format #803

@hugsy

Description

@hugsy

... That can be inherited from to support more file formats (PE, MachO) in a more elegant ways.

Some attributes would be required:

  • path : a pathlib.Path object to the file
  • entry_point : an int with the VA of the entry point
  • security_properties : a dict[str, any] that can be used for stuff like checksec

We could imagine a registration decorator or callback function for easier integration. ELF + Linux would be in this repo only, but more formats could be added to gef-extras

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions