jrmph13/html-php-obfucator-tool
GitHub: jrmph13/html-php-obfucator-tool
用 Python 实现的 HTML/PHP 代码混淆器,将源码转换为加密 PHP 文件以保护页面逻辑不被直接查看。
Stars: 0 | Forks: 0
# PHP Encryptor / Obfuscator — 文档
一个简单的 html php 混淆器工具,非常适合使用 python 在 shell 中运行
**由 jrmph13 制作**
## 安装说明
### PC / Linux / Mac
```
git clone https://github.com/jrmph13/html-php-obfucator-tool.git
cd html-php-obfucator-tool
```
### Termux (Android)
```
# 1. 安装 Python 和 git
pkg install python git
# 2. 允许访问手机存储(可选)
termux-setup-storage
# 3. 克隆 repo
git clone https://github.com/jrmph13/html-php-obfucator-tool.git
cd html-php-obfucator-tool
# 4. 运行
python run.py
```
## 环境要求
- Python 3.6+
- PHP server(用于运行输出的 `.php` 文件)
- 无需 pip 安装
## 如何使用
### CLI
```
python3 run.py [options]
```
**示例:**
```
# HTML 转换为加密 PHP(默认 level 3)
python3 run.py index.html -output index_encrypted.php
# HTML 转换为加密 PHP,level 4
python3 run.py index.html -output index_encrypted.php -level 4
# HTML 转换为加密 PHP,level 4 + custom mode
python3 run.py index.html -output index_encrypted.php -level 4 --custom
# HTML 转换为加密 PHP,compat mode(用于 php-wasm / 共享主机)
python3 run.py index.html -output index_encrypted.php -level 4 --compat
# PHP 转换为加密 PHP
python3 run.py myfile.php -output myfile_encrypted.php -level 4
# 在浏览器中启动 web UI
python3 run.py --web
# 显示帮助
python3 run.py
```
### Web UI
```
python3 run.py --web
```
打开浏览器 — 粘贴你的 HTML 或 PHP,选择模式和级别,下载输出。
## 选项
| 选项 | 默认值 | 描述 |
|---|---|---|
| `input` | *(必填)* | 输入文件 — `.html` 或 `.php` |
| `-output FILE` | *(必填)* | 输出文件路径 |
| `-level {1,2,3,4}` | `3` | 混淆级别 |
| `--custom` | 关闭 | 自定义加密模式 |
| `--compat` | 关闭 | 不使用 gzip — 适用于 php-wasm / 虚拟主机 |
| `--web` | 关闭 | 启动 Web UI |
## 级别
| 级别 | 描述 |
|---|---|
| 1 | 基础 |
| 2 | 中等 |
| 3 | 高 *(默认)* |
| 4 | 最高 |
## 模式
| 模式 | 何时使用 |
|---|---|
| *(无标志)* | 标准 — 适用于所有常规 PHP 服务器 |
| `--custom` | 更强的混淆,包含额外的垃圾/诱饵代码 |
| `--compat` | 适用于 php-wasm、虚拟主机,或者 gzip 导致错误的情况 |
## 建议
为了对 HTML 文件提供最大程度的保护:
```
python3 run.py yourpage.html -output yourpage.php -level 4 --custom
```
## 故障排除
| 问题 | 解决方案 |
|---|---|
| 找不到 `python` | 改用 `python3` |
| HTTP 500 错误 | 确保服务器是 PHP 7.0+ |
| 空白页面 | 尝试使用 `--compat` 模式 |
| 输出文件过大 | 使用不带 `--custom` 的标准模式 |
| php-wasm 无法运行 | 务必添加 `--compat` 标志 |
*PHP Encryptor / Obfuscator — 由 jrmph13 制作*
标签:DNS 反向解析, OpenVAS, PHP, Python, SOC Prime, WebShell, 代码混淆, 开发工具, 无后门, 逆向工具