Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2.22 KB

README_EN.md

File metadata and controls

79 lines (63 loc) · 2.22 KB

DexFile Control Flow Flattening · BlackObfuscator

Black Obfuscator is an obfuscator for Android APK DexFile, it can help developer to protect source code by control flow flattening, and make it difficult to analyze the actual program control flow.

Declaration

  • This project was modified based on dex2jar .
  • The project is an initial version at present, this version pays attention to application stability, it will continue to be updated.
  • QQ Group: 390562046

Matters Need Attention

  • This project was based on dex2jar, please just obfuscate the business code, third party libraries excluded.

Usage

Main#main

Parameter Description
-d Obfuscation depth (The higher that number is, the more complex it is to obfuscate the code)
-i DexFile path
-o Output path
-a Rules file path
-p The packages which need to be obfuscated
    BlackObfuscatorCmd.main("d2j-black-obfuscator",
            "-d", "2",
            "-i", "/Users/milk/Documents/classes.dex",
            "-o", "/Users/milk/Documents/classes_out.dex",
            "-a", "filter.txt");

Obfuscation Rules

Provide the classes which need to be obfuscated

#it is annotation
#cn.kaicity

#package
cn.kaicity.gk.cdk.BuildConfig

#class
cn.kaicity

Future plans

  • Support Android Studio , obfuscate code automatically
  • More powerful obfuscation
  • Develop GUI

Preview

Original Code

xx

Obfuscated Code

xx xx

References

License

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.