Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metasploitable 2 Vulnerability Assessment Lab

Overview

This project demonstrates a vulnerability assessment conducted against Metasploitable 2, an intentionally vulnerable Linux virtual machine, using Kali Linux as the attacker system.

The objective of this assessment was to:

  • Discover live hosts
  • Enumerate open services
  • Identify security weaknesses
  • Validate findings through manual investigation
  • Assess associated risks
  • Document recommendations for remediation

Technologies & Tools

  • Kali Linux
  • Metasploitable 2
  • VMware Workstation
  • Nmap
  • Netcat (nc)
  • Telnet
  • FTP
  • SMBClient
  • PostgreSQL Client (psql)

Lab Environment

Attacker Machine

  • Operating System: Kali Linux
  • IP Address: 192.168.210.130

Kali Linux Attacker Machine

Target Machine

  • Operating System: Metasploitable 2
  • IP Address: 192.168.210.129

Metasploitable 2 Target Machine


Methodology

  1. Network Verification
  2. Service Enumeration
  3. Service Investigation
  4. Finding Validation
  5. Risk Assessment
  6. Documentation

Network Verification

Before beginning the assessment, connectivity between the attacker and target systems was verified.

Ping Test

Ping Test

Result

  • Host reachable
  • Successful communication established between systems

Service Enumeration

An Nmap service version scan was performed against the target.

Command

nmap -sV 192.168.210.129

Nmap Scan Results

Nmap Scan

Identified Services

  • FTP (21)
  • SSH (22)
  • Telnet (23)
  • HTTP (80)
  • SMB (139,445)
  • PostgreSQL (5432)
  • MySQL (3306)
  • Bindshell (1524)

Finding 1 – Telnet Default Credentials

The Telnet service accepted default credentials, allowing remote access to the target system.

Credentials Used

Username: msfadmin
Password: msfadmin

Telnet Authentication

Telnet Login

User Verification

Telnet User Validation

Result

  • Successfully authenticated
  • Access obtained as user msfadmin

Severity

High


Finding 2 – Unauthenticated Root Bindshell

A bindshell service was exposed on port 1524 and provided direct root access without authentication.

Root Shell Access

Bindshell Access

Root Verification

Bindshell Root Validation

Result

  • Immediate root shell obtained
  • No authentication required

Severity

Critical


Finding 3 – Anonymous FTP Access

The FTP service allowed anonymous authentication.

FTP Authentication

FTP Access

Result

  • Anonymous login successful
  • Directory listing accessible

Severity

Medium


Finding 4 – Anonymous SMB Enumeration

The SMB service allowed anonymous enumeration of shares and resources.

SMB Share Enumeration

SMB Enumeration

SMB Share Access

SMB Share Access

Result

  • Multiple shares discovered
  • Anonymous access to shared resources confirmed

Severity

Medium


Finding 5 – Database Service Discovery

Database services were identified during enumeration.

Database Enumeration

Database Service Discovery

Result

  • MySQL service identified on port 3306
  • PostgreSQL service identified on port 5432

Finding 6 – PostgreSQL Default Credentials

The PostgreSQL service accepted default credentials.

PostgreSQL Authentication

PostgreSQL Login

Result

  • Successful database authentication
  • Remote access obtained using default credentials

Severity

High


Risk Summary

Finding Severity
Unauthenticated Root Bindshell Critical
Telnet Default Credentials High
PostgreSQL Default Credentials High
Anonymous FTP Access Medium
Anonymous SMB Enumeration Medium

For detailed analysis, refer to:

  • findings.md
  • risk-assessment.md

Skills Demonstrated

  • Network Enumeration
  • Service Identification
  • Vulnerability Assessment
  • Risk Assessment
  • Linux Administration
  • Security Documentation
  • Nmap Scanning
  • SMB Enumeration
  • FTP Enumeration
  • Database Service Assessment
  • Evidence Collection

Lessons Learned

During this project I learned:

  • How to perform host discovery and service enumeration using Nmap.
  • How to validate vulnerabilities manually instead of relying solely on automated scan results.
  • The security risks associated with default credentials and anonymous access.
  • The impact of exposed services on an organization's attack surface.
  • How to assess findings based on risk and business impact.
  • How to document technical findings in a structured security assessment report.
  • The importance of proper lab setup and troubleshooting during cybersecurity projects.

Disclaimer

This project was performed in a controlled lab environment using Metasploitable 2, an intentionally vulnerable virtual machine designed for cybersecurity training and education. No unauthorized systems were targeted during this assessment.


License

This project is licensed under the MIT License. See the LICENSE file for more information.


Author

Prince Yadav

Cybersecurity Student | GRC | Security Operations | Linux | Web Security

GitHub: https://github.com/prince-unk

LinkedIn: https://www.linkedin.com/in/princeyadav1162/

About

Performed a vulnerability assessment of Metasploitable 2 using Kali Linux. Identified, validated, and documented security weaknesses including default credentials, anonymous access, exposed services, and remote root shell access.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors