1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-20 10:53:35 +02:00
GTFOBins.github.io/_gtfobins/puppet.md
2018-08-20 15:00:34 +02:00

868 B

functions
execute-non-interactive file-write file-read sudo-enabled
description code
The executed command output shown in the puppet log format. export CMD="/usr/bin/id" puppet apply -e "exec { '$CMD': logoutput => true }"
description code
The file path must be absolute. export 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. export LFILE=file_to_read puppet filebucket -l diff /dev/null $LFILE
description code
The executed command output shown in the puppet log format. export CMD="/usr/bin/id" sudo puppet apply -e "exec { '$CMD': logoutput => true }"