2012-08-03 14:26:42 +08:00
|
|
|
peda
|
|
|
|
====
|
|
|
|
|
2013-06-03 17:18:23 +08:00
|
|
|
PEDA - Python Exploit Development Assistance for GDB
|
|
|
|
|
|
|
|
## Key Features:
|
2013-06-03 17:28:03 +08:00
|
|
|
* Enhance the display of gdb: colorize and display disassembly codes, registers, memory information during debugging.
|
|
|
|
* Add commands to support debugging and exploit development (for a full list of commands use `peda help`):
|
2013-06-03 17:18:23 +08:00
|
|
|
* `aslr` -- Show/set ASLR setting of GDB
|
|
|
|
* `checksec` -- Check for various security options of binary
|
|
|
|
* `dumpargs` -- Display arguments passed to a function when stopped at a call instruction
|
|
|
|
* `dumprop` -- Dump all ROP gadgets in specific memory range
|
|
|
|
* `elfheader` -- Get headers information from debugged ELF file
|
|
|
|
* `elfsymbol` -- Get non-debugging symbol information from an ELF file
|
|
|
|
* `lookup` -- Search for all addresses/references to addresses which belong to a memory range
|
|
|
|
* `patch` -- Patch memory start at an address with string/hexstring/int
|
|
|
|
* `pattern` -- Generate, search, or write a cyclic pattern to memory
|
|
|
|
* `procinfo` -- Display various info from /proc/pid/
|
|
|
|
* `pshow` -- Show various PEDA options and other settings
|
|
|
|
* `pset` -- Set various PEDA options and other settings
|
|
|
|
* `readelf` -- Get headers information from an ELF file
|
|
|
|
* `ropgadget` -- Get common ROP gadgets of binary or library
|
|
|
|
* `ropsearch` -- Search for ROP gadgets in memory
|
|
|
|
* `searchmem|find` -- Search for a pattern in memory; support regex search
|
|
|
|
* `shellcode` -- Generate or download common shellcodes.
|
|
|
|
* `skeleton` -- Generate python exploit code template
|
|
|
|
* `vmmap` -- Get virtual mapping address ranges of section(s) in debugged process
|
|
|
|
* `xormem` -- XOR a memory region with a key
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2019-12-23 19:53:27 +08:00
|
|
|
git clone https://github.com/not-duckie/peda.git /opt/peda
|
|
|
|
echo "source /opt/peda/peda.py" >> ~/.gdbinit
|
2013-06-03 17:18:23 +08:00
|
|
|
echo "DONE! debug your program with gdb and enjoy"
|
2019-12-23 19:53:27 +08:00
|
|
|
Note:
|
2019-12-23 19:56:07 +08:00
|
|
|
This is exaclty the clone of peda repositry by ![longld](https://github.com/longld/peda) but this one doesnt throw warning to
|
2019-12-23 19:53:27 +08:00
|
|
|
use == instead of is when using with python3.
|
2019-12-23 19:56:07 +08:00
|
|
|
I changed it as it was anonying and peda is a great project by ![longld](https://github.com/longld/peda) and above those warnings.
|
2013-06-03 17:18:23 +08:00
|
|
|
|
|
|
|
## Screenshot
|
|
|
|
![start](http://i.imgur.com/P1BF5mp.png)
|
|
|
|
|
|
|
|
![pattern arg](http://i.imgur.com/W97OWRC.png)
|
|
|
|
|
|
|
|
![patts](http://i.imgur.com/Br24IpC.png)
|