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

Use .data instead of .got.plt in the heap heuristic #1381

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

lebr0nli
Copy link
Contributor

When libc has no symbols, to search the main_arena and mp_ in the memory, we will need to find which page is possible to have those symbols first.

Before this PR, we used .got.plt to determine it, but it might find wrong page in some cases. Using the address of .data should be a better solution.

Some failing test about heuristic found in the archlinux tests in #1378 should pass after this PR.

When libc has no symbols, to search the `main_arena` and `mp_` in the memory, we will need to find which page is possible to have those symbols first.

Before this commit, we used `.got.plt` to determine it, but it might fail in some cases. Using the address of `.data` should be a better solution.
@disconnect3d disconnect3d merged commit 3f4bced into pwndbg:dev Nov 15, 2022
@lebr0nli lebr0nli deleted the possible-page-bug branch June 7, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants