Git Product home page Git Product logo

shiroscan's Introduction

Shiro反序列化检测工具

ShiroScan用于检测存在Shiro反序列化漏洞的key值。有三种方式进行检测,第一种是利用URLDNS进行检测,第二种利用命令执行进行检测,第三种使用SimplePrincipalCollection序列化后进行检测(XCheck,即Xray Check)。

功能简介

  • 默认DNSLOG

选择后会调用dnslog.cn的接口,生成一个域名,进行检测后,结果会输出在结果区域。

选择该选项时,会有卡顿,正在从dnslog.cn获取域名,并显示。

  • 自定义DNSLOG

需要自己输入一个dnslog地址,进行检测后去输入的dnslog平台去查看结果

  • 使用URLDNS

利用URLDNS进行检测。

参考:https://github.com/LuckyC4t/shiro-urldns/blob/master/src/main/java/luckycat/shirourldns/URLDNS.java

  • 使用payloads

通过执行ping命令来检测。

  • 使用XCheck

通过使用SimplePrincipalCollection序列化来进行检测,key正确情况下不返回 deleteMe ,key错误情况下返回 deleteMe

参考:https://mp.weixin.qq.com/s/do88_4Td1CSeKLmFqhGCuQ

使用

1.自行打包使用

git clone https://github.com/fupinglee/ShiroScan
cd ShiroScan
mvn clean package -DskipTests=true

打开target下的jar文件即可执行

2.直接下载使用

https://github.com/fupinglee/ShiroScan/releases

运行效果

  • 使用默认DNSLOG+URLDNS进行检测

使用默认DNSLOG1

  • 使用自定义DNSLOG+URLDNS进行检测

使用自定义DNSLOG1

  • 使用默认DNSLOG+Payloads检测

使用默认DNSLOG2

这里使用的命令是ping key.substring(0,3)+"."+payload+"."+"dnslog.cn"

  • 使用自定义DNSLOG+Payloads检测

使用自定义DNSLOG2

  • 使用XCheck进行检测

使用自定义XCheck

Shiro反序列化回显工具

简介

ShiroExploit是Shiro反序列化检测与回显利用工具,ShiroScan是从其中剥离出来的。

https://github.com/fupinglee/JavaTools/tree/master/Shiro#v20

支持Tomcat7、8、9下CMD内存shell的写入与卸载,支持Tomcat6、7、8、9下的通用回显。

使用

直接下载使用

1.https://github.com/fupinglee/ShiroScan/releases/tag/v1.1

2.https://github.com/fupinglee/JavaTools/tree/master/Shiro#v20

运行效果

1.回显

2.内存Shell

使用正确的密码,会执行命令,错误的密码返回正常页面。

使用时需要先确定Key和所使用的Gadget,然后加载内存shell。

参考

https://github.com/wh1t3p1g/ysoserial

https://github.com/frohoff/ysoserial

https://github.com/LuckyC4t/shiro-urldns/blob/master/src/main/java/luckycat/shirourldns/URLDNS.java

https://mp.weixin.qq.com/s/do88_4Td1CSeKLmFqhGCuQ

https://github.com/zema1/ysoserial/[通用回显]

其他

仅供安全人员进行有授权的验证,勿用于非法测试

shiroscan's People

Contributors

fupinglee avatar kenuoseclab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.