Created
October 18, 2014 14:01
-
-
Save alem0lars/1870a79bfd86856dcc3d to your computer and use it in GitHub Desktop.
The Vagrantfile for a Windows-based exploitation box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require "fileutils" | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "opentable/win-2012r2-standard-amd64-nocm" | |
config.vm.box_check_update = true | |
config.vm.network "private_network", ip: "10.0.20.101" | |
config.vm.guest = :windows | |
config.winrm.username = "Administrator" | |
config.winrm.password = "vagrant" | |
config.windows.set_work_network = true | |
# Port forward WinRM and RDP | |
config.vm.network :forwarded_port, guest: 3389, host: 3389 | |
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true | |
config.vm.synced_folder ".", "/vagrant_data" | |
config.vm.provider "virtualbox" do |vb| | |
# Don't boot with headless mode | |
vb.gui = false | |
# Use VBoxManage to customize the VM. For example to change memory: | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpus", "2"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment