externallibrary module

binaryninja.externallibrary.ExternalLibrary(handle)

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

binaryninja.externallibrary.ExternalLocation(handle)

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

class ExternalLibrary(handle: BNExternalLibrary)[source]

Bases: object

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

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(handle: BNExternalLocation)[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.

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