ndrewh / pyda

Write simple dynamic binary analysis tools in Python
5 stars 0 forks source link

feat: heap #9

Closed ndrewh closed 1 week ago

ndrewh commented 3 weeks ago

something like https://github.com/libdebug/libdebug/pull/53

or... we could just write a libdebug DebugInterface and patch it in to libdebug lmfao 😉

ndrewh commented 3 weeks ago

Or, probably better, we make some hacks so you can use all the GEF or pwndbg tools

https://github.com/hugsy/gef/blob/0ca807ba2144d201c0c59b3b500560517b9ed50a/gef.py#L1317 https://github.com/pwndbg/pwndbg/blob/6e6583f5aeeeddf1e52d8a34aa5d32d0a803ad75/pwndbg/heap/structs.py#L178

... i think it should be possible to just patch the corresponding globals to use a version that uses our memory/register interface

ndrewh commented 3 weeks ago

(cuz i sure as hell ain't re-implementing existing heap tools)

ndrewh commented 1 week ago

Fixed in 45a6478

https://github.com/ndrewh/pyda/blob/master/examples/heap.py