Skip to content

This is a simple tool to recommand proper obfuscation configuration file for Android R8(The obfuscator for Java bytecode).

Notifications You must be signed in to change notification settings

Sherll/ORChooser_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORChooser:A simple tool for obfuscation recommandation

ORChooser is a tool for recommending obfuscation rules for bytecode obfuscators and is based on Elitism algorithm. Bytecode obfuscation is an essential technique for protecting intellectual property and defending against Man-At-The-End(MATE) attacks to Java/Android applications. ProGuard is the most widely used Java bytecode obfuscator. Android R8 is a newly launched Java obfuscator to replace ProGuard while developing Android application. By now, ORChooser works will for the two.


Functions & Usage

Before start this demo, you have to add "r8.jar" into this directory.

ORChooser takes original program as input, finally give out the most proper configuration file for corresponding Java obfuscator. This tool can be used with two modes and the specific command can be got with '-h':

cd programs

python3 ORChooser.py -h

python3 ORChooser.py -j Result/ -d ../benchmarks/Compress.jar

python3 ORChooser.py -o Test.cfg -d ../benchmarks/Compress.jar

'-j' means the final file is obfuscated dalvik bytecode and it will be stored into a directory. '-o' means the final file is the obfuscated configuration file '-d' is used to indicate the source file and it must be a '.jar' file.

About

This is a simple tool to recommand proper obfuscation configuration file for Android R8(The obfuscator for Java bytecode).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published