Files
GTFOBins.github.io/_gtfobins/puppet.md
2018-06-03 10:30:07 +02:00

812 B

functions
functions
execute-non-interactive sudo-enabled file-read file-write
description code
The executed command output is not shown and can be redirected to a file. export CMD="/usr/bin/id" puppet apply -e "exec { '$CMD': }"
description code
The executed command output is not shown and can be redirected to a file. export CMD="/usr/bin/id" sudo puppet apply -e "exec { '$CMD': }"
description code
The read file content is corrupted by the `diff` output format. export LFILE=file_to_read puppet filebucket -l diff /dev/null $LFILE
description code
The file path must be absolute. export LFILE="/tmp/file_to_write" puppet apply -e "file { '$LFILE': content => 'data' }"