360 Secure SkillHub
360 安全技能中心

inline-asset-probe

该 Skill 是一个 PowerShell 脚本工具:调用 curl 或 wget 抓取指定 URL,扫描 HTML/CSS 中的内联 data:*;base64 资源并按 MIME 后缀保存为文件;可选保存原始响应,并对响应内容做尽力而为的 base64 解码,适合快速检查页面内嵌资源。

分类:效率
yibeiqingtian-ai
yibeiqingtian-ai
热度 6.48
最近更新 2026-05-11 17:33:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yibeiqingtian-ai/inline-asset-probe
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
inline-asset-probe
version
0.1.0
description
Fetch a URL with curl/wget, extract inline base64 data URIs, and best-effort decode any content to inspect embedded assets.

Inline Asset Probe

Practical utility for quickly extracting inline assets from HTML or CSS and inspecting base64-encoded payloads.

What It Does

  • Fetches a target URL using curl or wget
  • Scans for inline data:*;base64, assets and saves them as files
  • Optionally base64-decodes the entire response as a best-effort probe

Usage

PowerShell:

powershell -ExecutionPolicy Bypass -File run.ps1.txt -Url https://example.com

Save raw response and decode any content:

powershell -ExecutionPolicy Bypass -File run.ps1.txt -Url https://example.com -SaveResponse -DecodeResponse

Limit extracted assets and choose output directory:

powershell -ExecutionPolicy Bypass -File run.ps1.txt -Url https://example.com -OutDir probe_out -MaxAssets 20

Output

  • probe_out/response.bin when -SaveResponse
  • probe_out/assets/asset_*.ext for extracted inline assets
  • probe_out/decoded.bin when -DecodeResponse

Notes

  • -DecodeResponse performs a best-effort base64 decode of any content by stripping non-base64 characters and padding to a 4-byte boundary.
  • Works best for HTML/CSS pages with inline data URIs.