Skip to content

Instantly share code, notes, and snippets.

@robertobarreda
Last active July 3, 2020 07:16
Show Gist options
  • Save robertobarreda/444f0b8abb4d4587f0f58ebadc48a48b to your computer and use it in GitHub Desktop.
Save robertobarreda/444f0b8abb4d4587f0f58ebadc48a48b to your computer and use it in GitHub Desktop.
JEDI SI PAC3 (Web Vulnerabilities)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.network "forwarded_port", guest: 9090, host: 9090
# config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.memory = "256"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update && apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y git build-essential nodejs=8.17.0-1nodesource1
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt-get update && apt-get install yarn
git clone https://github.com/appsecco/dvna.git -b sqlite /home/vagrant/dvna
chown -R vagrant:vagrant /home/vagrant/dvna
cd /home/vagrant/dvna
yarn install
SHELL
end
@robertobarreda
Copy link
Author

$ vagrant up
$ vagrant ssh -c "cd dvna; yarn start"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment