mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-10-21 21:05:11 +02:00
Fix YAMLs according to YAMLlint
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
---
|
||||
functions:
|
||||
execute-non-interactive:
|
||||
- description: The executed command output shown in the puppet log format.
|
||||
code: |
|
||||
export CMD="/usr/bin/id"
|
||||
puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||
- description: The executed command output shown in the puppet log format.
|
||||
code: |
|
||||
export CMD="/usr/bin/id"
|
||||
puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||
file-write:
|
||||
- description: The file path must be absolute.
|
||||
code: |
|
||||
export LFILE="/tmp/file_to_write"
|
||||
puppet apply -e "file { '$LFILE': content => 'data' }"
|
||||
- description: The file path must be absolute.
|
||||
code: |
|
||||
export LFILE="/tmp/file_to_write"
|
||||
puppet apply -e "file { '$LFILE': content => 'data' }"
|
||||
file-read:
|
||||
- description: The read file content is corrupted by the `diff` output format. The
|
||||
actual `/usr/bin/diff` command is executed.
|
||||
code: |
|
||||
export LFILE=file_to_read
|
||||
puppet filebucket -l diff /dev/null $LFILE
|
||||
- description: The read file content is corrupted by the `diff` output format. The actual `/usr/bin/diff` command is executed.
|
||||
code: |
|
||||
export LFILE=file_to_read
|
||||
puppet filebucket -l diff /dev/null $LFILE
|
||||
sudo-enabled:
|
||||
- description: The executed command output shown in the puppet log format.
|
||||
code: |
|
||||
export CMD="/usr/bin/id"
|
||||
sudo puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||
- description: The executed command output shown in the puppet log format.
|
||||
code: |
|
||||
export CMD="/usr/bin/id"
|
||||
sudo puppet apply -e "exec { '$CMD': logoutput => true }"
|
||||
---
|
||||
|
Reference in New Issue
Block a user