Merge pull request #46 from lebr0nli/update_pwndbg_support Update pwndbg support
Merge pull request #46 from lebr0nli/update_pwndbg_support
Update pwndbg support
GDB for pwn.
cd ~/ git clone https://github.com/scwuaptx/Pwngdb.git cp ~/Pwngdb/.gdbinit ~/
If you dont want to use gdb-peda , you can modify the gdbinit to remove it.
If you only want to install with pwndbg, see pwndbg/README.md
If you want to use the feature of heapinfo and tracemalloc , you need to install libc debug file (libc6-dbg & libc6-dbg:i386 for debian package)
libc
ld
codebase
heap
got
dyn
findcall
bcall
tls
at
findsyscall
fmtarg
force
heapinfo
heapinfoall
arenainfo
chunkinfo
chunkptr
mergeinfo
printfastbin
tracemalloc on
DEBUG
parseheap
magic
fp
fpchain
orange
house of orange
_IO_flush_lockp
Pwngdb
GDB for pwn.
Install
install
If you dont want to use gdb-peda , you can modify the gdbinit to remove it.
pwndbg
If you only want to install with pwndbg, see pwndbg/README.md
Heapinfo
If you want to use the feature of heapinfo and tracemalloc , you need to install libc debug file (libc6-dbg & libc6-dbg:i386 for debian package)
Features
libc
: Print the base address of libcld
: Print the base address of ldcodebase
: Print the base of code segmentheap
: Print the base of heapgot
: Print the Global Offset Table infomationdyn
: Print the Dynamic section infomationfindcall
: Find some function callbcall
: Set the breakpoint at some function calltls
: Print the thread local storage addressat
: Attach by process namefindsyscall
: Find the syscallfmtarg
: Calculate the index of format stringforce
: Calculate the nb in the house of force.heapinfo
: Print some infomation of heapheapinfoall
: Print some infomation of heap (all threads)arenainfo
: Print some infomation of all arenachunkinfo
: Print the infomation of chunkchunkptr
: Print the infomation of chunkmergeinfo
: Print the infomation of mergeprintfastbin
: Print some infomation of fastbintracemalloc on
: Trace the malloc and free and detect some error .tracemalloc on
, it will record all of the malloc and free.DEBUG
in pwngdb.py , than it will print all of the malloc and free infomation such as the screeshot.parseheap
: Parse heap layoutmagic
: Print useful variable and function in glibcfp
: show FILE structurefpchain
: show linked list of FILEorange
: Testhouse of orange
condition in the_IO_flush_lockp
Screenshot