← 返回 Skills 市场
nbf819-web

二维码生成器

作者 nbf819-web · GitHub ↗ · v3.0.0
cross-platform ⚠ suspicious
638
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pr-generator
功能描述
Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and...
安全使用建议
This skill appears to do exactly what it says. Before installing or invoking it: (1) only provide image file paths you trust (the skill will read the file and may embed it in the QR), (2) be aware embedding whole images as base64 often creates very dense or unscannable QR codes—use an image URL when possible, (3) install the listed Python packages in a virtualenv to avoid system-wide package changes, and (4) review/scan the included agent.py if you require extra assurance (it currently performs only local file reading, base64 encoding, and writing to the temp directory).
功能分析
Type: OpenClaw Skill Name: pr-generator Version: 3.0.0 The `agent.py` skill is suspicious due to a Local File Inclusion (LFI) vulnerability. The `image_path` parameter in the `handle_call` function, which is processed by `file_to_base64`, allows reading arbitrary files on the system (e.g., `/etc/passwd`, `~/.ssh/id_rsa`). The content of these files is then base64 encoded and embedded into a QR code image, whose path is returned by the skill. While the skill's stated purpose is to generate QR codes from images, the lack of input sanitization or path restrictions on `image_path` creates a significant information disclosure risk, allowing an attacker to potentially extract sensitive data via crafted input. There is no evidence of intentional malicious behavior like exfiltration to external servers or backdoor installation, classifying this as a vulnerability rather than malware.
能力评估
Purpose & Capability
Name/description (QR code generation) matches the files and declared requirements: the skill only depends on qrcode and Pillow, reads specified local image paths, and writes QR images to the temp directory. There are no unexpected environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md and agent.py restrict file access to supplied image paths and temp dir, and the code returns an image path. Minor note: the implementation embeds local images as base64 data URLs into the QR payload when small enough, which can produce very dense/unscannable QR codes; SKILL.md mentions preferring URLs but does not enforce or warn about scannability. Also the SKILL.md prints full source — that's transparent but not a security issue.
Install Mechanism
No custom install spec; dependencies are standard Python packages (qrcode[pil], Pillow) listed in requirements.txt and suggested pip install in SKILL.md. No downloads from arbitrary URLs or archive extraction.
Credentials
The skill requests no environment variables or credentials. It legitimately reads local image files (as declared) and writes to the system temp directory; that access is proportional to its purpose. Users should be aware that any local file path they pass will be read.
Persistence & Privilege
always is false, no special persistence or system-wide config changes are requested, and the skill does not modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pr-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pr-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
Summary: Major update introducing new features and improved functionality. - Generate QR codes from text, URLs, or local images with automatic compression. - Supports customizable QR code size and colors. - Returns the image path for easy sharing. - Improved error handling for large image files (>10MB). - Expanded usage examples and documentation.
元数据
Slug pr-generator
版本 3.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

二维码生成器 是什么?

Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 638 次。

如何安装 二维码生成器?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pr-generator」即可一键安装,无需额外配置。

二维码生成器 是免费的吗?

是的,二维码生成器 完全免费(开源免费),可自由下载、安装和使用。

二维码生成器 支持哪些平台?

二维码生成器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 二维码生成器?

由 nbf819-web(@nbf819-web)开发并维护,当前版本 v3.0.0。

💬 留言讨论