Black Obfuscator 是一个用于 Android APK DexFile 的混淆工具,它可以通过控制流扁平化来帮助开发者保护源代码,使其难以被分析。
Black Obfuscator 是一个用于 Android APK DexFile 的混淆工具,它可以通过控制流扁平化来帮助开发者保护源代码,使其难以被分析。
本项目针对Android APK DEX控制流混淆,在不会改变应用原有逻辑的前提下,会将原始代码进行控制流混淆,使得代码难以阅读,增加反编译阅读的难度以达到保护应用。
目前本项目已集成Android Studio插件,支持打包自动化混淆。详情请移至:BlackObfuscator-ASPlugin
GUI工具已开发完成,详情请移至:BlackObfuscator-GUI
| 参数 | 解释 |
|---|---|
| -d | 混淆深度,越高混淆越深 |
| -i | 输入dex的路径 |
| -o | 输出dex的路径 |
| -a | 规则文件,见下一步骤 |
| -p | 需要进行混淆的包名 |
BlackObfuscatorCmd.main("d2j-black-obfuscator",
"-d", "2",
"-i", "/Users/milk/Documents/classes.dex",
"-o", "/Users/milk/Documents/classes_out.dex",
"-a", "filter.txt");#it is annotation
#cn.kaicity
#class
cn.kaicity.gk.cdk.BuildConfig
#package
cn.kaicity
#blackList
!cn.kaicity.gk.cdk
#blackList中的包或者类不会进行混淆Copyright 2021 Milk Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
暂无开放 Issues,或尚未同步最近议题。