externallibrary module

Class

Description

binaryninja.externallibrary.ExternalLibrary

An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile.

binaryninja.externallibrary.ExternalLocation

An ExternalLocation is an association from a source symbol in a binary view to a target symbol…

class ExternalLibrary[source]

Bases: object

An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile.

__init__(handle: BNExternalLibrary)[source]
Parameters:

handle (BNExternalLibrary) –

property backing_file: ProjectFile | None

Get the file backing this external library

Returns:

The file backing this external library or None

property name: str

Get the name of this external library

Returns:

The name of this external library

class ExternalLocation[source]

Bases: object

An ExternalLocation is an association from a source symbol in a binary view to a target symbol and/or address in an ExternalLibrary.

__init__(handle: BNExternalLocation)[source]
Parameters:

handle (BNExternalLocation) –

property has_target_address: bool

Check if this ExternalLocation has a target address

Returns:

True is this ExternalLocation has a target address, False otherwise

property has_target_symbol: bool

Check if this ExternalLocation has a target symbol

Returns:

True is this ExternalLocation has a target symbol, False otherwise

property library: ExternalLibrary | None

Get the ExternalLibrary that this ExternalLocation targets

Returns:

The ExternalLibrary pointed in to by this ExternalLocation if one exists, None otherwise

property source_symbol: CoreSymbol

Get the source symbol for this ExternalLocation

Returns:

The source symbol for this ExternalLocation

property target_address: int | None

Get the address pointed to by this ExternalLocation

Returns:

The address pointed to by this ExternalLocation if one exists, None otherwise

property target_symbol: str | None

Get the symbol pointed to by this ExternalLocation

Returns:

The symbol pointed to by this ExternalLocation if one exists, None otherwise

ExternalLibrary

class ExternalLibrary[source]

Bases: object

An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile.

__init__(handle: BNExternalLibrary)[source]
Parameters:

handle (BNExternalLibrary) –

property backing_file: ProjectFile | None

Get the file backing this external library

Returns:

The file backing this external library or None

property name: str

Get the name of this external library

Returns:

The name of this external library

ExternalLocation

class ExternalLocation[source]

Bases: object

An ExternalLocation is an association from a source symbol in a binary view to a target symbol and/or address in an ExternalLibrary.

__init__(handle: BNExternalLocation)[source]
Parameters:

handle (BNExternalLocation) –

property has_target_address: bool

Check if this ExternalLocation has a target address

Returns:

True is this ExternalLocation has a target address, False otherwise

property has_target_symbol: bool

Check if this ExternalLocation has a target symbol

Returns:

True is this ExternalLocation has a target symbol, False otherwise

property library: ExternalLibrary | None

Get the ExternalLibrary that this ExternalLocation targets

Returns:

The ExternalLibrary pointed in to by this ExternalLocation if one exists, None otherwise

property source_symbol: CoreSymbol

Get the source symbol for this ExternalLocation

Returns:

The source symbol for this ExternalLocation

property target_address: int | None

Get the address pointed to by this ExternalLocation

Returns:

The address pointed to by this ExternalLocation if one exists, None otherwise

property target_symbol: str | None

Get the symbol pointed to by this ExternalLocation

Returns:

The symbol pointed to by this ExternalLocation if one exists, None otherwise