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

Try extending the ELF code segment in vibes-patch #242

Merged
merged 16 commits into from
Dec 5, 2022

Conversation

bmourad01
Copy link
Contributor

As an alternative to the user-provided external patch spaces, it turns out that we can do a minimally-invasive edit to the program header entry of the main code segment, i.e. simply extending its size. The inspiration came from this Binary Ninja plugin I found: https://github.com/jeffli678/bnhook/blob/master/hookmanager.py#L76

I've observed that there is a decent amount of space between the end of the code segment and the next segment that gets loaded into memory (usually the data segment). The biggest surprise to me is that this technique actually works for how simple it is.

@bmourad01 bmourad01 marked this pull request as ready for review December 5, 2022 18:58
@bmourad01 bmourad01 merged commit eac697f into main Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant