This adds some features to PEDA without modifying peda.py itself.
Works on Python 3 only.
- Patch
PEDA.read_int
andPEDA.write_int
. (These wasn't working properly on Python 3.) - Fixed an issue that PEDA fails to get pid while remote debugging.
- Add command
pdisasret
-- Dopdisass
until "ret" or "hlt" appears. Useful for stripped binaries.
- Add function
PEDA.read_string
-- DoPEDA.readmem
until null-byte appears.
After installing PEDA,
git clone https://github.com/Charo-IT/peda_extension.git ~/peda_extension
echo "source ~/peda_extension/peda_extension.py" >> ~/.gdbinit