Practice Lab · Safe VM
Metasploitable
A deliberately vulnerable Linux VM for safe, legal practice.
Safe to try on your own machine. Spin up your Kali Linux lab and practice away — on any system you own or have permission to test. That’s exactly how the pros learn.
Definition
Metasploitable is an intentionally vulnerable Linux virtual machine built by Rapid7 for security training and testing.
Provide a safe, legal target to practice vulnerability scanning, exploitation, and post-exploitation.
Hands-on learning and tool practice (Nmap, Metasploit, Nessus) in an isolated lab, never exposed to a live network.
Key features
Ships with outdated, misconfigured services (FTP, Samba, Tomcat, databases).
Designed to run in an isolated VM/network (VirtualBox, VMware).
Metasploitable 2 and 3 offer different OS bases and vuln sets.
Commonly used as the target when learning the Metasploit Framework.
Known default accounts for practicing credential-based access.
Important commands
nmap -sV <metasploitable-ip>Enumerate services and versions on the VM.
msfconsoleLaunch the Metasploit Framework console.
use exploit/<path>Select a specific exploit module.
set RHOSTS <metasploitable-ip>Set the target IP for the module.
runExecute the configured module against the target.
ssh msfadmin@<metasploitable-ip>Log in with the VM's well-known default lab credentials.
Practical examples
nmap -sV -p- 192.168.56.102
Purpose Identifies all open ports and service versions for later targeting.
msfconsole use exploit/unix/ftp/vsftpd_234_backdoor set RHOSTS 192.168.56.102 run
Purpose Exploits a deliberately backdoored FTP service, in a lab-only setting.
ssh msfadmin@192.168.56.102
Purpose Practices authenticating with the VM's intentionally weak lab credentials.
Important points
- Lab-only use: Run on an isolated/host-only network; never expose it to the internet.
- Not representative of production: Its vulnerabilities are deliberately severe — great for learning, not realistic of hardened systems.
- Legal boundaries still apply: Techniques practiced here must not be reused against systems without authorization.
- Version differences: Metasploitable 2 (Ubuntu) and 3 (Windows/Linux) target different skill levels.
Common use cases
Practice recon, scanning, exploitation and post-exploitation safely.
Learn Nmap, Metasploit and Nessus against a predictable target.
Common in OSCP-style and hands-on security coursework.
A base image for capture-the-flag training.