Files

26 lines
424 B
Plaintext

---
functions:
file-read:
- code: |-
mawk '//' /path/to/input-file
contexts:
sudo:
suid:
unprivileged:
file-write:
- code: |-
mawk 'BEGIN { print "DATA" > "/path/to/output-file" }'
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
mawk 'BEGIN {system("/bin/sh")}'
contexts:
sudo:
suid:
shell: true
unprivileged:
...