namnguyen940308/prometheus-lua-obfuscator
Public
wasmer run namnguyen940308/prometheus-lua-obfuscator
wasmer run namnguyen940308/prometheus-lua-obfuscator
🔥 Prometheus - Lua Obfuscator Web (PHP 8.3)
Web interface cho Prometheus Lua Obfuscator, xây dựng bằng PHP 8.3 (64-bit), tương thích mobile và PC/Mac, có thể deploy lên Wasmer.io.
Tính năng
- Giao diện web responsive đẹp cho mobile và desktop (PC/Mac)
- 4 preset obfuscation: Minify, Weak, Medium, Strong
- Hỗ trợ Lua 5.1 và LuaU (Roblox)
- Copy và download output trực tiếp
- REST API JSON tại
/api/obfuscate - PHP fallback minifier khi Lua không có sẵn
- Tương thích Wasmer.io qua
wasmer.toml
Cấu trúc
prometheus-web/
├── index.php # Web UI chính (responsive)
├── router.php # Router cho PHP built-in server
├── wasmer.toml # Cấu hình deploy Wasmer.io
├── api/
│ └── obfuscate.php # API JSON endpoint
├── src/
│ ├── ObfuscatorEngine.php # Engine gọi Lua hoặc PHP fallback
│ └── LuaMinifier.php # PHP minifier (fallback)
└── lua/
├── cli.lua # Prometheus CLI entry point
└── src/ # Prometheus Lua sources
Chạy Local
Yêu cầu
- PHP 8.3+ (64-bit)
- Lua 5.1 hoặc LuaJIT
# Chạy từ thư mục prometheus-web/
php -S 0.0.0.0:8080 router.php
Mở trình duyệt: http://localhost:8080
Deploy lên Wasmer.io
Bước 1: Cài Wasmer CLI
curl https://get.wasmer.io -sSfL | sh
source ~/.wasmer/wasmer.sh
Bước 2: Đăng nhập Wasmer
wasmer login
Bước 3: Deploy
cd prometheus-web
wasmer deploy
Hoặc publish package:
wasmer publish
Chạy trực tiếp với Wasmer
wasmer run php/php -- -S 0.0.0.0:8080 -t . router.php
API Usage
POST /api/obfuscate
Request (JSON):
{
"lua_code": "print('Hello World')",
"preset": "Medium",
"lua_version": "Lua51",
"pretty_print": false
}
Response:
{
"success": true,
"obfuscated": "return(function(...)...",
"stats": {
"input_size": 20,
"output_size": 12450,
"ratio": 62250.0,
"preset": "Medium",
"lua_version": "Lua51"
}
}
Curl example:
curl -X POST https://your-app.wasmer.app/api/obfuscate \
-H "Content-Type: application/json" \
-d '{"lua_code":"print(\"test\")","preset":"Medium","lua_version":"Lua51"}'
Presets
| Preset | Mức độ | Obfuscation Steps |
|---|---|---|
| Minify | ⭐ | Minify + rename variables only |
| Weak | ⭐⭐ | Vmify + ConstantArray + WrapInFunction |
| Medium | ⭐⭐⭐ | EncryptStrings + AntiTamper + Vmify + ConstantArray + NumbersToExpressions + WrapInFunction |
| Strong | ⭐⭐⭐⭐ | All steps with maximum settings |
Giới hạn
- Kích thước input tối đa: 1MB
- Hỗ trợ Lua 5.1 và LuaU
- Khi Lua không khả dụng: sử dụng PHP minifier (chỉ Minify)
License
AGPL-3.0 (theo license của Prometheus gốc)
Powered by Prometheus Lua Obfuscator | Documentation