跳到正文
Skillpedia
安全42k · #6427

competition-file-parser-chain

它能做什么

这个工具可以帮你了解你上传到系统中的文件是如何被一步步处理的。它会追踪文件从进入系统开始,经过解压、转换和解析,直到最终结果的全过程。

适用场景

  • ✓当你想知道文件上传后经历了哪些处理时。
  • ✓当你想确认文件是否被正确解压或转换时。
  • ✓当你在调查某个特定文件为何导致系统出现问题时。

技能链接

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-file-parser-chain/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-file-parser-chain/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我上传 document.zip 之后,这个文件是怎么被处理的?”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会记录文件处理的每一步:文件被临时保存在哪里、是否从压缩包中解压出来、是否被转换成了其他格式,以及由哪个程序分析了它的内容。由此会生成一张文件流转的“地图”。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Competition File Parser Chain

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the hard part is following a file from ingress through every parser, extractor, converter, or deserializer boundary that matters.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Preserve the original upload and every derived artifact separately.
  2. Map the chain in order: ingress, temp storage, archive extraction, format conversion, parser call, deserialization, and final consumer.
  3. Record filenames, MIME guesses, extensions, temp paths, and parser choices before mutating anything.
  4. Separate client-visible validation from backend parser behavior.
  5. Reproduce the smallest file-processing chain that yields the decisive branch or artifact.

Workflow

1. Map File Ingress And Derivation

  • Record request shape, multipart names, content type, filename, temp paths, upload staging, and storage keys.
  • Note every derived artifact: extracted archive member, converted preview, generated thumbnail, temp document, or deserialized object.
  • Keep original file and each derivative labeled separately.

2. Trace Parser And Conversion Boundaries

  • Show which parser, converter, extractor, or deserializer runs at each step.
  • Record parser-specific decisions driven by extension, MIME, magic bytes, schema, archive member names, or embedded metadata.
  • Distinguish parsing success, preview success, conversion success, and business-logic acceptance.

3. Reduce To The Decisive File Chain

  • Compress the result to the smallest sequence: upload -> derived artifact -> parser boundary -> resulting effect.
  • State clearly whether the decisive weakness lives in archive handling, MIME inference, file conversion, path resolution, or deserialization.
  • If the chain becomes mostly a generic async worker problem after enqueue, hand off to the tighter queue or worker skill.

Read This Reference

  • Load references/file-parser-chain.md for the ingress checklist, parser checklist, and evidence packaging.

What To Preserve

  • Original uploads, derived files, temp paths, storage keys, parser names, and conversion steps
  • The exact boundary where backend behavior diverges from user-visible validation
  • One minimal replayable file-processing sequence that reaches the decisive effect
常见问题

什么是“反序列化”?

反序列化是指把为了存储或传输而转换成某种格式(比如文本)的数据,重新还原成程序可以直接使用的形式的过程。

什么是“magic bytes”?

它们是文件开头的一段字节序列,即使文件扩展名(比如 .jpg)错误或缺失,系统也能借此识别文件类型。

为什么要把用户可见的校验和后端行为区分开来看?

这样可以弄清问题究竟是因为用户看到了错误的提示信息,还是因为真正的故障出在用户看不到的系统内部处理环节。

详情

作者的原始描述

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for file uploads, imports, previews, archive extraction, format conversion, parser invocation, and deserialization chains. Use when the user asks to inspect an upload or import path, trace archive extraction, preview or converter behavior, explain how a file reaches a parser or deserializer, or connect one uploaded artifa

repo: zhaoxuya520/reverse-skill

热度

GitHub 星标
42k
排名
#6427
许可证
MIT
更新时间
2026/9/22

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能