Js reverse

From lza6/Armor-piercing-system-prompts · View interactive version

Js reverse is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Front-end JavaScript reverse engineering: locate signature chains, analyze encrypted request parameters, sample runtime behavior, and reproduce logic locally in Node for evidence-based output.

How to use this skill

Skill file

⚠️ AUTHORIZED USE ONLY

This skill is for educational purposes or authorized security assessments only.

You must have explicit, written permission from the system owner before using this tool.

Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate

Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

1. Ask the user to state the exact target URL, IP, account, or resource.

2. Ask the user to confirm written authorization and the permitted scope.

3. Show the exact command(s) and explain their expected effect.

4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

MCP 前端 JS 逆向作业规范

When to Use

适用范围

当任务属于以下场景时优先使用本 skill:

如果目标是二进制、APK、PE、ELF、DLL、SO,请改用 ida-reverse、radare2 或 reverse-engineering。

当前环境默认工具映射

本 skill 不假设存在裸工具名,而是默认绑定当前客户端环境里可用的 js-reverse_* 工具。

如果当前任务明确提到 jshookmcp、JS hook、CDP、浏览器断点、网络拦截、SourceMap 或 AST 去混淆,也仍然走本 skill;只是把底层 MCP 面切到 jshookmcp,而不是把它当成一个新的总入口。

前提条件:jshookmcp 不是本地裸命令工具,而是一个要先下载、显式注册并启用的 MCP server。只有在所选客户端(Claude、Codex 等)的 MCP 配置里接入并启用后,相关工具面才真的可调用。

常用映射:

如果未来工具名前缀变化,先更新本节,不要在执行时临时猜测。

jshookmcp 的定位

核心原则

先页面观察,再最小化采样,再做本地补环境,不要跳过取证直接猜环境。

五阶段工作流

1. Observe

目标:先确认目标请求、相关脚本、候选函数,不猜环境。

默认动作:

必须产出:

2. Capture

目标:对目标请求做最小侵入采样,拿到参数样例、调用顺序、运行时证据。

规则:

3. Rebuild

目标:把页面证据整理成本地可迭代的 Node 复现材料。

规则:

4. Patch

目标:按报错和 first divergence 驱动补环境,直到本地脚本稳定跑出目标参数。

规则:

5. DeepDive

目标:本地跑通后,再做去混淆、控制流还原、业务逻辑提纯。

规则:

执行要求

必读引用


路由上下文

上游入口: skills/SKILL.md(总控)、routing.md

上游备选:

下游出口:

同级关联模块: anything-analyzer MCP(浏览器自动化和 HTTP 捕获能力可以互补)


按需自举(On-Demand Bootstrap)

本 skill 依赖的 MCP 能力可通过统一自举系统安装;MCP 客户端注册必须显式选择目标,默认不会写任何客户端全局配置。

自动化能力边界

| 能力 | 可自动注册 | 方式 | 说明 |

|------|-----------|------|------|

| jshookmcp | ✓ | npm-mcp(npx 启动) | 显式选择 Claude / Codex / Both 后注册 |

| anything-analyzer | ✓ | local-http-mcp | 可自动启动服务;客户端注册须显式选择 |

| Node.js | ✓ | winget 安装 | 运行时依赖 |

自举方式

# 安装并注册 jshookmcp;Codex 可替换为 Claude 或 Both
powershell -File "<skill-root>\scripts\bootstrap-reverse.ps1" -Capability @('jshookmcp') -McpHostTarget Codex

# 注册并启动 anything-analyzer
powershell -File "<skill-root>\scripts\bootstrap-reverse.ps1" -Capability @('anything-analyzer') -StartServices -McpHostTarget Codex

注意事项

<br><br>## 任务完成自检(声称完成前 MUST 通过)

Limitations

Adapted from zhaoxuya520/reverse-skill (MIT).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.