前言
一天突发奇想,想尝试再vs环境下使用ollvm混淆一下程序,于是有了一下踩坑过程
环境
Vs2019
CMake
Python3
Cmder
集成编译环境:
https://www.jianshu.com/p/ae524033f62a
使用项目:
https://github.com/qtfreet00/llvm-obfuscator
https://github.com/yazhiwang/ollvm-tll
https://github.com/Tai7sy/vs-obfuscation
https://marketplace.visualstudio.com/items?itemName=MarekAniola.mangh-llvm2019
编译时注意事项
集成VS编译环境:
参考:
https://github.com/Tai7sy/vs-obfuscation
修改成自己编译的LLVM路径
使用时候的问题
版本问题
在项目添加预编译宏:
_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
另一种办法
vs2019中已经支持使用LLVM
据说只要替换掉原版的 Clang 就可以实现混淆编译
但是我还没时间尝试过这种方法
有成功的朋友可以告诉我
参考:
https://blog.his.cat/a/vs_obfuscation.cat
https://chordp.github.io/2020/10/14/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8LLVM%E7%BC%96%E8%AF%91Windows%E9%A9%B1%E5%8A%A8-%E6%B7%B7%E6%B7%86-Asm/
https://www.yuque.com/cryzlasm/study/cz12im?language=zh-cn