wget -q
http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- |
sudo apt-key add -
sudo apt-get update sudo apt-get install virtualbox-4.2 |
wget
http://download.virtualbox.org/virtualbox/4.2.12/Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack |
VBoxManage extpack install
--replace ./Oracle_VM_VirtualBox_Extension_Pack-4.1.6-74713.vbox-extpack |
VBoxManage createvm --name
"kali" --register
VBoxManage modifyvm "kali" --memory 512 --acpi on --boot1 dvd VBoxManage modifyvm "kali" --ostype Debian VBoxManage modifyvm "kali" --pae on |
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 -ip 10.10.10.1 -netmask 255.255.255.0 VBoxManage modifyvm "kali" --nic1 hostonly VBoxManage modifyvm "kali" --hostonlyadapter1 vboxnet0 |
VBoxManage createhd --filename
/virtuals/kali/kali.vdi --size 15000
VBoxManage storagectl "kali" --name "IDE Controller" --add ide VBoxManage storageattach "kali" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /virtuals/kali/kali.vdi VBoxManage storageattach "kali" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /virtuals/kali-linux-1.0.2-i386.iso |
VBoxHeadless --startvm "kali"
& |
VBoxManage modifyvm "kali" --dvd
none |
VBoxManage controlvm "kali"
poweroff |
auto eth0 iface eth0 inet static address 10.10.10.10 netmask 255.255.255.0 gateway 10.10.10.1 |
apt-get install qemu
qemu-img convert ./Metasploitable2-Linux/Metasploitable.vmdk ./msfable.bin VBoxManage convertdd ./msfable.bin ./msfable/msfable.vdi |
VBoxManage createvm --name
"msfable" --register
VBoxManage modifyvm "msfable" --memory 512 --acpi on VBoxManage modifyvm "msfable" --pae on VBoxManage modifyvm "msfable" --nic1 hostonly VBoxManage modifyvm "msfable" --hostonlyadapter1 vboxnet0 VBoxManage storagectl "msfable" --name "IDE Controller" --add ide VBoxManage storageattach "msfable" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /virtuals/msfable/msfable.vdi |
VBoxHeadless --startvm "msfable"
& VBoxManage controlvm "msfable" poweroff |
VBoxManage modifyvm "msfable"
--vrdeport 3390 |
auto eth0 iface eth0 inet static address 10.10.10.20 netmask 255.255.255.0 gateway 10.10.10.1 |