How To Vulnhub with VirtualBox
Last updated
# Start DHCP Server (Windows)
PS > cd 'C:\Program Files\Oracle\VirtualBox\'
PS > .\VBoxManage.exe dhcpserver add --netname penlabnetwork --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enable
# To Restart (Windows)
PS > .\VBoxManage.exe dhcpserver restart --network=penlabnetwork
# Start DHCP Server (Linux)
$ vboxmanage dhcpserver add β netname test-network β ip 10.10.10.1 β netmask 255.255.255.0 β lowerip 10.10.10.2 β upperip 10.10.10.12 β enableauto eth0
iface eth0 inet static
address 10.0.0.1 # new static IP
netmask 255.255.255.0sudo ifup eth0
sudo service networking restart$ echo "10.0.0.6 dc-2" >> /etc/hosts
$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 kali
...
10.10.10.133 onetwoseven.htb
10.0.0.6 dc-2PS C:\Program Files (x86)\VMware\VMware Player\OVFTool> ./ovftool "C:\Users\<user>\VMWare VMs\Kioptix Level 1\Kioptix Level 1.vmx" "C:\Users\<user>\VirtualBox VMs\Kioptix Level 1.ovf"