Setting Up a Vulnerable Target
A test environment provides a secure place to perform penetration testing and security research. For your test environment, you need a Metasploit instance that can access a vulnerable target. The following sections describe the requirements and instructions for setting up a vulnerable target.
Downloading and Setting Up Metasploitable 3
The easiest way to get a target machine is to use Metasploitable 3, which is an intentionally vulnerable Ubuntu Linux virtual machine that is designed for testing common vulnerabilities. This virtual machine is compatible with VMWare, VirtualBox, and other common virtualization platforms.
Metasploitable 3 is available at:
The compressed file is about 80 MB and can take up to 30 minutes to download. After you have downloaded the Metasploitable 3 file, you will need to unzip the file to see its contents.
Powering on Metasploitable 3
Once the VM is available on your desktop, open the device, and run it with VMWare Player. Alternatively, you can also use VMWare Workstation or VMWare Server.
Logging in to Metasploitable 3
The login for Metasploitable 3 is
Identifying Metasploitable 3's IP Address
After you log in to Metasploitable 3, you can identify the IP address that has been assigned to the virtual machine. Just enter
ifconfig at the prompt to see the details for the virtual machine.
The command will return the configuration for eth0. You'll need to take note of the inet address. This will be the address you'll use for testing purposes.
Help with Metasploitable 3
For more information on Metasploitable 3, check out the wiki.