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.