2016-08-30 17:53:02 +02:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2016-09-07 20:57:55 +02:00
|
|
|
# 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"
|
|
|
|
|
2016-10-29 01:39:36 +02:00
|
|
|
config.vm.network "private_network", type: "dhcp"
|
|
|
|
|
2016-08-30 17:53:02 +02:00
|
|
|
# Configure Firewall to open up vulnerable services
|
2016-11-08 22:02:26 +01:00
|
|
|
case ENV['MS3_DIFFICULTY']
|
|
|
|
when 'easy'
|
2016-10-28 23:04:22 +02:00
|
|
|
config.vm.provision :shell, path: "scripts/configs/disable_firewall.bat"
|
2016-11-08 22:02:26 +01:00
|
|
|
else
|
2017-05-11 22:21:54 +02:00
|
|
|
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
|
2016-10-08 08:12:11 +02:00
|
|
|
end
|