Gopartner/obfuscation-toolkit

GitHub: Gopartner/obfuscation-toolkit

一款用 Rust 编写的 PHP 混淆代码解码/编码工具包,支持 FOPO 等多种格式的检测、批量解码与代码格式化。

Stars: 0 | Forks: 0

# 混淆工具包 PHP obfuscation 解码/编码工具包。将被 obfuscate 的 PHP 文件(如 FOPO 等)解码为人类可读的代码。 ## 功能 - **Decode** — 将 obfuscated 的 PHP 文件转换为干净的代码 - **Encode** — 将 PHP 代码编码为 FOPO 格式 - **Detect** — 检测所使用的 obfuscation 格式 - **Analyze** — 分析 IonCube 文件(变量、函数、类) - **Batch** — 批量处理多个文件 - **Pretty Print** — 自动格式化 decode 结果,使其更整洁 ## 下载 在 [Releases](https://github.com/Gopartner/obfuscation-toolkit/releases) 下载 Windows 版二进制文件。 文件:`obfuscation-toolkit.exe` ## 使用方法 ### 1. Decode obfuscated 文件 ``` obfuscation-toolkit.exe decode file_obfuscated.php ``` 输出:`file_obfuscated_decoded.php` ### 2. Decode + 覆盖(自动备份) ``` obfuscation-toolkit.exe decode file.php --overwrite ``` 原始文件将被覆盖,备份保存在 `file.php.bak` ### 3. Decode + 自动格式化(推荐) ``` obfuscation-toolkit.exe decode file.php --overwrite --pretty ``` ### 4. Decode 到其他文件 ``` obfuscation-toolkit.exe decode file.php -o output.php --pretty ``` ### 5. 检测格式 ``` obfuscation-toolkit.exe detect file.php ``` 输出示例: ``` File: "file.php" Size: 29888 bytes Format: FOPO ``` ### 6. 批量 decode ``` obfuscation-toolkit.exe batch ./encoded_files/ -o ./decoded_files/ ``` ### 7. Verbose 模式 添加 `-v` 查看处理详情: ``` obfuscation-toolkit.exe decode file.php -v ``` 输出示例: ``` === FOPO DECODER === L1 size: 16520 bytes TRUE branch: 8234 bytes FALSE branch: 2385 bytes --- Decoding FALSE branch --- Layer 1: 2385 bytes Layer 2: 2309 bytes Layer 3: 2064 bytes Layer 4: 1825 bytes Layer 5: 1580 bytes Layer 6: 1337 bytes Found class/function definition at layer 6 ``` ## 所有命令 ``` obfuscation-toolkit.exe Commands: decode Decode obfuscated PHP file encode Encode PHP file detect Detect obfuscation format analyze Analyze IonCube encoded file batch Batch process directory help Print help message ``` ### Decode 选项 ``` obfuscation-toolkit.exe decode --help Usage: obfuscation-toolkit.exe decode [OPTIONS] Options: -o, --output Output file -v, --verbose Verbose output --overwrite Overwrite input (backup .bak) -p, --pretty Auto-format PHP code -h, --help Print help ``` ### Detect 选项 ``` obfuscation-toolkit.exe detect --help Usage: obfuscation-toolkit.exe detect [OPTIONS] Options: -v, --verbose Verbose output -h, --help Print help ``` ### Batch 选项 ``` obfuscation-toolkit.exe batch --help Usage: obfuscation-toolkit.exe batch [OPTIONS] Options: -o, --output Output directory -p, --pattern File pattern [default: *.php] -v, --verbose Verbose output -h, --help Print help ``` ## 支持的格式 | 格式 | Decode | Encode | 说明 | |--------|--------|--------|------------| | FOPO | 是 | 是 | Free Online PHP Obfuscator | | 通用(base64+gzinflate) | 是 | 是 | Base64 + gzip 压缩 | | IonCube | 是(分析) | 否 | 专有,只读 | ## 结果示例 ### 处理前(obfuscated) ```
标签:DAST, DNS 反向解析, OpenVAS, PHP, 云资产清单, 代码混淆, 可视化界面, 恶意软件分析, 搜索语句(dork), 文档结构分析, 解码工具, 逆向工程, 通知系统