安装环境:Ubuntu16.04
- 安装autoconf
下载llvm obfuscator的源代码
git clone -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git
- 增加String Obfuscator功能模块
进入到项目https://github.com/GoSSIP-SJTU/Armariris中,找到lib/Transforms/Obfuscation下面的StringObfuscation.cpp并拷贝到下载好的obfuscator相应的目录下面,当然,也可以进入到/obfuscator/lib/Transforms/Obfuscation,使用下面的命令:
wget https://github.com/GoSSIP-SJTU/Armariris/blob/master/lib/Transforms/Obfuscation/StringObfuscation.cpp
另外,把https://github.com/GoSSIP-SJTU/Armariris中include/llvm/Transforms/Obfuscation/下的StringObfuscation.h拷贝到/obfuscator/include/llvm/Transforms/Obfuscation中,当然,也可以进入到/obfuscator/include/llvm/Transforms/Obfuscation,使用下面的命令:
wget https://github.com/GoSSIP-SJTU/Armariris/blob/master/lib/Transforms/Obfuscation/StringObfuscation.cpp