obfuscator icon indicating copy to clipboard operation
obfuscator copied to clipboard

llvm 14.x 集成ollvm 混淆无效

Open Dfault0 opened this issue 2 years ago • 3 comments

14.x混淆无效:是我哪里做的不对吗?恳请各路大佬帮忙看看,感谢感谢 环境:

  • mac os
  • llvm version:llvm 14.0.5 因为我用首页给的patch的时候,字符串混淆没有相关的参数,所以按照 https://github.com/heroims/obfuscator/issues/14 修改了https://github.com/heroims/obfuscator/files/8455883/ollvm-14.patch.txt,切换到分支14.0.5 编译命令:cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" ../../llvm-project/llvm 因为作者给出了new pass manager的方式,所以没有设置参数:-DLLVM_ENABLE_NEW_PASS_MANAGER=OFF

但是最后使用的时候,用ida查看混淆都没有生效 编译命令:clangPath/clang -isysroot xcrun --show-sdk-path -arch arm64 -mllvm -bcf -emit-llvm -S hello_ollvm.c -o hello_ollvm_bcf.ll

加上编译选项:-DLLVM_ENABLE_NEW_PASS_MANAGER=OFF就可以生效,但是为什么呀,不是已经适配了new pass manager了吗?

Dfault0 avatar Oct 11 '23 10:10 Dfault0

我也无效, 我的llvm 14.0.6 . 大佬 解决了没

Y3U18 avatar Oct 12 '23 02:10 Y3U18

@Dfault0 可以参考这个 https://github.com/DreamSoule/ollvm16,这个可以生效。

Y3U18 avatar Oct 12 '23 06:10 Y3U18

@Y3U18 感谢大佬

Dfault0 avatar Oct 23 '23 11:10 Dfault0