class documentation
class BinaryMapping:
Modelisation of 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. |
Instance Variable | _base |
Undocumented |
Instance Variable | _binary |
Undocumented |
Instance Variable | _datasource |
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):
Undocumented
Parameters | |
_datasource:DataSource | Undocumented |
baseint | Undocumented |
_binarystr | 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 . |