From 6843fe84b5303b116dce0215472100d541071ea6 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 3 Jun 2018 10:30:07 +0200 Subject: [PATCH] Use consistent shell variable style in puppet --- _gtfobins/puppet.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_gtfobins/puppet.md b/_gtfobins/puppet.md index e8f553f..6370cef 100644 --- a/_gtfobins/puppet.md +++ b/_gtfobins/puppet.md @@ -4,20 +4,20 @@ functions: - description: The executed command output is not shown and can be redirected to a file. code: | export CMD="/usr/bin/id" - puppet apply -e "exec { '${CMD}': }" + puppet apply -e "exec { '$CMD': }" sudo-enabled: - description: The executed command output is not shown and can be redirected to a file. code: | export CMD="/usr/bin/id" - sudo puppet apply -e "exec { '${CMD}': }" + sudo puppet apply -e "exec { '$CMD': }" file-read: - description: The read file content is corrupted by the `diff` output format. code: | export LFILE=file_to_read - puppet filebucket -l diff /dev/null ${LFILE} + puppet filebucket -l diff /dev/null $LFILE file-write: - description: The file path must be absolute. code: | export LFILE="/tmp/file_to_write" - puppet apply -e "file { '${LFILE}': content => 'data' }" + puppet apply -e "file { '$LFILE': content => 'data' }" ---