Skip to content
/ ollvm-16 Public
forked from wwh1004/ollvm-16

Obfuscator-LLVM for LLVM 16.x branch

Notifications You must be signed in to change notification settings

3cly/ollvm-16

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

OLLVM-16

Obfuscator-LLVM for LLVM 16.x branch

Porting tutorial: 将OLLVM从LLVM4移植到LLVM16

Features

  1. Original obfuscation passes including bogus control flow (-bcf), split basic block (-split), control flow flattening (-fla) and substitution (-sub).
  2. Porting to new pass manager
  3. Many bugs fixed

Usage

clang -mllvm -sub -mllvm -split -mllvm -fla -mllvm -bcf main.c
clang -mllvm -sub -mllvm -sub_loop=3 -mllvm -split -mllvm -split_num=3 -mllvm -fla -mllvm -bcf -mllvm -bcf_loop=3 -mllvm -bcf_prob=40 main.c

Building

1. Add Source

Move 'Obfuscation' directory to 'llvm-project/llvm/lib' directory.

2. Update CMakeLists.txt

Find 'llvm-project/llvm/lib/CMakeLists.txt' and append 'add_subdirectory(Obfuscation)'

3. Configure CMake

Pass '-DLLVM_OBFUSCATION_LINK_INTO_TOOLS=ON' to CMake (If you use Windows)

Downloads

I've built llvm-16.x with this repo for Windows X86 user. You can download binaries in GitHub Releases page.

About

Obfuscator-LLVM for LLVM 16.x branch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.8%
  • CMake 0.2%