-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
93 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# .Net | ||
|
||
运行环境: .Net Framework >= 2.0; .NetCore; .Net | ||
|
||
| 文件 | 全双工 | 半双工 | 负载转发 | 备注 | | ||
|:---------------------|:---:|:---:|:----:|:---------------------| | ||
| `suo5.aspx` | x | ✓ | ✓ | 常规 aspx 脚本 | | ||
| `Suo5VirtualPath.cs` | x | ✓ | ✓ | .Net VirtualPath 内存马 | | ||
|
||
1. `.Net` 全双工的实现主要卡在了流式的请求传输上,我发现在 `.Net` 中必须等到请求的 `Body` 结束才能在 aspx 脚本内拿到 | ||
`Request` 对象,这就导致了无法在请求过程中进行响应,因此只能使用半双工的方式来实现。 | ||
如通过你有思路突破这个限制,欢迎与我讨论 | ||
2. 脚本中有一个对服务线程池调整的逻辑,至少会调整为 256,如果并发数超过这个数量,请求会变得很慢,这和 IIS 的请求模型有关。 | ||
如果你需要更大的并发,需要把这个值改大一些。 | ||
|
||
## 使用 .Net 内存马 | ||
|
||
> 感谢 [@dust-life](https://github.com/dust-life) 贡献 | ||
参考: https://github.com/A-D-Team/SharpMemshell/blob/main/VirtualPath/memshell.cs | ||
|
||
### 编译 | ||
|
||
``` | ||
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /t:library Suo5VirtualPath.cs | ||
``` | ||
|
||
or | ||
|
||
``` | ||
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe /t:library Suo5VirtualPath.cs | ||
``` | ||
|
||
### 使用 | ||
|
||
``` | ||
https://github.com/A-D-Team/SharpMemshell/blob/main/VirtualPath/install.aspx | ||
``` | ||
|
||
or | ||
|
||
``` | ||
ysoserial.exe -f BinaryFormatter -g ActivitySurrogateSelectorFromFile -c "Suo5VirtualPath.cs;System.Web.dll;System.dll" | ||
``` | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Java | ||
|
||
> Weblogic 等服务对换行很敏感, 如果你需要对文件进行修改,请务必确保去除了不必要的换行, | ||
> 尤其是文件结束的换行,否则可能无法使用 | ||
运行环境: JDK 4~21 | ||
|
||
| 文件 | 全双工 | 半双工 | 负载转发 | 备注 | | ||
|:-------------------------|:---:|:---:|:----:|:-----------------------------------------------------------------------| | ||
| `suo5.jsp` | ✓ | ✓ | ✓ | | | ||
| `suo5.jspx` | ✓ | ✓ | ✓ | | | ||
| `Suo5Filter.java` | ✓ | ✓ | ✓ | `javax.servlet.Filter` 的实现,用于经典中间件 `Filter` 类型的内存马注入 | | ||
| `Suo5WebFlexFilter.java` | ✓ | ✓ | x | `org.springframework.web.server.WebFilter` 的实现, 用于响应式的 Spring Netty 环境 | | ||
| `Suo5WebFlexSpEL.txt` | ✓ | ✓ | x | Spring Cloud Gateway `CVE-2022-22947` 的一键注入 Suo5 的 Payload | | ||
|
||
> WebFlex 的负载转发功能时可以支持的,时间比较仓库还没写,后面会更新 | ||
内存马注入推荐参考这个项目,其支持生成各种中间件的一键 Suo5 | ||
注入逻辑 [java-memshell-generator-release](https://github.com/pen4uin/java-memshell-generator-release) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters