← 返回 Skills 市场
Url Images To Pdf
作者
JerryLiu3502
· GitHub ↗
· v1.0.2
511
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install url-images-to-pdf
功能描述
从URL提取图片并生成PDF(保持原文顺序,不排序)
安全使用建议
This script is functionally coherent but has two actionable issues to consider before installing or running it: (1) It is narrowly targeted to WeChat (mmbiz) image URLs even though the doc claims general webpage support — expect it to miss images on many sites. (2) Command-injection risk: the code uses execSync with a shell string that includes the raw URL. If you or the agent will pass URLs you don't control, don't run it as-is. Suggested mitigations: replace the curl execSync call with a safe HTTP fetch implemented in Node (https/http or node-fetch/axios) or call curl via execFile/child_process.spawn with arguments (not via a single shell string), validate and strictly sanitize the URL (allow only https URLs and reject characters like backticks, $(), semicolons), and declare curl as a dependency in SKILL.md if you keep it. Also consider expanding or making the image-extraction regexes configurable if you expect non-mmbiz pages. Finally, test the script in an isolated environment (sandbox) before running on sensitive hosts.
功能分析
Type: OpenClaw Skill
Name: url-images-to-pdf
Version: 1.0.2
The `extract.js` script contains a critical command injection vulnerability. It uses `child_process.execSync` to execute a `curl` command with user-provided input (`process.argv[2]`) without proper sanitization. This allows an attacker to inject arbitrary shell commands via the URL argument, leading to Remote Code Execution (RCE). While this is a severe vulnerability, there is no clear evidence of intentional malicious behavior (e.g., data exfiltration, persistence) by the skill itself, classifying it as suspicious rather than malicious.
能力评估
Purpose & Capability
The skill claims to extract images from arbitrary webpage URLs, but the implementation only looks for mmbiz/WeChat-style image URLs (regexes target mmbiz.qpic.cn and mmbiz.* patterns). That mismatch means it may fail on non-WeChat pages despite its general description.
Instruction Scope
SKILL.md instructs only to have Node.js and pdfkit, but the script calls curl via execSync to fetch the page. The README does not declare curl as a dependency. More importantly, execSync is used with a command string incorporating the user-supplied URL: execSync(`curl -sL -A "Mozilla/5.0" "${url}"`, …). Because this is executed via the shell, a maliciously crafted URL could be used for shell/command injection. The script also writes to /tmp and the current working directory (expected) and downloads remote images (expected).
Install Mechanism
There is no install spec and no external downloads in install-time metadata; the skill is instruction + a local JS file. That is lower risk than arbitrary remote installers.
Credentials
The skill requests no environment variables or credentials and does not access any system credentials or config paths beyond writing temporary files to /tmp and the output PDF to the current directory.
Persistence & Privilege
The skill is not always-enabled, does not request persistent system-wide changes, and does not modify other skills' configurations.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install url-images-to-pdf - 安装完成后,直接呼叫该 Skill 的名称或使用
/url-images-to-pdf触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Updated description to clarify that images are not sorted and original order is preserved
- Bumped version to 1.0.2
v1.0.1
- 图片在生成PDF时,保持网页原文中的顺序
- 更新描述,突出图片顺序特性
v1.0.0
url-images-to-pdf v1.0.0
- Initial release.
- Extracts images from any webpage URL and generates a PDF.
- Supports PNG and JPG image extraction.
- Provides easy usage instructions for both command-line and OpenClaw invocation.
- Requires Node.js and pdfkit.
元数据
常见问题
Url Images To Pdf 是什么?
从URL提取图片并生成PDF(保持原文顺序,不排序). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 511 次。
如何安装 Url Images To Pdf?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install url-images-to-pdf」即可一键安装,无需额外配置。
Url Images To Pdf 是免费的吗?
是的,Url Images To Pdf 完全免费(开源免费),可自由下载、安装和使用。
Url Images To Pdf 支持哪些平台?
Url Images To Pdf 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Url Images To Pdf?
由 JerryLiu3502(@jerryliu3502)开发并维护,当前版本 v1.0.2。
推荐 Skills