metasploitable3/Vagrantfile

21 lines
639 B
Ruby
Raw Normal View History

2016-08-30 17:53:02 +02:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Base configuration for the VM and provisioner
2016-08-30 17:53:02 +02:00
config.vm.box = "metasploitable3"
config.vm.hostname = "metasploitable3"
config.vm.communicator = "winrm"
config.vm.network "private_network", type: "dhcp"
2016-08-30 17:53:02 +02:00
# Configure Firewall to open up vulnerable services
case ENV['MS3_DIFFICULTY']
when 'easy'
2016-10-28 23:04:22 +02:00
config.vm.provision :shell, path: "scripts/configs/disable_firewall.bat"
else
config.vm.provision :shell, path: "scripts/configs/enable_firewall.bat"
2016-10-28 23:04:22 +02:00
config.vm.provision :shell, path: "scripts/configs/configure_firewall.bat"
end
end