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

Allow using GDB Python API (#1617) #1695

Merged
merged 3 commits into from
Nov 16, 2020
Merged

Allow using GDB Python API (#1617) #1695

merged 3 commits into from
Nov 16, 2020

Conversation

mephi42
Copy link
Contributor

@mephi42 mephi42 commented Oct 5, 2020

Pwntools Pull Request

This PR allows using GDB Python API (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html) from Pwntools scripts.

Testing

There are two new doctests for attach() and debug(); there is also a new example.

There are new PyLint failures, but I believe they are all false positives.

Target Branch

dev

Changelog

Added

@mephi42 mephi42 force-pushed the gdb-api branch 3 times, most recently from 8092876 to 5bd6cbe Compare October 5, 2020 19:52
@zachriggle
Copy link
Member

I'm down for including this as long as it does not break the standard mechanism of io = gdb.debug(...).

It looks like you return a tuple for when the API is enabled -- this should only happen if the API is enabled. I don't have time to review the full PR, just trying not to break compatibility.

@Arusekk Arusekk linked an issue Oct 27, 2020 that may be closed by this pull request
@mephi42
Copy link
Contributor Author

mephi42 commented Nov 16, 2020

I've battle-tested this PR last weekend at Balsn CTF, everything worked without issues.

Are there some changes required to have this merged?

@Arusekk Arusekk merged commit d466fa9 into Gallopsled:dev Nov 16, 2020
@mephi42 mephi42 deleted the gdb-api branch May 17, 2024 23:30
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.

Allow calling GDB Python API
3 participants