Skip to content
No description, website, or topics provided.
Python Makefile C
Branch: master
Clone or download

OpaquePredicatePatcher (v1.0 alpha)

Author: Vector 35 Inc

Automatically patch opaque predicates


This script will automatically remove conditional branches which have constant conditions. It can be run from the command line via:

python -mOpaquePredicatePatcher.__main__

if the BinaryNinja python library is in your path. or installed as a plugin in your user plugin directory.

Read about how this tool was created on our blog: Automated Opaque Predicate Removal


Before and After

Minimum Version

This plugin requires the following minimum version of Binary Ninja:

  • dev -

Required Dependencies

The following dependencies are required for this plugin:


This plugin is released under a MIT license.

You can’t perform that action at this time.