Coder Social home page Coder Social logo

shiroexp's Introduction

ShiroExp

shiro综合利用工具

ShiroExp

0x01 说明

shiro一把梭工具

目前已知bug:

  1. 程序自带的代理功能bug,不想修。未来也大概率不会修。

更新

2022.6.25

  • 添加JRMP功能,可用于手工测试漏洞
  • 修复POST包的bug
  • 修复部分payload suid问题
  • 利用链集成
  • 内存马注入优化
  • 添加AES key自定义功能。在程序当前目录下创建shirokeys.txt即可使用自己的key。

0x02 使用

  1. 先手工判断是否是shiro站点。
  2. 发现有相关特征之后,可以尝试跑一下默认密钥(已经内置主流key,也可以使用自己的key文件。创建shirokey.txt文件放在程序目录)。某些站点rememberMe被改了,需要修改一下特征。也可以开启payload输出,方便复制进行手工检测。一般情况下用SimplePrincipalCollection检测就行,如遇到无回显之类的场景可以尝试用dnslog进行检测。
  3. 拿到密钥之后就可以执行命令或者直接注入内存马。如遇到执行命令无回显,可以更换利用链再次尝试。注入内存马之前,需保证选择的利用链能正常执行命令。
  4. 打点结束,开始下一步。

0x03 功能

该轮子主要有三大功能如下:

  • 默认密钥爆破
    • 利用SimplePrincipalCollection进行检测
    • 利用dnslog进行检测,以解决无回显rememberMe。使用的是dnslog.cn
    • 支持高版本的AES-GCM算法
  • 命令执行
    • 加入了shiro常用的利用链
    • 加入了两种tomcat通用回显
  • 内存马注入
    • 冰蝎注入

0x04 Todo

  1. 加入其他中间件通用回显
  2. 加入更多的内存马注入
  3. 分段传输解决,遇到waf的一些问题
  4. 把filter马换成Listener马

0x05 参考

p牛的java安全漫谈
一种另类的 shiro 检测方式
Shiro RememberMe 漏洞检测的探索之路
基于全局储存的新思路 | Tomcat的一种通用回显方法研究
Tomcat中一种半通用回显方法
基于tomcat的内存 Webshell 无文件攻击技术
Shiro 550 漏洞学习 (二):内存马注入及回显
冰蝎改造之不改动客户端=>内存马 终极Java反序列化Payload缩小技术

0x06 免责声明

本工具仅能在取得足够合法授权的企业安全建设中使用,在使用本工具过程中,您应确保自己所有行为符合当地的法律法规。

如您在使用本工具的过程中存在任何非法行为,您将自行承担所有后果,本工具所有开发者和所有贡献者不承担任何法律及连带责任。

除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要安装并使用本工具。

您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。

shiroexp's People

Contributors

safe6sec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiroexp's Issues

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.