← Back to Skills Marketplace
jerryliu3502

Url Images To Pdf

by JerryLiu3502 · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
511
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install url-images-to-pdf
Description
从URL提取图片并生成PDF(保持原文顺序,不排序)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install url-images-to-pdf
  3. After installation, invoke the skill by name or use /url-images-to-pdf
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug url-images-to-pdf
Version 1.0.2
License
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Url Images To Pdf?

从URL提取图片并生成PDF(保持原文顺序,不排序). It is an AI Agent Skill for Claude Code / OpenClaw, with 511 downloads so far.

How do I install Url Images To Pdf?

Run "/install url-images-to-pdf" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Url Images To Pdf free?

Yes, Url Images To Pdf is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Url Images To Pdf support?

Url Images To Pdf is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Url Images To Pdf?

It is built and maintained by JerryLiu3502 (@jerryliu3502); the current version is v1.0.2.

💬 Comments