百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AntiOllvm

> 编程语言
开源

带有虚假运行时的 AntiOllvm 漏洞

190 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

带有虚假运行时的 AntiOllvm 漏洞

AntiOllvm

Introduction

AntiOllvm is an Arm64-based simulated execution framework designed to remove OLLVM's flattening obfuscation. By identifying specific patterns, it can reconstruct the complete set of if-else branches, facilitating reverse engineering and analysis.

Table of Contents

  • Introduction
  • Features
  • How To Customize Your Analyzer
  • How to Use
    • 1. Get the CFG Info from the IDA Python Script
    • 2. Run AntiOllvm
    • 3. Run gen_machine_code.py
    • 4. Rebuild CFG in IDA
  • How To Build
  • Additional Resources

Features

  • Arm64 Support: Optimized for Arm64 architectures.
  • Obfuscation Removal: Specifically targets and removes OLLVM's flattening obfuscation.
  • CFG Reconstruction: Rebuilds comprehensive control flow graphs with complete if-else branches.
  • IDA Integration: Seamlessly works with IDA for analysis and rebuilding CFGs.
  • Extensible: Easily customizable analyzer for various use cases.

How To Customize Your Analyzer

Coming Soon...

How to Use

1. Get the CFG Info from the IDA Python Script

Follow these steps to extract the Control Flow Graph (CFG) information using the provided IDA Python script.

python
# Edit ida_get_cfg.py

def main():
    # Choose your function address
    func_addr = 0x181c6c  # Replace with your function address
    
    # Edit your output file path
    output_file = "C:/Users/PC5000/PycharmProjects/py_ida/cfg_output_" + hex(func_addr) + ".json"

    # Run the script
    # 1. Open IDA
    # 2. Navigate to File -> Script file -> Choose ida_get_cfg.py
    # 3. Check the output file for the CFG information

2. Run AntiOllvm

Execute the AntiOllvm tool with the CFG output.

bash
./AntiOllvm.exe -s cfg_output_xxxx.json

3. Run gen_machine_code.py

Generate the machine code using the provided Python script. This script relies on the Keystone Engine, so ensure it's installed.

1. Install Keystone Engine

bash
pip install keystone-engine

2. Edit gen_machine_code.py:

python
json_file_path = "fix.json"  # Replace with your fix.json path

3. Run the script:

bash
python gen_machine_code.py

4. Rebuild CFG in IDA

Reconstruct the CFG within IDA using the generated machine code.

python
# Run the script

# Steps:
1. Open IDA
2. Navigate to File -> Script file -> Choose ida_rebuild_cfg.py
3. Select the output `fix.json` file from `gen_machine_code.py`
4. Enjoy the reconstructed CFG!

How To Build

Clone the repository and build the project using your preferred IDE.

bash
git clone https://github.com/IIIImmmyyy/AntiOllvm.git
  1. Open the project in Rider or Visual Studio.
  2. Build the project.

Additional Resources

  • If you are a Chinese user, you can learn more from the Kanxue Forum. [原创] 自写简易Arm64模拟执行去除控制流平坦化

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#antiollvmflaollvmollvm-deobfuscation

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言