diff --git a/README.md b/README.md index 548dae93..6c038dd8 100644 --- a/README.md +++ b/README.md @@ -1,96 +1,26 @@ # MemShellParty [![license](https://img.shields.io/github/license/reajason/memshellparty?style=flat-square&label=License)](https://github.com/ReaJason/MemShellParty?tab=MIT-1-ov-file) -[![build](https://img.shields.io/github/actions/workflow/status/reajason/memshellparty/ci.yaml?label=Test&branch=master&style=flat-square)](https://github.com/ReaJason/MemShellParty/actions) +[![test](https://img.shields.io/github/actions/workflow/status/reajason/memshellparty/ci.yaml?label=Test&branch=master&style=flat-square)](https://github.com/ReaJason/MemShellParty/actions) +[![build](https://img.shields.io/github/actions/workflow/status/reajason/memshellparty/build.yaml?label=Build&branch=master&style=flat-square)](https://github.com/ReaJason/MemShellParty/actions) [![coverage](https://img.shields.io/endpoint?label=Coverage&url=https://raw.githubusercontent.com/reajason/memshellparty/master/.github/badges/jacoco.json&style=flat-square)](https://github.com/ReaJason/MemShellParty/actions) [![telegram](https://img.shields.io/endpoint?label=Telegram&style=flat-square&url=https://mogyo.ro/quart-apis/tgmembercount?chat_id=memshell)](https://t.me/memshell) + > [!WARNING] > 本工具仅供安全研究人员、网络管理员及相关技术人员进行授权的安全测试、漏洞评估和安全审计工作使用。使用本工具进行任何未经授权的网络攻击或渗透测试等行为均属违法,使用者需自行承担相应的法律责任。 > [!TIP] > [GitHub Actions](https://github.com/ReaJason/MemShellParty/actions) 最新一次构建会打印集成测试用例测试结果,可通过此来了解当前支持进度。 -## Why +![screenshot](docs/screenshot.png) -又到了一年一度的学习环节,最近一直在学习内存马相关的知识,也在写相关的靶场。 +## Usage -为了更好地学习,Real-World Attack 的例子比起 Demo 总是会让人更感兴趣,那么什么是一次真实场景下的内存马注入攻击顺序呢(我认为的,我并没有攻击实战经验)。 +使用 docker 部署之后访问 http://127.0.0.1:8080 -> 某些工具的交互方式有一点问题,虽然不影响使用不过值得优化 - -1. 确认目标站点的中间件类型,Tomcat、WebLogic 等等。 -2. 选择注入内存马类型,Servlet、Filter、Listener 等等。 -3. 选择注入内存马功能,仅回显、仅命令执行、Godzilla、Behinder、suo5 等等。 -4. 选择封装方式,也就是 RCE 漏洞类型,反序列化、表达式注入、模板注入、JNDI 等等。 - -## What - -> 开发过程中遇到的一些需要注意到的知识会以博客的方式输出。 - -随着攻击方式的增多,写 JavaWeb 内存马的师傅层出不穷,前人栽树后人乘凉,而我也应该是走在了聚合的道路上,试图去打造一款更利于全面学习内存马的注入工具。 - -1. SpringBoot 开发,易于部署,易于构建,让 JavaWeb 安全人员感到更亲切。 -2. 提供靶场测试 docker 用例,方便部署学习测试。 -3. 自带丰富的示例,让初学者在常见情况下都能完美注入,不再担心因为技能不够深入,出错导致一次勇敢的尝试戛然而止。 -4. 不仅给出完整的 POC,也能给出中间态产物,例如我仅好奇 GodzillaFilter 的类如何编写。 -5. 让使用者不仅仅只停留在脚本小子的阶段,学会了举一反三,能应对不同场景下的变形注入。 -6. 拥有一定的自定义能力,方便构建自己的武器测试库。 - -JDK 版本: - -1. JDK1.6、JDK1.7 -2. JDK8 -3. JDK9 -4. JDK11 -5. JDK17 - -中间件: - -1. [Tomcat](https://tomcat.apache.org/) -2. [Jetty](https://jetty.org/) -3. [Undertow](https://undertow.io/) ([JBossAS](https://jbossas.jboss.org/downloads/)/[JBossEAP](https://developers.redhat.com/products/eap/download)/[WildFly](https://www.wildfly.org/downloads/)) -4. [SpringMVC 框架](https://docs.spring.io/spring-framework/reference/web/webmvc.html) -5. [SpringWebflux 框架](https://docs.spring.io/spring-framework/reference/web/webflux.html) -6. [WebLogic](https://www.oracle.com/middleware/technologies/weblogic-server-installers-downloads.html) -7. [WebSphere](https://www.ibm.com/products/websphere-application-server) -8. [Resin](https://caucho.com/products/resin/download) -9. [GlassFish](https://javaee.github.io/glassfish/download)/[Payara](https://www.payara.fish/downloads/payara-platform-community-edition/) -10. [东方通](https://www.tongtech.com/pctype/25.html) -11. [宝兰德](https://www.bessystem.com/product/0ad9b8c4d6af462b8d15723a5f25a87d/info?p=101) - -内存马类型: - -1. Servlet -2. Filter -3. Listener -4. WebSocket -5. TomcatValve -6. TomcatUpgrade -7. TomcatExecutor -8. Agent -9. Netty -10. Spring Controller(多种方式) -11. Spring Interceptor -12. Spring WebFlux - -内存马功能: - -1. 回显 -2. 命令执行 -3. [Godzilla 哥斯拉内存马](https://github.com/BeichenDream/Godzilla/releases) -4. [Suo5](https://github.com/zema1/suo5) -5. [Neo-reGeorg](https://github.com/L-codes/Neo-reGeorg) -6. 自定义 - -漏洞类型: - -1. 反序列化漏洞,readObject、fastJson、snakeyaml、XStream 等 -2. 文件上传漏洞 JSP -3. 表达式注入,EL、MVEL、SpEL、Ognl 等 -4. 模板引擎注入,Freemarker、Velocity 和 JinJava -5. 脚本引擎注入、ScriptEngine、 -6. JNDI 注入 -7. JDBC 连接攻击 +``` +docker run -it -d --name memshell -p 8080:8080 reajason/memshell-party +``` ## How diff --git a/docs/screenshot.png b/docs/screenshot.png new file mode 100644 index 00000000..04cc15e7 Binary files /dev/null and b/docs/screenshot.png differ