scriptingprovider module

binaryninja.scriptingprovider.BlacklistedDict(…)

binaryninja.scriptingprovider.Path(*args, …)

PurePath subclass that can make system calls.

binaryninja.scriptingprovider.PurePath(*args)

Base class for manipulating paths without I/O.

binaryninja.scriptingprovider.PythonScriptingInstance(…)

binaryninja.scriptingprovider.PythonScriptingProvider([…])

binaryninja.scriptingprovider.RepositoryManager([…])

RepositoryManager Keeps track of all the repositories and keeps the enabled_plugins.json file coherent with the plugins that are installed/uninstalled enabled/disabled

binaryninja.scriptingprovider.ScriptingInstance(…)

binaryninja.scriptingprovider.ScriptingOutputListener()

binaryninja.scriptingprovider.ScriptingProvider([…])

binaryninja.scriptingprovider.bninspect(…)

bninspect prints documentation about a command that is about to be run The interpreter will invoke this function if you input a line ending in ? e.g.

binaryninja.scriptingprovider.find_library(name)

binaryninja.scriptingprovider.redirect_stdio()

binaryninja.scriptingprovider.with_metaclass(…)

Create a base class with a metaclass.

class BlacklistedDict(blacklist, *args)[source]

Bases: dict

enable_blacklist(enabled)[source]
property blacklist_enabled
class PythonScriptingInstance(provider)[source]

Bases: binaryninja.scriptingprovider.ScriptingInstance

class InterpreterThread(instance)[source]

Bases: threading.Thread

add_input(data)[source]
end()[source]
execute(code)[source]
get_selected_data()[source]
read(size)[source]
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

update_locals()[source]
write_at_cursor(data)[source]
abstract perform_cancel_script_input()[source]
abstract perform_complete_input(text, state)[source]
abstract perform_destroy_instance()[source]
abstract perform_execute_script_input(text)[source]
abstract perform_set_current_address(addr)[source]
abstract perform_set_current_basic_block(block)[source]
abstract perform_set_current_binary_view(view)[source]
abstract perform_set_current_function(func)[source]
abstract perform_set_current_selection(begin, end)[source]
class PythonScriptingProvider(handle=None)[source]

Bases: binaryninja.scriptingprovider.ScriptingProvider

instance_class

alias of binaryninja.scriptingprovider.PythonScriptingInstance

apiName = 'python3'
name = 'Python'
class ScriptingInstance(provider, handle=None)[source]

Bases: object

cancel_script_input(text)[source]
complete_input(text, state)[source]
error(text)[source]
execute_script_input(text)[source]
output(text)[source]
abstract perform_cancel_script_input()[source]
abstract perform_complete_input(text, state)[source]
abstract perform_destroy_instance()[source]
abstract perform_execute_script_input(text)[source]
abstract perform_set_current_address(addr)[source]
abstract perform_set_current_basic_block(block)[source]
abstract perform_set_current_binary_view(view)[source]
abstract perform_set_current_function(func)[source]
abstract perform_set_current_selection(begin, end)[source]
register_output_listener(listener)[source]
set_current_address(addr)[source]
set_current_basic_block(block)[source]
set_current_binary_view(view)[source]
set_current_function(func)[source]
set_current_selection(begin, end)[source]
unregister_output_listener(listener)[source]
property delimiters
property input_ready_state
class ScriptingOutputListener[source]

Bases: object

notify_error(text)[source]
notify_input_ready_state_changed(state)[source]
notify_output(text)[source]
class ScriptingProvider(handle=None)[source]

Bases: object

create_instance()[source]
register()[source]
property instance_class
list = [<binaryninja.scriptingprovider.ScriptingProvider object>]
property name
bninspect(code, globals_, locals_)[source]

bninspect prints documentation about a command that is about to be run The interpreter will invoke this function if you input a line ending in ? e.g. bv?

Parameters
  • code (str) – Python code to be evaluated

  • globals (dict) – globals() from callsite

  • locals (dict) – locals() from callsite

redirect_stdio()[source]