class documentation

class BinaryMapping:

View In Hierarchy

Models a binary loaded in memory.

It provides useful information such as the base address or binary.

Warnings

Must not be directly constructed but retrieved through the following examples. Using an instance of BinaryMapping directly constructed could lead to an AssertionError.

Examples

>>> # From a Context
>>> next(context.ossi.kernel_mappings())
Method __eq__ Compares the instance for equality with an object.
Method __hash__ Returns the hash for this value.
Method __init__ Undocumented
Method __ne__ Compares the instance for equality with an object.
Method __repr__ Undocumented
Method __str__ Undocumented
Property base_address Property: The address where the binary is loaded in memory.
Property binary Property: The binary.
Property ranges Property: The memory ranges where this binary is mapped.
Instance Variable _base_address Undocumented
Instance Variable _binary_id Undocumented
Instance Variable _datasource Undocumented
Instance Variable _ranges Undocumented
def __eq__(self, other):

Compares the instance for equality with an object.

Parameters
other:_AnyUndocumented
Returns
boolUndocumented
def __hash__(self):

Returns the hash for this value.

Returns
intUndocumented
def __init__(self, _datasource, base_address, _binary_id, ranges):

Undocumented

Parameters
_datasource:DataSourceUndocumented
base_address:intUndocumented
_binary_id:strUndocumented
ranges:_List[_MemoryRange[_LinearAddress]]Undocumented
def __ne__(self, other):

Compares the instance for equality with an object.

Parameters
other:_AnyUndocumented
Returns
boolUndocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def __str__(self):

Undocumented

Returns
strUndocumented
@property
base_address: _LinearAddress =

Property: The address where the binary is loaded in memory.

Examples

>>> print(mapping.base_address)
lin:0xfffff800c99455b0

Information

Returns
A LinearAddress.
@property
binary: Binary =

Property: The binary.

Examples

>>> print(mapping.binary)
'c:/windows/system32/ntoskrnl.exe'

Information

Returns
A Binary.
@property
ranges: _List[_MemoryRange[_LinearAddress]] =

Property: The memory ranges where this binary is mapped.

_base_address =

Undocumented

_binary_id =

Undocumented

_datasource =

Undocumented

_ranges =

Undocumented