longld / peda

PEDA - Python Exploit Development Assistance for GDB
Other
5.87k stars 806 forks source link

handle syscall arguments in the dumpargs command #157

Open red0xff opened 3 years ago

red0xff commented 3 years ago

This pull-request was inspired by the issue #154 .

The enhancement

This makes the dumpargs command also dump the arguments of syscalls (when it encounters the syscall or int 0x80 instruction), I've added a syscall table for Linux x86 and x64 (from here), included the tables in peda.py.

x86 Linux:

32bit

x64 Linux:

64bit

Any suggestions for improvement are welcome.