How To Set up Metasploitable on Windows in Virtual Box

Set up Metasploitable on Windows in Virtual Box

 

To get started you will need  Vagrant, Packer, and Virtualbox. Install these dependencies:

 

 

 

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

1 Install vagrant-reload

How To Set up Metasploitable on Windows in Virtual Box – 1 Install vagrant-reload

After Vagrant, continue with downloading Packer.

Metasploitable on Windows – Download Packer

The next step is to download Packer from the following download page:

https://www.packer.io/downloads.html

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

Build Metasploitable 3 with Packer

How To Set up Metasploitable on Windows in Virtual Box – Build Metasploitable 3 with Packer

Building the VM will take a while so be patient.

Build Metasploitable 3 with Packer finished

Build Metasploitable 3 with Packer – Build Metasploitable 3 once Packer is finished

When the script is finishes run:

vagrant box add windows_2008_r2_virtualbox.box –name=metasploitable3

vagrant box add windows_2008_r2_virtualbox

How To Set up Metasploitable on Windows in Virtual Box – vagrant box add windows_2008_r2_virtualbox

Once that is completely done, run one last command:

vagrant up

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”.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *