mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-09-21 00:01:14 +02:00
Metasploitable3 is a VM that is built from the ground up with a large amount of security vulnerabilities.
answer_files/2008_r2 | ||
iso | ||
resources | ||
scripts | ||
.gitignore | ||
build_win2008.ps1 | ||
build_win2008.sh | ||
COPYING | ||
LICENSE | ||
README.md | ||
Vagrantfile | ||
vagrantfile-windows_2008_r2.template | ||
windows_2008_r2.json |
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
Requirements:
- Packer
- Vagrant NOTE: There is a bug in the latest version of Vagrant that is causing the provisioning to fail. This can be worked around by using Vagrant 1.8.1.
- Vagrant Reload Plugin
- VirtualBox
- Internet connection
To build automatically:
- Run the build_win2008.sh script if using bash, or build_win2008.ps1 if using Windows.
- If the command completes successfully, run 'vagrant up'.
- 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:
- Clone this repo and navigate to the main directory.
- Build the base VM image by running
packer build windows_2008_r2.json
. This will take a while the first time you run it since it has to download the OS installation ISO. - 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 windows_2008_r2_virtualbox.box --name=metasploitable3
. - 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 10 minutes. - Once this process completes, you can open up the VM within VirtualBox and login. The default credentials are U: vagrant and P: vagrant.
Vulnerablities
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.