Add puppet

This commit is contained in:
Roman Mueller 2018-06-02 14:29:54 +02:00
parent b3c405e2d5
commit 144e51b165

19
_gtfobins/puppet.md Normal file
View File

@ -0,0 +1,19 @@
---
functions:
execute-non-interactive:
- code: |
export CMD="/usr/bin/id"
puppet apply -e "exec { '${CMD}': }"
sudo-enabled:
- code: |
export CMD="/usr/bin/id"
sudo puppet apply -e "exec { '${CMD}': }"
file-read:
- code: |
export LFILE=file_to_read
puppet filebucket -l diff /dev/null ${LFILE}
file-write:
- code: |
export LFILE="/tmp/file_to_write"
puppet apply -e "file { '${LFILE}': content => 'data' }"
---