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

Create a metaclass for file format #803

Closed
hugsy opened this issue Jan 25, 2022 · 0 comments
Closed

Create a metaclass for file format #803

hugsy opened this issue Jan 25, 2022 · 0 comments

Comments

@hugsy
Copy link
Owner

hugsy commented Jan 25, 2022

... 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

Repository owner locked and limited conversation to collaborators Jan 25, 2022
@hugsy hugsy converted this issue into a discussion Jan 25, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant