moyun-ultimate/skills/kimi-webbridge/SKILL.md
moyun-ultimate 24db9f592e feat: moyun-ultimate 0.1.0 — five-layer fused jailbreak core
Merge 12 community jailbreak packages into one layered plugin instead of
stacking them (stacking makes them fight over the same host targets).

Layers:
- order 100 persona core (moyun-banzhuan, text verbatim)
- order 150 refusal kernel (dsh-po: authorization-as-given, foreign-pattern table)
- order 160 execution intensity (dsh-unrestricted + arsenal execution_mode)
- order 200 anti-dilution mirror
- order 210 skill routing (63 skills, synced idempotently into $DSH_HOME/skills)

Tools: moyun_frame (5 re-framing templates on demand), moyun_ultimate_profile.
Client: live refusal-score badge.

Ships no host source patches, so it never fights dsh-purge; the permission
layer stays with dsh-purge.
2026-11-16 13:37:04 +08:00

87 lines
5.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: kimi-webbridge
description: 用月之暗面 Kimi 浏览器扩展(WebBridge)驱动用户真实 Chrome/Chromium:导航、读取页面、点击、填表、执行 JS、截图
whenToUse: 需要复用浏览器登录态访问后台/需要 JS 渲染的页面/需要真实浏览器指纹时
role: recon
enabled: true
---
# Kimi WebBridge(浏览器扩展 + 本地守护进程)
已安装并运行:守护进程 **v2.0.8**(systemd 服务 `kimi-webbridge`,开机自启),监听 `127.0.0.1:10086`,二进制 `~/.kimi-webbridge/bin/kimi-webbridge`。
## 当前状态(2026-09 实测)
- 守护进程:**由 systemd 管理**(`/etc/systemd/system/kimi-webbridge.service`,`enabled` + `active`,`Restart=on-failure`)。
查状态:`systemctl status kimi-webbridge`;重启用 `sudo systemctl restart kimi-webbridge`。
**不要再手动跑 `kimi-webbridge start`/`upgrade`**,那会起一个游离进程、systemd 反而变 inactive;要升级用
`sudo systemctl stop kimi-webbridge && ~/.kimi-webbridge/bin/kimi-webbridge upgrade && sudo systemctl start kimi-webbridge`。
- 扩展:**Kimi WebBridge v2.0.8,由企业策略自动从 Chrome 应用商店安装**(扩展 ID `fldmhceldgbpfpkbgopacenieobmligc`)。
策略文件 `/etc/opt/chrome/policies/managed/kimi-webbridge.json` 与 `/etc/chromium/policies/managed/kimi-webbridge.json`
都设置了 `ExtensionSettings.force_installed` + `ExtensionInstallForcelist`,所以 **Chrome / Chromium 的任何 profile 打开即自带扩展、自动更新、常驻启用**。
- Chrome 137+ 已忽略 `--load-extension`(`--disable-features=…` 的逃生口也失效),所以**不要再走解压加载路线**。
- 若 `status` 显示 `extension_connected: false`:99% 只是**没有浏览器在运行**,启动任一浏览器(`kimi-chrome` 或直接点 Chrome/Chromium 图标)后 5 秒内会自动连上。
- 简单取页面内容可优先用技能 `browser-automation`(更快、不依赖浏览器窗口);**需要复用真实登录态时必须用本技能**
## 先决条件
1. 守护进程已运行:`~/.kimi-webbridge/bin/kimi-webbridge status` 应显示 `"running": true`(开机自启,正常无需干预)。
2. **必须有一个浏览器在运行**(扩展只在浏览器进程存活时维持连接)。启动器 `~/.local/bin/kimi-chrome`:
- 默认启动 Chrome **默认 profile**(带真实登录态,桥接的价值就在这);
- `KIMI_BROWSER=chromium kimi-chrome` 改用 Chromium;`KIMI_PROFILE=/path kimi-chrome` 指定独立 profile(无登录态)。
3. 检查连接:
```bash
curl -s http://127.0.0.1:10086/status | python3 -m json.tool
# 必须看到 "extension_connected": true,否则后续命令会失败
```
## 调用方式
```bash
WB=http://127.0.0.1:10086/command
call() { printf '%s' "$2" > /tmp/wb.json; curl -s -X POST $WB -H 'Content-Type: application/json' --data-binary @/tmp/wb.json; }
```
> 含中文的 JSON 一律走临时文件 + `--data-binary`,不要用 echo/heredoc 内联。
### 常用动作
```bash
# 打开页面(新标签)
call navigate '{"action":"navigate","args":{"url":"https://target.example.com/login","newTab":true,"group_title":"recon"},"session":"recon1"}'
# 读取页面纯文本(最常用)
call evaluate '{"action":"evaluate","args":{"code":"(() => document.body.innerText.slice(0,6000))()"},"session":"recon1"}'
# 取无障碍树(带 @e 元素引用,便于后续 click/fill)
call snapshot '{"action":"snapshot","args":{},"session":"recon1"}'
# 执行任意 JS:抓前端接口清单(信息收集/接口发现神器)
call evaluate '{"action":"evaluate","args":{"code":"(() => {const s=new Set();for(const e of performance.getEntriesByType(\"resource\"))s.add(e.name);const m=document.documentElement.innerHTML.match(/[\\\"\\x27]\\/(api|v[0-9])\\/[a-zA-Z0-9_\\-\\/{}]+/g)||[];m.forEach(x=>s.add(x));return [...s].slice(0,200).join(\"\\n\")})()"},"session":"recon1"}'
# 点击 / 填表
call click '{"action":"click","args":{"ref":"@e12"},"session":"recon1"}'
call fill '{"action":"fill","args":{"ref":"@e15","value":"admin"},"session":"recon1"}'
# 截图(返回文件路径,不是 base64)
call screenshot '{"action":"screenshot","args":{"path":"$DSH_HOME/redteam/engagements/<靶标>/runs/shot.png"},"session":"recon1"}'
# 抓网络请求(找接口)
call network '{"action":"network","args":{},"session":"recon1"}'
# 列出/关闭标签
call list_tabs '{"action":"list_tabs","args":{},"session":"recon1"}'
call close_session '{"action":"close_session","args":{},"session":"recon1"}'
```
原始 CDP 透传(高级):`{"action":"cdp","args":{"method":"Network.getAllCookies"}}`。
## 在红队流程里的用法
- **接口发现**:打开站点 → `evaluate` 抓 resource timing + 页面内 JS 里的接口路径 → 把接口清单交给漏洞检测角色做越权/未授权测试。
- **登录态页面**:用户在浏览器里已登录的后台,可直接 `navigate` + `evaluate` 读取内容,无需重新登录。
- **JS 渲染站点**:比 curl 更真实,能拿到 SPA 渲染后的 DOM。
- 发现的 URL/标题照常写回 `redteam_asset_add`(`tool="kimi-webbridge"`)。
## 限制(务必知道)
- **无 headless**:必须有图形会话(本机 `DISPLAY=:10.0` 可用)。
- 只支持 Chrome/Edge;跨域 iframe 不支持;`click`/`fill` 是合成事件,验证码/银行控件无效。
- 扩展与守护进程版本强耦合:`status` 里 `update_available` 不为空就按上面的 systemd 停机 → `upgrade` → 启机流程升级守护进程;扩展由策略自动更新到最新版。
- Linux 不在官方支持矩阵(能用但不保证)。
## 无扩展时的兜底
见技能 `browser-automation`(headless chromium 零依赖方案)。