Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ollvm13.x生成的clang.exe,替换到vs2022以后,无法混淆 #21

Closed
anywhereyang opened this issue Apr 20, 2022 · 5 comments
Closed

Comments

@anywhereyang
Copy link

我是按以下方式使用的
编译
1 从github下载ollvm13.x
2 用cmake-gui生成sln
3 编译生成clang

替换
用生成的clang.exe,及其它exe全部替换到vs2022的llvm工具集里面

使用
1 vs2022,添了LLVM (clang-cl), 然后选择了LLVM (clang-cl)
2 在c/c++->命令行->添加-mllvm -sub -mllvm -bcf -mllvm -fla
3 重新生成

最后用ida打开生成的exe,但是和代码里面一样.并没有混淆

@heroims
Copy link
Owner

heroims commented Apr 20, 2022

cmake时加-DLLVM_USE_NEWPM=OFF或编译时加-flegacy-pass-manager

@heroims heroims closed this as completed Apr 20, 2022
@anywhereyang
Copy link
Author

试了一下,在要混淆的工程中,
在c/c++->命令行->添加-mllvm -sub -mllvm -bcf -mllvm -fla -flegacy-pass-manager
以后重新生成,还是无任何效果..不知道哪里姿势没对

@b1scoito
Copy link

b1scoito commented Apr 20, 2022

Same thing happening here, running on llvm-13.x compiled with CMake and Ninja, nothing else changed.

@anywhereyang
Copy link
Author

Same thing happening here, running on llvm-13.x compiled with CMake and Ninja, nothing else changed.

切换到12.x就可以了..13.x目前还有问题,,作者好像没处理

@ienthach
Copy link

Same here with Xcode toolchain from obfuscator-llvm13 but this work https://github.com/lemon4ex/obfuscator branch llvm-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants