mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add output to puppet execute functions
This commit is contained in:
parent
6843fe84b5
commit
77edd09b07
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
execute-non-interactive:
|
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: |
|
code: |
|
||||||
export CMD="/usr/bin/id"
|
export CMD="/usr/bin/id"
|
||||||
puppet apply -e "exec { '$CMD': }"
|
puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||||
sudo-enabled:
|
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: |
|
code: |
|
||||||
export CMD="/usr/bin/id"
|
export CMD="/usr/bin/id"
|
||||||
sudo puppet apply -e "exec { '$CMD': }"
|
sudo puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||||
file-read:
|
file-read:
|
||||||
- description: The read file content is corrupted by the `diff` output format.
|
- description: The read file content is corrupted by the `diff` output format.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user