mirror of
https://github.com/pen4uin/java-memshell-generator.git
synced 2026-09-22 17:58:59 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc4fd115b4 | ||
|
|
8bd61a3f51 | ||
|
|
d10b20d9a4 | ||
|
|
c823e62e72 | ||
|
|
9a2dd6d02a |
-24
@@ -1,24 +0,0 @@
|
||||
#### 2023-06-09
|
||||
|
||||
- [BUG] 修复"小黑屋"内测功能 bug
|
||||
- [优化] 添加窗口拉伸支持
|
||||
- [优化] 添加鼠标右键菜单,复制选中内容/复制全部内容
|
||||
|
||||
|
||||
#### 2023-06-08 GUI 图形化工作模式开发
|
||||
|
||||
- 完成 GUI 设计
|
||||
- 移植插件版功能
|
||||
|
||||
<img width="900" alt="image" src="https://github.com/pen4uin/java-memshell-generator/assets/55024146/19ef194c-8ec9-41e6-add6-1ff4671acb34">
|
||||
|
||||
|
||||
#### 2023-06-04 v1.0.4.beta1 社区版首次发布
|
||||
|
||||
- 支持的中间件和框架 (Tomcat/Resin/Jetty/WebLogic/WebSphere/Undertow/GlassFish/Spring)
|
||||
- 支持的网站管理工具 (Behinder/Godzilla/Custom)
|
||||
- 支持的内存马类型 (Filter/Listener/Interceptor)
|
||||
- 支持的输出格式 (BASE64/BCEL/CLASS/JS/JSP/JAR/BIGINTEGER)
|
||||
- 支持的辅助模块 (探测目标中间件/序列化数据封装)
|
||||
|
||||
|
||||
@@ -1,72 +1,38 @@
|
||||
# java-memshell-generator
|
||||
# Java Memshell Generator
|
||||
|
||||
## 0x01 Introduce
|
||||
|
||||
**jMG (Java Memshell Generator)** 是一款支持高度自定义的 Java 内存马生成工具,提供常见中间件的内存马注入支持。
|
||||
|
||||
主要功能如下:
|
||||
- 支持的中间件和框架 (Tomcat/Resin/Jetty/WebLogic/WebSphere/Undertow/GlassFish/SpringMVC/SpringWebFlux)
|
||||
- 支持的工具 (AntSword/Behinder/Godzilla/Suo5)
|
||||
- 支持的内存马类型 (Filter/Listener/Interceptor/HandlerMethod)
|
||||
- 支持的输出格式 (BASE64/BCEL/CLASS/JS/JSP/JAR/BIGINTEGER)
|
||||
- 支持的辅助模块 (专项漏洞封装/表达式语句封装)
|
||||
|
||||
> 此工具仅限于安全研究和教学,用户承担因使用此工具而导致的所有法律和相关责任! 作者不承担任何法律和相关责任!
|
||||
|
||||
|
||||
## 0x01 简介
|
||||
## 0x02 Usage
|
||||
|
||||
jMG (Java Memshell Generator) 是一款支持高度自定义的 Java 内存马生成工具,提供常见中间件的内存马注入支持。不仅可作为 [woodpecker](https://github.com/woodpecker-framework/woodpecker-framework-release) 的插件使用,也可以作为独立的 GUI 工具进行使用,文档详见[公众号文章](https://mp.weixin.qq.com/s/oAiGWY9ABhn2o148snA_sg)。
|
||||
下载 jMG-GUI.jar 运行即可
|
||||
|
||||

|
||||
|
||||
|
||||
## 0x02 中间件/框架覆盖情况
|
||||
## 0x03 Reference
|
||||
|
||||
#### 中间件
|
||||
|
||||
|
||||
| | listener | filter |
|
||||
| --------------- | ----------------- | --------------- |
|
||||
| tomcat 9.0.39 | ✅ | ✅ |
|
||||
| tomcat 8.5.53 | ✅ | ✅ |
|
||||
| tomcat 7.0.59 | ✅ | ✅ |
|
||||
| tomcat 6.0.48 | ✅ | ✅ |
|
||||
| tomcat 5.5.36 | ✅ | ✅ |
|
||||
| jetty 9.4.43 | ✅ | ✅ |
|
||||
| jetty 8.2.0 | ✅ | ✅ |
|
||||
| jetty 7.6.0 | ✅ | ✅ |
|
||||
| resin 4.0.66 | ✅ | ✅ |
|
||||
| resin 3.1.15 | ✅ | ✅ |
|
||||
| weblogic 10.3.6 | ✅ | ✅ |
|
||||
| weblogic 12.1.3 | ✅ | ✅ |
|
||||
| weblogic 14.1.1 | ✅ | ✅ |
|
||||
| websphere 7.x | ✅ | ✅ |
|
||||
| websphere 8.5.5 | ✅ | ✅ |
|
||||
| websphere 9.0.0 | ✅ | ✅ |
|
||||
| undertow 1.4.26 | ✅ | ✅ |
|
||||
| glassfish 5.0.0 | ✅ | ✅ |
|
||||
|
||||
|
||||
#### 框架
|
||||
|
||||
|
||||
| | interceptor | action |
|
||||
| --------------- | ----------------- | ----------------- |
|
||||
| spring mvc | ✅ | |
|
||||
| strust2 | | |
|
||||
|
||||
|
||||
## 0x03 两种工作模式
|
||||
|
||||
#### Woodpecker 插件工作模式
|
||||
|
||||
<img width="877" alt="image" src="https://github.com/pen4uin/java-memshell-generator/assets/55024146/1b07d338-5cd9-4035-8566-be2d4ae914d4">
|
||||
|
||||
#### GUI 图形化工作模式
|
||||
|
||||
<img width="877" alt="image" src="https://github.com/pen4uin/java-memshell-generator/assets/55024146/d61ea557-3b76-490a-b9b6-f47f2db5a45a">
|
||||
|
||||
|
||||
## 0x04 致谢
|
||||
|
||||
SGLAB of Legendsec at Qi'anxin Group
|
||||
|
||||
<img src="./images/sglab.svg" width=300 alt="SgLab">
|
||||
|
||||
|
||||
## 0x05 参考项目
|
||||
使用手册
|
||||
- [jMG v1.0.4](https://mp.weixin.qq.com/s/oAiGWY9ABhn2o148snA_sg)
|
||||
- [jMG v1.0.5](https://mp.weixin.qq.com/s/QjoRs_J5jVANrdEiiTtVtA)
|
||||
- [jMG v1.0.6](https://mp.weixin.qq.com/s/0ZzH35aRUPelq8nwilMQiA)
|
||||
|
||||
参考项目
|
||||
```
|
||||
https://github.com/woodpecker-framework/
|
||||
https://github.com/woodpecker-appstore/jexpr-encoder-utils
|
||||
https://github.com/feihong-cs/memShell
|
||||
https://github.com/su18/MemoryShell
|
||||
https://github.com/BeichenDream/GodzillaMemoryShellProject
|
||||
https://github.com/woodpecker-appstore/jexpr-encoder-utils
|
||||
https://github.com/whwlsfb/cve-2022-22947-godzilla-memshell
|
||||
```
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Reference in New Issue
Block a user