
GoBfuscator 是一款专业级的混淆工具,专为 Go (Golang) 源代码设计。它提供多层保护,使逆向工程变得困难,同时保持 100% 的运行时功能。
主要特性:
git clone https://github.com/luftwaffe66/GoBfuscator.git
cd GoBfuscator
pip install -r requirements.txt
python3 obfuscator.py yourfile.go
这将生成应用了所有保护的 yourfile_obfuscated.go。
标识符重命名:
字符串加密:
代码清理:
| 操作 | 原始 | 混淆后 | 开销 |
|---|---|---|---|
| 启动时间 | 12ms | 15ms | +25% |
| 内存使用 | 8.2MB | 8.5MB | +3.6% |
| 运行时性能 | 1.0x | 1.0x | 0% |
测试在 Go 1.19、Intel i7-1185G7、16GB RAM 上进行
steps:
- name: Obfuscate Go Code
run: |
git clone https://github.com/luftwaffe66/GoBfuscator.git
cd GoBfuscator
python3 obfuscator.py $GITHUB_WORKSPACE/main.go
mv main_obfuscated.go $GITHUB_WORKSPACE/main.go
# Preserve specific identifiers
python3 obfuscator.py --preserve "Config,DBConn" main.go
# Custom encryption key (base64)
python3 obfuscator.py --key "dGhpcyBpcyBhIHNlY3JldCBrZXkh" main.go
解析阶段:
转换阶段:
输出阶段:
我们欢迎贡献!请遵循以下步骤:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)在 MIT 许可证下分发。更多信息请参见 LICENSE。
项目维护者 - @luftwaffe66
🔐 立即保护你的 Go 代码! 给这个仓库点星 以支持该项目。