forked from R3dy/capsulecorp-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
74 lines (62 loc) · 2.41 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.synced_folder '.', '/vagrant', disabled: true
#winsrv = "StefanScherer/windows_2019"
winsrv = "gusztavvargadr/windows-server"
winwks = "royce/capsulecorp-win7"
vms = [{name: "goku", ip: "192.168.56.100", box: winsrv},
{name: "vegeta", ip: "192.168.56.110", box: winsrv},
{name: "gohan", ip: "192.168.56.120", box: winsrv},
{name: "trunks", ip: "192.168.56.130", box: winsrv},
{name: "raditz", ip: "192.168.56.150", box: winsrv},
{name: "tien", ip: "192.168.56.140", box: winwks}]
vms.each do |vm|
config.vm.define vm[:name] do |box|
box.vm.box = vm[:box]
box.vm.hostname = vm[:name]
box.vm.box_check_update = false
box.winrm.transport = :plaintext
box.winrm.basic_auth_only = true
box.vm.communicator = "winrm"
box.vm.network :private_network, ip: vm[:ip], netmask: "255.255.0.0", gateway: "192.168.56.1"
box.vm.provider "hyperv" do |hv|
hv.vmname = "ccpt_#{vm[:name]}"
hv.cpus = 2
hv.enable_enhanced_session_mode = true
end
box.vm.provider "virtualbox" do |vb, override|
vb.gui = false
vb.name = "ccpt_#{vm[:name]}"
vb.customize ["modifyvm", :id, "--memory", 1024]
vb.customize ["modifyvm", :id, "--cpus", 1]
vb.customize ["modifyvm", :id, "--vram", 32]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all"]
end
box.vm.provision "ansible" do |ansible|
ansible.playbook = "#{vm[:name]}.yml"
end
end
end
config.vm.define "pentest" do |box|
box.vm.box = "elrey741/kali-linux_amd64"
box.vm.network "private_network", ip: "192.168.56.200", netmask: "255.255.0.0", gateway: "192.168.56.1"
box.vm.hostname = "pentest"
box.vm.box_check_update = false
box.vm.provider "virtualbox" do |vb, override|
vb.gui = false
vb.memory = "2048"
vb.name = "ccpt_pentest"
end
box.vm.provider "hyperv" do |hv|
hv.vmname = "ccpt_pentest"
hv.cpus = 2
hv.enable_enhanced_session_mode = true
end
end
end