class documentation
class BinaryMapping:
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 |
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 |
Undocumented |
Instance Variable | _binary |
Undocumented |
Instance Variable | _datasource |
Undocumented |
Instance Variable | _ranges |
Undocumented |
def __eq__(self, other):
Compares the instance for equality with an object.
- if the object is not a
BinaryMapping
, returns False.
Parameters | |
other:_Any | Undocumented |
Returns | |
bool | Undocumented |
def __init__(self, _datasource, base_address, _binary_id, ranges):
Undocumented
Parameters | |
_datasource:DataSource | Undocumented |
baseint | Undocumented |
_binarystr | Undocumented |
ranges:_List[ | Undocumented |
def __ne__(self, other):
Compares the instance for equality with an object.
- if the object is not a
BinaryMapping
, returns True.
Parameters | |
other:_Any | Undocumented |
Returns | |
bool | Undocumented |
Property: The address where the binary is loaded in memory.
Examples
>>> print(mapping.base_address) lin:0xfffff800c99455b0
Information
Returns | |
A LinearAddress . |
Property: The binary.
Examples
>>> print(mapping.binary) 'c:/windows/system32/ntoskrnl.exe'
Information
Returns | |
A Binary . |