Check Python dependencies, RE tools, connected ADB devices, root access, and engine readiness.
检查 Python 依赖、逆向工具链、ADB 设备连接、Root 权限与三引擎就绪状态。
Modular Typer + Rich CLI (src/unpack/cli/) with bilingual output (--lang zh|en), structured logging (--log-level), script-safe exit codes, and JSON/SARIF exports.
基于 Typer + Rich 的模块化 CLI(src/unpack/cli/),支持双语输出(--lang zh|en)、结构化日志(--log-level)、CI 友好退出码及 JSON / SARIF 导出。
| Flag参数 | Values取值 | Description说明 |
|---|---|---|
--lang | en | zh | Switch CLI panels, wizard prompts, and report language (also respects UNPACK_LANG).切换终端面板、向导提示与报告语言(也可通过 UNPACK_LANG 环境变量设置)。 |
--log-level | DEBUG | INFO | WARNING | ERROR | Configure structured diagnostic logging via unpack.logging_config.配置 unpack.logging_config 结构化诊断日志级别。 |
--no-color | flag | Disable ANSI styling for CI logs and file redirection.关闭 ANSI 彩色输出,便于 CI 日志收集与文件重定向。 |
--quiet | flag | Suppress decorative panels for machine-readable pipelines.静默模式,抑制装饰面板,便于脚本与管道消费。 |
--version | flag | Print unified version from unpack.__version__ and exit.输出 unpack.__version__ 版本号并退出。 |
Check Python dependencies, RE tools, connected ADB devices, root access, and engine readiness.
检查 Python 依赖、逆向工具链、ADB 设备连接、Root 权限与三引擎就绪状态。
Identify packer vendor (24 signatures), version, confidence breakdown, and protection level without a device.
免设备静态识别 24 家壳厂商、版本号、6 维置信度分布与保护等级,支持批量扫描。
Deep static inspection of an APK (manifest, signing cert, native ELF libs, permissions) or DEX (classes, methods, Dalvik disassembly).
深度静态检视 APK(Manifest、签名、原生 ELF、权限)或 DEX(类表、方法、Dalvik 反汇编)。
Full automated flow: scan → dispatch engine → dump DEX/SO → optional --deep active invoke → 10-step repair → verify.
全自动脱壳流程:壳识别 → 策略路由 → 提取 DEX/SO → 可选 --deep 主动调用 → 10 步修复 → 质量校验。
Run the 10-step DEX repair pipeline on dumped DEX files (CDEX, header, sections, truncation, map, debug_info, NOP, checksum).
对 dump 产出的 DEX 文件执行 10 步修复流水线(CDEX、头部、越界段、截断恢复、校验和重算等)。
Verify DEX structural integrity, checksums, class/method coverage, and remaining NOP-only methods.
校验 DEX 结构完整性、校验和、类/方法覆盖率以及残留的 NOP 函数抽取方法数。
Classify DEX methods into normal, NOP-extracted, and VMP-stub categories to focus manual RE effort.
按方法粒度分类标注 normal / NOP / VMP-stub,快速锁定虚拟化保护焦点方法。
Build a cross-reference index across strings, method calls, reflection targets, and field accesses with keyword search.
构建字符串、方法调用、反射目标与字段引用的交叉引用索引,支持关键字过滤检索。
Combine original APK resources/manifest with unpacked repaired DEX files into a clean APK for jadx/JEB.
将原始 APK 资源/清单与脱壳修复后的 DEX 重打包为可直接拖入 jadx / JEB 的可分析 APK。
Map dumped DEX classes back onto the original APK multi-DEX layout and numbering.
将散落的脱壳 DEX 按类分布映射回原始 APK 的 multi-DEX 编号布局。
Export dumped DEX artifacts into FART-compatible format (fart.bin + fart.txt) for downstream tooling.
将脱壳产物导出为兼容 FART 生态工具的 fart.bin 与 fart.txt 格式。
Frida-free incremental memory re-scan: exercise exported app components across rounds to trigger lazy method decryption.
免 Frida 增量式重扫:多轮触发 App 组件执行以唤醒按需解密方法并回填增量 DEX。
Generate a commercial security & unpacking audit report in HTML5, Markdown, JSON, or SARIF 2.1.0.
生成商业级安全与脱壳审计报告,支持 HTML5、Markdown、JSON 与 SARIF 2.1.0 标准格式。
Guided 6-stage pipeline planner & runner with live preflight blueprint and zero-device offline or device execution.
6 阶段引导式流水线规划与执行器,支持实时预检蓝图预览、零设备离线执行与真机全流程执行。
Interactive onboarding wizard: inspect environment readiness, pick an analysis goal, preview commands, and run.
交互式新手向导:检测环境状态、选择分析场景、预览命令蓝图并一键执行。
Alias for unpack guide — interactive step-by-step onboarding wizard.
unpack guide 的快捷别名 —— 交互式分步引导向导。
Emit a prompt-wrapped technical scan dossier designed for Unix piping into claude -p or Codex.
输出带分析提示词的纯文本扫描档案,专为管道对接 claude -p 或 Codex 打造。
Launch the 7-view UNPACK Studio commercial web workbench (also exposed as unpack-web script).
启动 7 视图 UNPACK Studio Web 工作台(亦支持独立入口 unpack-web)。
Display active AI provider settings (API key masked) and all 7 built-in provider presets.
展示当前 AI 模型配置(API Key 自动脱敏)及 7 家内置模型预设。
Persist provider, model, base URL (HTTP/HTTPS validated), temperature, timeout, and masked API key.
安全持久化模型服务商、模型名、Base URL(校验 HTTP/HTTPS)、温度、超时与 API Key。
Verify live connectivity, authentication, and response latency against the configured AI provider.
向当前已配置的 AI 模型发起连通性探测,验证鉴权与响应延迟。
Run domain-expert AI reverse-engineering analysis on an APK or DEX target and optionally archive into a workspace.
针对 APK 或 DEX 目标执行领域专家级 AI 逆向研判,可选自动归档至指定工作区。
List saved persistent SQLite workspaces with sample, pipeline run, and AI analysis counts.
列出所有 SQLite 持久化工作区及其样本数、流水线运行数与 AI 分析数。
Inspect samples, pipeline run history, and saved AI briefings inside a specific workspace.
查看指定工作区内的全部样本、流水线执行历史与 AI 分析报告。
Create a new named persistent workspace with optional description and tags.
创建新的持久化工作区,可附带描述与分类标签。
Delete a saved workspace and its archived SQLite snapshots.
删除指定工作区及其归档快照记录。
Export an entire workspace (samples, runs, AI analyses) into a portable JSON snapshot bundle.
将整个工作区(样本、流水线记录与 AI 研判)导出为可移植的 JSON 快照包。
Import a workspace JSON bundle atomically into a restored workspace (auto-relocates matching local APKs).
通过原子事务将工作区 JSON 快照包导入恢复(支持匹配本地 APK 的自动重定位)。
| Code | Constant | Meaning含义 |
|---|---|---|
| 0 | EXIT_OK | Success执行成功 |
| 1 | EXIT_ERROR | General execution or validation error通用错误或参数校验失败 |
| 2 | EXIT_NO_DEVICE | No ADB device connected or authorized未检测到可用 ADB 设备 |
| 3 | EXIT_NO_PACKER | No known packer detected (clean APK)未检出已知加壳特征(未加壳) |
| 4 | EXIT_DUMP_FAILED | Unpack engine failed or yielded 0 DEX files脱壳引擎失败或未提取到有效 DEX |
| 5 | EXIT_NOT_FOUND | Target APK, DEX, or workspace not found目标文件或工作区不存在 |
# Generate SARIF 2.1.0 for GitHub Code Scanning unpack report ./unpacked/ \ --apk app.apk \ --format sarif \ --vmp --xref \ --out unpack-audit.sarif # Machine-readable batch scan across a release folder unpack --quiet --log-level WARNING scan ./apks/ --batch --json batch.json # Pipe scan dossier into Claude CLI unpack analyze app.apk --prompt "Summarize anti-debug hooks & unpack order" | claude -p