-
Notifications
You must be signed in to change notification settings - Fork 169
/
cyborg.rb
22 lines (19 loc) · 828 Bytes
/
cyborg.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
def instance(vconfig, custom)
vconfig.vm.define custom['name'], autostart: false do |cyborg|
cyborg.ssh.private_key_path = 'ssh-keys/pentest-env'
cyborg.ssh.username = 'root'
cyborg.vm.guest = :debian
cyborg.vm.box = 'Sliim/cyborg-essentials'
cyborg.vm.box_check_update = false
cyborg.vm.box_download_checksum_type = 'sha256'
cyborg.vm.box_download_checksum = 'd15384c2e10b8ede2893b045399e959f'\
'87fbf5ed8b152c7fd9f6bbc84fa8e33f'
cyborg.vm.synced_folder '.', '/vagrant', disabled: true
cyborg.vm.provider 'virtualbox' do |v|
v.gui = true
v.customize ['modifyvm', :id, '--name', "pentest-env-#{custom['name']}"]
v.customize ['modifyvm', :id, '--memory', 2048]
v.customize ['modifyvm', :id, '--vrde', 'off']
end
end
end