Go to file
jbarnett-r7 c1da9a028f Use variables for scripts dirs 2017-08-21 11:42:46 -05:00
.github Updated issue_template.md 2017-05-21 22:33:48 +05:30
chef/cookbooks/metasploitable/test/windows Converted scripts to port resource 2017-07-19 18:22:41 +05:30
iso Initial commit. 2016-08-30 10:53:02 -05:00
packer Use variables for scripts dirs 2017-08-21 11:42:46 -05:00
resources Add files via upload 2017-08-03 15:03:57 +02:00
scripts Fix ManageEngine not starting 2017-08-03 15:15:40 +02:00
versions/pro Move packer files to dedicated directory 2017-08-07 10:38:50 -05:00
.gitignore Move packer files to dedicated directory 2017-08-07 10:38:50 -05:00
COPYING Remove year specification from Copyright since it was incorrect and actually not necessary. 2016-11-01 15:57:02 -05:00
LICENSE Remove year specification from Copyright since it was incorrect and actually not necessary. 2016-11-01 15:57:02 -05:00
README.md Add mention of using different providers 2017-08-07 11:12:50 -05:00
Vagrantfile Use prebuilt box from vagrant cloud 2017-08-07 10:17:36 -05:00
build_win2008.ps1 Update README. 2017-08-07 11:04:31 -05:00
build_win2008.sh Update README. 2017-08-07 11:04:31 -05:00

README.md

Metasploitable3

Metasploitable3 is a VM that is built from the ground up with a large amount of security vulnerabilities. It is intended to be used as a target for testing exploits with metasploit.

Metasploitable3 is released under a BSD-style license. See COPYING for more details.

Building Metasploitable 3 for PenTesting

System Requirements:

  • OS capable of running all of the required applications listed below
  • VT-x/AMD-V Supported Processor recommended
  • 35 GB Available space on drive
  • 4.5 GB RAM

Requirements:

  • Packer
  • Vagrant NOTE: Currently 1.9.1 is recommended as there are build issues with newer versions.
  • VirtualBox
  • Internet connection

To build automatically:

  1. Run the build_win2008.sh script if using bash, or build_win2008.ps1 if using Windows.
  2. If the command completes successfully, run 'vagrant up'.
  3. When this process completes, you should be able to open the VM within VirtualBox and login. The default credentials are U: vagrant and P: vagrant.

To build manually:

  1. Clone this repo and navigate to the main directory.
  2. Run the command vagrant box add jbarnett-r7/metasploitable3-win2k8. This will download the 6.5+ GB box file from Vagrant cloud. This may take a while depending on your Internet connection.
  3. To start the VM, run the command vagrant up. This will start up the VM network. This takes about 5-10 minutes. NOTE: Vagrant will attempt to use the correct virtualization platform automatically, but if you would like to use a specific provider you can use vagrant up --provider=<provider>. More info here.
  4. Once this process completes, you can open up the VM within VirtualBox and login. The default credentials are U: vagrant and P: vagrant.

Vulnerabilities

More Information

The wiki has a lot more detail and serves as the main source of documentation. Please check it out.

Building Metasploitable 3 for Development

System Requirements:

  • OS capable of running all of the required applications listed below
  • VT-x/AMD-V Supported Processor recommended
  • 35 GB Available space on drive
  • 4.5 GB RAM

Requirements:

To build:

  1. Clone this repo and navigate to the main directory.
  2. Build the base VM image by running packer build --only=<provider> packer/templates/windows_2008_r2.json where <provider> is your preferred virtualization platform. Currently virtualbox-iso and vmware-iso are supported. This will take a while the first time you run it since it has to download the OS installation ISO.
  3. After the base Vagrant box is created you need to add it to your Vagrant environment. This can be done with the command vagrant box add packer/builds/windows_2008_r2_<provider>_<version>.box --name=metasploitable3-win2k8.
  4. Use vagrant plugin install vagrant-reload to install the reload vagrant provisioner if you haven't already.
  5. To start the VM, run the command vagrant up. This will start up the VM and run all of the installation and configuration scripts necessary to set everything up. This takes about 20 minutes.
  6. Once this process completes, you can open up the VM within VirtualBox and login. The default credentials are U: vagrant and P: vagrant.

Acknowledgements

The Windows portion of this project was based off of GitHub user joefitzgerald's packer-windows project. The Packer templates, original Vagrantfile, and installation answer files were used as the base template and built upon for the needs of this project.