Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
detaped — Detaped is a Python disassembler and decompiler for Duktape. The intended use is for source code review and analysis in situations where you only have the compiled Duktape bytecode binary, such as in a black-box assessment. | Kitploit
工具/GitHubGitHub/nccgroup/detaped
Static AnalysisCode AnalysisReverse EngineeringPenetration TestingBinary Analysis
GitHubnccgroup/detaped

detaped

Detaped is a Python disassembler and decompiler for Duktape. The intended use is for source code review and analysis in situations where you only have the compiled Duktape bytecode binary, such as in a black-box assessment.

查看仓库
33年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Detaped

简介

Detaped 是一个用于 Duktape(GitHub)的 Python 反汇编器和反编译器。其预期用途是在仅拥有已编译的 Duktape 字节码二进制文件的情况下进行源代码审查和分析,例如在黑盒评估中。

功能

  • 解析 JSE 文件格式
  • 反汇编 JSE 二进制文件或二进制文件目录
  • 生成 ASM 风格的指令(一对一的字节码映射)
  • 生成低层次的类 JavaScript 输出
  • 反编译器生成基本的高层次类 JavaScript 输出

支持的版本

  • v2.7.0

用法

root@kitploit:~
└─$ detaped --help                                           
usage: detaped.py [-h] [-o OUTPUT] [-a ASM] [-t TXT] [-n] [-v {none,normal,debug}]
                  [--disable-grouping] [--disable-call] [--disable-jump] [--disable-if-else]
                  [--disable-if-condition] [--disable-try-catch-finally] [--disable-for-loop]
                  [--disable-while-loop] [--disable-init-array] [--disable-init-object]
                  [--disable-get-prop] [--disable-join-operator] [--disable-double-return]
                  input

Duktape JavaScript bytecode decompiler

positional arguments:
  input                 The Duktape bytecode file or directory to be decompiled.

options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        The decompiled output JavaScript file or directory.
  -a ASM, --asm ASM     The output JavaScript ASM file or directory.
  -t TXT, --txt TXT     The command output text file.
  -n, --no-ansi         Disable ANSI color output.
  -v {none,normal,debug}, --verbosity {none,normal,debug}
                        The script output verbosity mode. (Default "normal")

Decompiler Grouping:
  Disable specific decompiler grouping functionality.

  --disable-grouping    Disables all grouping functionality.
  --disable-call        Disables call grouping.
  --disable-jump        Disables jump block grouping.
  --disable-if-else     Disables if/else block grouping.
  --disable-if-condition
                        Disables grouping if statement with preceding condition.
  --disable-try-catch-finally
                        Disables try/catch/finally block grouping.
  --disable-for-loop    Disables for loop block grouping.
  --disable-while-loop  Disables while loop block grouping.
  --disable-init-array  Disables grouping array initialization.
  --disable-init-object
                        Disables grouping object initialization properties.
  --disable-get-prop    Disables grouping get properties.
  --disable-join-operator
                        Disables grouping join operators.
  --disable-double-return
                        Disables grouping return undefined after return.

流程

下图展示了简单的 JavaScript 文件如何被转换为各种状态。

  1. 编译 - 原始文件使用 Duktape 编译为字节码。
  2. 解析 - 使用 Detaped 解析字节码文件结构。
  3. 反汇编 - 将解析后的字节码反汇编为类似 ASM 的文件。
  4. 反编译 - 将反汇编数据反编译为类似 JavaScript 的文件。
  5. 分组 - 将常见的反编译模式分组到更高层次的类 JavaScript 文件。

Process

下载工具