← 返回 Skills 市场
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mihomo-proxy
功能描述
管理 mihomo (Clash Meta) 代理服务。当用户需要配置、更新、重启代理、切换节点、更新订阅或排查代理连接问题时使用。适用于已有 mihomo 二进制和配置的 Linux 服务器。
安全使用建议
This skill appears to do what it says (generate mihomo config from a subscription and manage the service), but proceed carefully: 1) It requires node, curl, and systemctl though the metadata doesn't declare them — ensure those are present and you understand why. 2) The included script executes curl via a shell command using the provided subscription URL without sufficient escaping, creating a command-injection risk if the URL is maliciously crafted. Only use subscription URLs from trusted providers and avoid copying untrusted links. 3) The skill writes to /opt/mihomo-config/config.yaml and restarts systemd services, so it needs appropriate privileges; back up your existing config before running. 4) If you plan to use this, consider reviewing or patching scripts: replace execSync with a safe HTTP client (e.g., node https/axios or child_process.execFile) or properly sanitize/escape the URL, and run the tool as a non-root user or in a sandbox. 5) If you are not comfortable auditing or patching the code, treat the skill as potentially dangerous and avoid installing it on production systems.
功能分析
Type: OpenClaw Skill
Name: mihomo-proxy
Version: 1.0.0
The skill bundle contains a critical shell injection vulnerability in `scripts/gen_config.js` where the `execSync` function is used to execute a `curl` command with an unsanitized subscription URL. While the tool's stated purpose of managing a Mihomo proxy service is legitimate, the lack of input validation allows for arbitrary command execution if a malicious URL is provided. Additionally, the skill requires high privileges to modify files in `/opt` and manage systemd services, increasing the impact of the vulnerability.
能力评估
Purpose & Capability
The skill's name, description, SKILL.md and included script align with managing mihomo and generating config from subscription feeds. However the package metadata declares no required binaries while the instructions and script clearly expect systemctl, curl, and node (and an existing /opt/mihomo binary and /opt/mihomo-config path). The missing declared runtime dependencies is an inconsistency users should note.
Instruction Scope
Instructions and the script operate within the expected domain (download subscription, parse nodes, write /opt/mihomo-config/config.yaml, restart mihomo). However the script runs a shell curl via execSync using the user-supplied subscription URL inside a template literal: execSync(`curl -sL '${subUrl}' -o ${SUB_FILE}`); this is susceptible to shell/command injection if the URL contains crafted characters (e.g., single quotes or shell metacharacters). The skill also causes writes to system paths and restarts systemd services — expected for this purpose but high-privilege actions that should be run only with trusted inputs and appropriate privileges.
Install Mechanism
This is an instruction-only skill with no install spec, which is low risk for supply-chain installs. But it requires a node runtime to run scripts and curl/systemctl to be present; those runtime requirements are not declared in the metadata.
Credentials
The skill requests no credentials or environment variables and does not attempt to read unrelated secrets. It does read /tmp/sub_raw.txt and write /opt/mihomo-config/config.yaml and assumes permission to restart the mihomo service — these filesystem and service accesses are proportional to managing a local proxy service.
Persistence & Privilege
The skill is not marked always:true and does not request permanent platform-level presence. It writes a configuration file and restarts the mihomo systemd service (expected behavior for this purpose) but does not modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mihomo-proxy - 安装完成后,直接呼叫该 Skill 的名称或使用
/mihomo-proxy触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始发布
元数据
常见问题
mihomo-proxy 是什么?
管理 mihomo (Clash Meta) 代理服务。当用户需要配置、更新、重启代理、切换节点、更新订阅或排查代理连接问题时使用。适用于已有 mihomo 二进制和配置的 Linux 服务器。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 mihomo-proxy?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mihomo-proxy」即可一键安装,无需额外配置。
mihomo-proxy 是免费的吗?
是的,mihomo-proxy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
mihomo-proxy 支持哪些平台?
mihomo-proxy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 mihomo-proxy?
由 LflyIce(@lflyice)开发并维护,当前版本 v1.0.0。
推荐 Skills