Binary Ninja Python API Documentation

class PluginManagerLoadPluginCallback[source]

Bases: object

Callback for BNLoadPluginForApi(“python2”, …), dynamically loads python plugins.

bundled_plugin_path()[source]

bundled_plugin_path returns a string containing the current plugin path inside the install path

Returns:current bundled plugin path
Return type:str, or None on failure
core_build_id()[source]

core_build_id returns a string containing the current build id

Returns:current build id
Return type:str, or None on failure
core_expires()[source]

License Expiration

core_license_count()[source]

License count from the license file

core_product()[source]

Product string from the license file

core_product_type()[source]

Product type from the license file

core_serial()[source]

core_serial returns a string containing the current serial number

Returns:current serial
Return type:str, or None on failure
core_ui_enabled()[source]

Indicates that a UI exists and the UI has invoked BNInitUI

core_version()[source]

core_version returns a string containing the current version

Returns:current version
Return type:str, or None on failure
cstr(arg)[source]
get_install_directory()[source]

get_install_directory returns a string pointing to the installed binary currently running

..warning:: ONLY for use within the Binary Ninja UI, behavior is undefined and unreliable if run headlessly

get_unique_identifier()[source]
pyNativeStr(arg)[source]
range(*args)[source]

A Python2 and Python3 Compatible Range Generator

shutdown()[source]

shutdown cleanly shuts down the core, stopping all workers and closing all log files.

user_plugin_path()[source]

user_plugin_path returns a string containing the current plugin path inside the user directory

Returns:current user plugin path
Return type:str, or None on failure
with_metaclass(meta, *bases)[source]

Create a base class with a metaclass.