forked from Sliim/pentest-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
55 lines (45 loc) · 1.84 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
# This source file is part of pentest-env.
#
# pentest-env is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pentest-env is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with pentest-env. If not, see <http://www.gnu.org/licenses/gpl-3.0.html>.
require 'rbconfig'
require File.expand_path('lib/pentestenv/customization')
customdir = "custom"
if Dir.exists?(ENV['HOME'] + "/.pentest-env")
customdir = ENV['HOME'] + "/.pentest-env"
end
Vagrant::configure('2') do | config |
config.ssh.forward_agent = true
config.vm.define :kali do | kali |
kali.ssh.private_key_path = "ssh-keys/kali-1.0"
kali.ssh.username = "root"
kali.vm.box = "kali-1.0.4-amd64"
kali.vm.box_url = "http://ftp.sliim-projects.eu/boxes/kali-linux-1.0.4-amd64.box"
kali.vm.network :public_network
kali.vm.network :private_network, ip: "192.168.107.145"
kali.vm.provider "virtualbox" do |v|
v.gui = true
v.customize ["modifyvm", :id, "--name", "pentest-env-kali-1.0"]
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--macaddress3", "0800276cf835"]
end
#Running kali customizations
customization = Pentestenv::Customization.new(customdir, kali)
customization.packages
customization.synced_folders
customization.scripts
end
#Running targets customizations
customization = Pentestenv::Customization.new(customdir, config)
customization.targets
end