How to build Metasploitable 3

I haven’t blogged in a while for many reasons, but I hope to add some more posts during the next few months.

In this post, I will show you how to build the new Metasploitable VM from Rapid7.

I will build the virtual machine on Windows 10 on which I had previously installed virtualbox.

You need the following

The vagrant version is important as if you use a latter version, the build will fail.

Once you have the tools installed, make sure they are added to the system path. I stored mine in c:\users\<username>\temp.

You should now be able to execute them without specifying the whole path. Next, from an administrative command prompt install the vagrant reload command with the command ‘vagrant plugin install vagrant-reload

Once, you have the reload plugin installed, now head over to the Github Metasploitable3 repository at Download the zip file and extract it to a directory of your choosing.

Now change into the directory within your admin command prompt, enter the commands below to build the vm.

  1. packer build windows_2008_r2.json
  2. vagrant box add –name=metasploitable3
  3. vagrant up

The first command will take some time as it has to download the base vm. If all goes well you should have a nice new vm as shown below.







2 responses to “How to build Metasploitable 3

  1. This was soooo helpful! It got me all the way to the end were ‘vargrant up’ goes through the process of installing virtual box all over again. Once it finishes I cannot open VirtualBox. I tried to open VirtualBox as an administrator and with compatibility to Windows 8 and 7… Nothing. Reinstalling a newer VirtualBox opens it but metasploitable isn’t in there. I have 5.1.8 and I think ‘vagrant up’ tries to download a lesser version. If I update VirtualBox and run ‘vagrant up’ it tells me there is an error and it cannot open the file or file location. Any ideas?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s