# WasmLens：探索性 WebAssembly 检查

> 提供 WebAssembly 区段与函数签名检查、WAT 风格指令列表和有限 C 风格伪代码重建的 Python CLI。所收录的是面向受支持模块的探索性静态分析路径，不代表恢复原始源码或实现完整 WebAssembly 运行时。

- 类型：工具
- 目标：二进制
- 类别：WebAssembly 工具
- 关联：基础工具
- 来源复核于：2026-10-20
- 收录于：2026-10-20
- 原始资源：<https://github.com/alexandrmotologa/wasmlens>
- 一手来源：<https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/wasmlens/>
- 记录 JSON：<https://awesomerea.org/resources/wasmlens/record.json>
- 英文版：[English](https://awesomerea.org/resources/wasmlens/index.md)

## 使用条件与局限

- 所审阅的包声明版本 0.1.0、Python >=3.10，依赖 Typer、Rich、FastAPI、Uvicorn、Pydantic、NetworkX 与 python-multipart；pytest/httpx 属于开发依赖。源码包含 MIT LICENSE。依赖声明了版本下限。
- info、disasm 和 decompile 命令通过同一解析器读取用户提供的 .wasm 文件。解析器没有 0xFD SIMD 解码分支，可能将不支持的操作码标记为 unknown。
- WAT 风格模块列表不是无损重汇编格式：数据段仅保留最多 32 字节的预览，活动数据段的偏移使用占位符。C 风格重建器对未处理指令没有通用后备处理，仅取首个返回类型，并以注释表达分支标签。
- 分派代码缺少浮点算术、间接调用等操作的处理器，遇到未处理指令时可能推进程序计数器而不实现其效果。
- 只应提供有权分析的模块。

## 一手来源

1. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/README.md>
2. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/pyproject.toml>
3. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/LICENSE>
4. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/cli/main.py>
5. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/parser/module.py>
6. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/parser/section_parser.py>
7. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/parser/opcodes.py>
8. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/disassembler/wat_formatter.py>
9. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/decompiler/reconstructor.py>
10. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/decompiler/ast.py>
11. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/src/wasmlens/emulator/vm.py>
12. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/tests/test_decompiler.py>
13. <https://github.com/alexandrmotologa/wasmlens/blob/2351cccea90f812053b30d1ad14816d3c664a4f7/tests/test_parser.py>

## 同分区更多条目：网站

- [synchrony JavaScript 反混淆工具](https://awesomerea.org/zh/resources/synchrony/index.md) · 工具
- [sourcemapper 源映射源码还原工具](https://awesomerea.org/zh/resources/sourcemapper/index.md) · 工具
- [ngrev Angular 应用结构分析工具](https://awesomerea.org/zh/resources/ngrev/index.md) · 工具
- [jsluice JavaScript 静态提取工具](https://awesomerea.org/zh/resources/jsluice/index.md) · 工具
- [REstringer JavaScript 反混淆工具](https://awesomerea.org/zh/resources/restringer/index.md) · 工具
- [CRX Viewer 浏览器扩展源码查看器](https://awesomerea.org/zh/resources/crxviewer/index.md) · 工具

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
