obfuscator android

工具

需要安装工具:git,cmake,make,gcc,g++。注意:cmake需要到官网上下载安装

下载&编译
git clone -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/
# 如有异常可以,不启用测试。
# cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/

# 数字7表示编译使用的线程,如果太卡,使用低一点的数字,太慢,用高一点的。
make -j7
下载NDK
1. linux
https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip?hl=zh_cn
2. mac
https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip?hl=zh_cn

需要下载r10e 版本,其他版本可能不支持。
$NDK_PATH配置环境变量到 PATH

放置toolchains
下载toolchain 放置到$NDK_PATH/toolchains 下 
1. linux
https://raw.githubusercontent.com/Fuzion24/AndroidObfuscation-NDK/master/prebuilt/android-ndk64-r10-linux-x86_64-obfuscator.tar.bz2
2. mac
https://raw.githubusercontent.com/Fuzion24/AndroidObfuscation-NDK/master/prebuilt/android-ndk32-r10-darwin-x86_64-obfuscator.tar.bz2

修改参数
修改文件 $NDK_PATH/toolchains/arm-linux-androideabi-clang3.4-obfuscator/setup.mk

在 TARGET_CC 前增加一行,路径设置为obfuscator-llvm 的build 路径。
LLVM_TOOLCHAIN_PATH := <PATH_TO_OBFUSCATOR_REPO>/build/bin/
TARGET_CC := $(LLVM_TOOLCHAIN_PATH)clang$(HOST_EXEEXT)
TARGET_CXX := $(LLVM_TOOLCHAIN_PATH)clang++$(HOST_EXEEXT)

修改Application.mk
APP_CFLAGS := -mllvm -bcf -mllvm -sub -mllvm -fla
NDK_TOOLCHAIN_VERSION := clang3.4-obfuscator
APP_STL := c++_shared

配置完成,使用ndk-build编译

Extra 上交大版本
https://github.com/GoSSIP-SJTU/Armariris

http://fuzion24.github.io/android/obfuscation/ndk/llvm/o-llvm/2014/07/27/android-obfuscation-o-llvm-ndk/

转载于:https://my.oschina.net/zdglf/blog/3101150

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of this package is to work straight out of the box with no extra steps required. While other obfuscators can stop a game from working, Beebyte's obfuscator looks for specific Unity related code that must be protected. The contents of your source files are unchanged, the obfuscation targets the compiled assembly. Features: - Supports IL2CPP - Supports Assembly Definition Files (Unity 2017.3+) - Removes Namespaces without any conflicts - Recognises Unity related code that must not be changed - Renames Classes (including MonoBehaviours†) - Renames Methods - Renames Parameters - Renames Fields - Renames Properties - Renames Events - String literal obfuscation - Adds fake methods - Easy and extensive customisation using the Unity inspector window - Consistent name translations are possible across multiple builds and developers - Semantically secure cryptographic naming convention for renamed members The asset works for both Unity Free and Unity Pro version 4.2.0 onwards (including Unity 5 & 2017 & 2018). Build targets include Standalone, Android, iOS, WebGL, UWP. Other platforms are not guaranteed or supported but may become supported at a future date. † There is currently a bug with renaming MonoBehaviour classes on Unity 2018.2. A bug report has been submitted to Unity. IL2CPP builds are much harder to reverse engineer but strings and member information (class, method names etc) are visible in the global-metadata.dat file. Obfuscation will apply to this file adding further security. Why not complement your security with the Anti-Cheat Toolkit - a great third party asset. For more information about the Obfuscator, please see the FAQ
Obfuscator Pro was developed to increase your software and game security, especially for applications built with Unity. Its main objective is to conceal your own proprietary source code, and third party compiled dotNet assemblies as well. We support all known platforms, whether standalone or embedded. What are Obfuscator Pro’s features? Being designed for Unity, Obfuscator Pro considers Unity’s unique characteristics, like MonoBehaviours, ScriptableObjects, Serialization and Reflection, giving you a powerful but easy, and out-of-the box working obfuscator. Obfuscator Pro features range from: - Member Renaming: - Namespaces - Classes (also MonoBehaviour and ScriptableObject subclasses) - Methods - Fields - Properties - Event - String obfuscation - Adding random code - Anti debugging up to quality-of-life features like: - Full obfuscation workflow customization - StackTrace de-obfuscation to allow restoring and debugging of even the most secured assemblies But why should you choose Obfuscator Pro? Obfuscator Pro makes it nearly impossible for the bad guys to steal your source code. It also gets regular updates to ensure the high standard of security in the future. Our tool makes sure your source code gets so entangled through renaming, random code and string obfuscation, it will be nearly impossible for anyone to get or analyze your original code. Obfuscator Pro is the only Unity3d Obfuscator that considers Namespace obfuscation and MonoBehaviour/ScriptableObject obfuscation for all platforms. Wait. That’s not the best yet! The best feature of it all is that the obfuscator is not obfuscated by itself. Why is that so important? It allows you to have a look at the obfuscator assemblies itself and keep track of the workflow! Other obfuscators on the market do not offer this transparency, forcing you to rely solely on their word. Not their tech.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值