GithubHelp home page GithubHelp logo

hzqst / bronyaobfus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aimip02/bronyaobfus

0.0 1.0 0.0 1.14 MB

整合Pluto-Obfuscator和goron部分混淆,移植到LLVM-16.0.x,使用NewPassManager

C++ 99.16% C 0.83% CMake 0.02%

bronyaobfus's Introduction

BronyaObfus

在 Windows 下整合了 Pluto-ObfuscatorArkari 的部分混淆

编译

修改 CMakeLists.txt 第9行和第10行的目录为本地对应的 LLVM 项目目录

mkdir build
cd build
cmake ..

然后用 Visual Studio 打开.sln项目,根据原 LLVM 项目的编译选项选择 Debug/Release 生成项目,根据需要修改 PassRegistry.cpp

使用

  • bogus-control-flow: 虚假控制流
  • flattening: 控制流平坦化
  • mba-substitute: 多项式 MBA 指令替换
  • string-obfus: 字符串加密
  • indirect-call: 间接调用混淆

Visual Studio2022 下载LLVM2022

在项目属性中选择 LLVM

然后在新增的 LLVM 中将Use lld-link关闭

关闭优化,关闭 C/C++ 命令行中的从父级或项目默认设计继承,如果使用 Plugin 来加载 Pass ,`clang-cl.exe`` 的目录设置为编译 Plugin 的 LLVM 目录

opt --load-pass-plugin="<your/dll/path>" --passes='...;...;...' 

或者

clang++ -Xclang -fpass-plugin="<your/dll/path1>" -Xclang -fpass-plugin="<your/dll/path2>"

目前 NewPassManager 似乎不能通过-Xclang -fpass-plugin=... -mllvm ...来传参整合到工具链中,如果需要指定 Pass 只能通过 opt 或者拆分成更小的 Dll 使用

bronyaobfus's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.