hunt-path-traversal SKILL.md skillA
hunt-path-traversal from galact-byte/galact-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add galact-byte/galact-skills/hunt-path-traversal@git:20260806.bbab2e5Pins git:20260806.bbab2e5 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- galact-byte/galact-skills
- Path
skills/hunt-path-traversal/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260806.bbab2e5, committed Aug 6, 2026
- Size
- 5,097 bytes
- Repository stars
- 7
- License
- a license file GitHub does not identify
在授权渗透测试中系统性挖掘路径遍历/目录穿越(path traversal、directory traversal、zip-slip、archive/symlink 写入)。当目标用用户可控的文件名/路径读取、写入、删除、下载、解压文件时使用——典型场景:`../` 读任意文件(源码/密钥/web.xml)、解压覆盖文件拿 RCE、编码绕过前缀校验、规范化差异逃出目录。适用目标类型 Web / REST API / 桌面/移动客户端 / CI。触发场景包括用户说"测下路径遍历/任意文件读取""这个下载参数能不能 ../""解压有没有 zip slip""能读到 /etc/passwd 吗"。输出:带原始请求与读到的越权文件内容为证据的 finding 报告(含 killed 记录)。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# hunt-path-traversal · 路径遍历猎杀 只解决 **路径遍历一类**:任意文件**读**(`../` 出目录)、**写/删**(解压/上传/日志重定向覆盖文件)、以及**规范化/编码差异**绕过前缀校验。核心是找到"用户输入拼进文件路径且规范化不彻底"的点,用**读到越权文件**或**写入标记文件**做客观判定。 任意文件写/删可直达 RCE 或破坏,风险高。默认**读优先**(无害),写/删 PoC 只在 scope 授权时做且只写无害标记文件。关键动作走 `tools/` 脚本。编码族与真实报告见 `reference.md`。 ## Scope(授权范围) **先确认授权,再探测。** 开工前落实: - 授权目标与**允许的操作**(仅读 / 允许写标记文件 / 允许删)。 - 敏感文件读取边界(能否尝试 `/etc/passwd`、源码、密钥)。 - 明确禁止:删除/覆盖真实业务文件、越出授权主机。 任一不清楚就停下问。写/删探测**只针对授权内的无害标记路径**。 ## Goal 判定用户可控路径能否逃出预期目录,达成越权**读/写/删**,给出可复现 PoC 与影响(读源码/密钥、覆盖文件 RCE、跨租户访问),并留存读到的越权内容或写入痕迹为证据。 ## Workflow `scope-check → recon → hunt → validate → report`。 ### 1. scope-check - **输入**:授权范围 + 允许操作。 - **动作**:写 `evidence/scope.txt`(含 allow_write / sensitive_read 标记)。 - **命令**:`bash tools/recon.sh <target> --scope-only`。 - **终止条件**:`evidence/scope.txt` 存在且授权明确,否则 KILL。 ### 2. recon - **输入**:in-scope 目标。 - **动作**:枚举吃文件名/路径的入口——`file=`/`path=`/`name=`/`download=`/`template=`/`page=`、下载/预览/导出、**上传后解压**(zip/tar/nupkg/包管理)、客户端 `file://`/deep link/intent、CI cache key。 - **输出**:`recon/endpoints.json`(入口 + 落点:read / write-extract / client-uri)。 - **命令**:`bash tools/recon.sh <target>`。 - **终止条件**:至少 1 个候选入口,否则记录结束。 ### 3. hunt …
Read the whole file at its exact version.
How to install
mdr add galact-byte/galact-skills/hunt-path-traversal@sha256:358afb06cad29c37The line at the top of this page pins the label git:20260806.bbab2e5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_35dwlhdbzeo7wwsj)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 6, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5097 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
galact-byte/galact-skills · 7 stars · license a license file GitHub does not identify · pushed 2026-10-12 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_35dwlhdbzeo7wwsj GET https://markdownregistry.com/api/v1/resolve?ref=galact-byte/galact-skills/hunt-path-traversal GET https://markdownregistry.com/api/v1/blob/358afb06cad29c37c18bf8e8e0ac0c923aa91853a2b3701aa3a82fd2a88ccbac
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.