Models a range of memory

Examples

>>> # Create memory range with logical address C{ds:0xfff54545} and size 1
>>> mem1 = TaintedMemories(0xfff54545)
>>> # Create memory range with physical C{0x545454} address and size 8
>>> mem2 = TaintedMemories(reven2.address.PhysicalAddress(0x545454), 8)
Method __init__ Initialize a TaintedMemories from an address and size
Method address Property: The fist address in the memory range
Method size Property: The size of the memory range
Method __str__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Method __hash__ Undocumented
Static Method _unpack Undocumented
Method _pack Undocumented
def __init__(self, address, size=1):

Initialize a TaintedMemories from an address and size

Information

Parametersaddressis the first address of the memory range. Can be an integer or a class from the reven2.address module
sizethe size of the range (type: integer)
RaisesTypeErrorif the address is not of a supported type
ValueErrorif the address is not a class from the {reven2.address} module and cannot be converted to an integer
@staticmethod
def _unpack(rvn_mem_range):
Undocumented
def _pack(self, context):
Undocumented
@property
def address(self):

Property: The fist address in the memory range

Examples

>>> TaintedMemories(0xfff669988).address
LogicalAddress(segment_register=ds, offset=0xfff669988)

Information

ReturnsAn address from reven2.address module.
@property
def size(self):

Property: The size of the memory range

The size is such that the address built from begin + size is the first address not in the memory range.

Examples

>>> TaintedMemories(0xfff669988, 4).size
4

Information

ReturnsAn integer.
def __str__(self):
Undocumented
def __repr__(self):
Undocumented
def __eq__(self, r):
Undocumented
def __ne__(self, r):
Undocumented
def __hash__(self):
Undocumented
API Documentation for reven2, generated by pydoctor at 2020-09-17 15:57:23.