How To Set up Metasploitable on Windows in Virtual Box
June 24, 2017
To get started you will need Vagrant, Packer, and Virtualbox. Install these dependencies:
- Packer v1.0.0: https://www.packer.io/downloads.html
- Vagrant 1.9.1: https://releases.hashicorp.com/vagrant/1.9.1/
- Vagrant Reload Plugin v0.0.1: https://github.com/aidanns/vagrant-reload
- Virtualbox 5.1.14: https://www.virtualbox.org/wiki/Downloads
We recommend using these exact versions as the scripts were made for them.
Metasploitable on Windows – Install Vagrant reload plugin
Go to the directory in the command line to the directory where unpacked the Vagrant Reload plugin then run this command to install the Vagrant:
vagrant plugin install vagrant-reload
Metasploitable on Windows – Download Packer
The next step is to download Packer from the following download page:
Download the latest version of Packer and unpack it the Metasploitable 3 master directory. Storing the binary of Packer in the direct Metasploitable 3 directory allows easy execution for setup without setting up additional requirements. After you copy the Packer file to the Metasploitable 3 directory, you may set up the virtual machine.
Metasploitable on Windows – Creating the Metasploitable 3 VM
After all of the pre-requisites have been met, you can use Packer to setup the VM in Virtualbox. Move the command line to the Metasploitable 3 location and run the following command from an elevated command line:
packer build windows_2008_r2.json
vagrant box add windows_2008_r2_virtualbox.box –name=metasploitable3
The installation of Metasploitable 3 should now be done and you can use the VM.
Metasploitable on Windows – Booting Metasploitable 3
Now that you have completed the installation of Metasploitabl you may boot in in Virtualbox. The default username for the virtual machine is “vagrant” with password “vagrant”.