From 77edd09b0780ed8d01295b0469cc98c7ed76a4ee Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 3 Jun 2018 10:58:39 +0200 Subject: [PATCH] Add output to puppet execute functions --- _gtfobins/puppet.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_gtfobins/puppet.md b/_gtfobins/puppet.md index 6370cef..9ac0609 100644 --- a/_gtfobins/puppet.md +++ b/_gtfobins/puppet.md @@ -1,15 +1,15 @@ --- functions: execute-non-interactive: - - description: The executed command output is not shown and can be redirected to a file. + - description: The executed command output shown in the puppet log format. code: | export CMD="/usr/bin/id" - puppet apply -e "exec { '$CMD': }" + puppet apply -e "exec { '$CMD': logoutput => true }" sudo-enabled: - - description: The executed command output is not shown and can be redirected to a file. + - description: The executed command output shown in the puppet log format. code: | export CMD="/usr/bin/id" - sudo puppet apply -e "exec { '$CMD': }" + sudo puppet apply -e "exec { '$CMD': logoutput => true }" file-read: - description: The read file content is corrupted by the `diff` output format. code: |