dsh-ops-console avatar

dsh-ops-console

因为官方的web版想重启比较麻烦,这个插件实现了一种懒人的方式

Plugin开发终端 / Shell网页搜索
验证
L2 · 结构化
安全
中风险
健康
活跃
信任

功能介绍AI

DSH WebUI plugin for one-click update check, apply updates on restart, and reliable restart from Settings.

  • One-click update check
  • Updates applied during restart
  • Reliable restart button from Settings

由 AI 基于 README 自动生成,仅供参考。

安装

dsh plugin --profile web add github:DonnieTangzhili/dsh-ops-console

Install method: GitHub · 尚未在容器中测试 (L3+)

兼容性

DSH VersionStatus
not statedDeclared — not tested

要求

  • • Node.js: not stated
  • • DSH: declared "not stated"
  • • External credentials: none detected

安全报告

自动静态扫描,非人工审核。

DSH.SO AUDIT需注意02427c
自动审查 · 每日更新
需注意

非阻断类别中的严重发现(动态执行、shell 执行、安装脚本、混淆)。在 CLI/终端插件中常见,但值得审查。

5 严重·6 警告·9 提示·6 扫描文件数
code-exec ×5
插件版本1.1.0dsh 清单
扫描版本02427ca3db5b2026-08-20
当前版本02427ca3db5b

扫描结果仅对「扫描版本」有效。扫描后 7 天内的新提交不会触发 outdated,评级仍然有效;超过 7 天未重新扫描才显示 outdated。

免责声明:这是自动化静态分析,不构成安全保证。安装前请自行审查。

第二意见扫描(vet · 并行评估期)
vet:可疑

vet 判定:vet:可疑 · score 42

  • R10 · info [heuristic] — 依赖清单:1 项(@deepseek-ai/schemastery,供 LLM 审计供应链;已知漏洞核对见后续 OSV 精确版本查询(网络失败静默降级))
  • R2 · high [likely] — require('node:child_process') 危险内置模块(执行/网络能力触达)
  • R2 · medium [likely] — require('node:path') 标准内置模块
  • R3 · info [certain] — 只读 process 成员(能力触达面):process.execPath
  • R3 · info [certain] (downgraded) — 直接访问 process.exit(Node 能力逃逸通道)

vet 仅作参考,不改变 dsh 的四档等级。

风险:中风险5 critical · 6 warning · 9 info

• 静态启发式扫描:已完成(6 个文件)

• 依赖漏洞:需深度审计(L3+)

• 权限沙箱:需运行时测试(L4+)

高危发现 · 11 / 11

  • critical使用 child_process 子进程模块(Node.js)lib/index.js:9
    import { spawn } from 'node:child_process';
  • critical使用 child_process 子进程模块(Node.js)lib/index.js:45
    const cp = require('node:child_process');
  • critical使用 child_process 子进程模块(Node.js)lib/index.js:219
    const cp = require('node:child_process');
  • critical使用 child_process 子进程模块(Node.js)tools/dsh-restart-helper.cjs:5
    const { spawn, execFileSync } = require('node:child_process');
  • critical使用 child_process 子进程模块(Node.js)tools/dsh-restart-now.js:4
    const { spawn } = require('node:child_process');
  • warning执行 shell 命令(exec / execSync)lib/index.js:85
    const r = cp.execFileSync('npm', ['config', 'get', 'registry'], { encoding: 'utf8', windowsHide: true, timeout: 8000 }).trim();
  • warning执行 shell 命令(exec / execSync)lib/index.js:155
    const root = cp.execFileSync('npm', ['root', '-g'], { encoding: 'utf8', windowsHide: true, timeout: 8000 }).trim();
  • warning执行 shell 命令(exec / execSync)lib/index.js:161
    const v = cp.execFileSync('dsh', ['--version'], { encoding: 'utf8', windowsHide: true, timeout: 8000 }).trim();
  • warning执行 shell 命令(exec / execSync)tools/dsh-restart-helper.cjs:15
    const out = execFileSync('netstat', ['-ano'], { encoding: 'utf8', windowsHide: true, timeout: 8000 });
  • warning执行 shell 命令(exec / execSync)tools/dsh-restart-helper.cjs:50
    execFileSync('taskkill', ['/F', '/PID', String(pid)], { stdio: 'ignore', windowsHide: true });
  • warning文件系统写入操作tools/dsh-restart-helper.cjs:35
    fs.appendFileSync(path.join(os.homedir(), '.dsh', 'dsh-restart-now.log'),

静态启发式扫描,可能误报——使用前请自行审查源码。

活跃度

最近提交 2026-08-20 · 活跃度:活跃

• 仓库创建: 2026-08-20

• 星标: ★ 3 · 复刻: 0

• 健康度: 活跃 — 近 30 天有提交

来源

GitHub: github.com/DonnieTangzhili/dsh-ops-console

这页有帮助吗?