Metasploitable 3 for VirtualBox
Last updated
Was this helpful?
Last updated
Was this helpful?
Similar to but with fewer steps and minor differences.
Before proceeding to the below installation steps, disable Windows Defender's Real-time protection and Cloud-delivered protection. Turn these back on after installing the metasploitable boxes.
Go to C:\Program Files\ and create a new folder named Packer
Extract the packer.exe to the newly created folder
Look at the System Variables portion then double click on Path
Check if Packer is configured correctly, type and run packer
in PowerShell. The result should look like this
After rebooting when Vagrant's installation is done, check if Vagrant is installed correctly by typing vagrant
in PowerShell. The result should look like this
Launch PowerShell
Install vagrant-reload plugin, type and run
Check if the plugins are installed by typing vagrant plugin list
. The result should look like this
Go to the directory C:\ and make a new folder named metasploitable3-workspace
Open up PowerShell and traverse to the newly created folder C:\metasploitable3-workspace
Type and run
At the same directory location, type and run the below code on PowerShell
This will download the prebuilt metasploitable Linux box for VirtualBox. The result should look like this
Back on PowerShell, type and run the below code
This will download the prebuilt metasploitable Windows Server 2008 box for VirtualBox. The result should look like this *Note: The win2k8 box size is huge (~6.5 GB) so the download will take a while*
To check if the two boxes are downloaded successfully, type and run vagrant box list
on PowerShell. The result should look like this
To deploy these two boxes, type and run
The boxes deployment process should look similar to below
Once vagrant finished the deployment, launch VirtualBox and the metasploitable 3 boxes are automically added and ready. If not, open the boxes up in VirtualBox's default machine folders (I have mine at C:\Users\longp\VirtualBox VMs)
On the metasploitable Windows Server 2008 box, launch PowerShell, type and run
The result should look like this
Download Packer AMD64 (64-bit) version at
Launch the Run app, by pressing the Windows key ⊞ + R, then type SystemPropertiesAdvanced
Click Environment Variables...
Then click New and paste the directory path C:\Program Files\Packer then press OK
Download and install Vagrant from
There should now exist a file named in the directory