mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Use consistent shell variable style in puppet
This commit is contained in:
parent
42997519e1
commit
6843fe84b5
@ -4,20 +4,20 @@ functions:
|
|||||||
- description: The executed command output is not shown and can be redirected to a file.
|
- description: The executed command output is not shown and can be redirected to a file.
|
||||||
code: |
|
code: |
|
||||||
export CMD="/usr/bin/id"
|
export CMD="/usr/bin/id"
|
||||||
puppet apply -e "exec { '${CMD}': }"
|
puppet apply -e "exec { '$CMD': }"
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- description: The executed command output is not shown and can be redirected to a file.
|
- description: The executed command output is not shown and can be redirected to a file.
|
||||||
code: |
|
code: |
|
||||||
export CMD="/usr/bin/id"
|
export CMD="/usr/bin/id"
|
||||||
sudo puppet apply -e "exec { '${CMD}': }"
|
sudo puppet apply -e "exec { '$CMD': }"
|
||||||
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: |
|
||||||
export LFILE=file_to_read
|
export LFILE=file_to_read
|
||||||
puppet filebucket -l diff /dev/null ${LFILE}
|
puppet filebucket -l diff /dev/null $LFILE
|
||||||
file-write:
|
file-write:
|
||||||
- description: The file path must be absolute.
|
- description: The file path must be absolute.
|
||||||
code: |
|
code: |
|
||||||
export LFILE="/tmp/file_to_write"
|
export LFILE="/tmp/file_to_write"
|
||||||
puppet apply -e "file { '${LFILE}': content => 'data' }"
|
puppet apply -e "file { '$LFILE': content => 'data' }"
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user