class documentation

class TaintedMemories:

View In Hierarchy

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 __eq__ Compares the instance for equality with an object.
Method __hash__ Returns the hash for this value.
Method __init__ Initialize a TaintedMemories from an address and size
Method __ne__ Compares the instance for equality with an object.
Method __repr__ Undocumented
Method __str__ Undocumented
Property address Property: The fist address in the memory range
Property memory_range The view of this TaintedMemories as a reven2.MemoryRange.
Property size Property: The size of the memory range
Static Method _unpack Undocumented
Method _pack Undocumented
Instance Variable _address Undocumented
Instance Variable _size Undocumented
def __eq__(self, r):

Compares the instance for equality with an object.

  • if the object is not a TaintedMemories instance, the object is never considered equal.
def __hash__(self):

Returns the hash for this value.

Returns
intUndocumented
def __init__(self, address, size=1):

Initialize a TaintedMemories from an address and size

Information

Parameters
addressis the first address of the memory range. Can be an integer or a class from the reven2.address module
size:integerthe size of the range
Raises
TypeErrorif 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
def __ne__(self, r):

Compares the instance for equality with an object.

  • if the object is not a TaintedMemories instance, the object is never considered equal.
Parameters
r:objectUndocumented
Returns
boolUndocumented
def __repr__(self):

Undocumented

def __str__(self):

Undocumented

@property
address =

Property: The fist address in the memory range

Examples

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

Information

Returns
An address from reven2.address module.
@property
memory_range: _MemoryRange =

The view of this TaintedMemories as a reven2.MemoryRange.

@property
size =

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

Returns
An integer.
@staticmethod
def _unpack(rvn_mem_range):

Undocumented

def _pack(self, context):

Undocumented

Returns
_Iterator[_reven_api.PhysicalMemoryRange]Undocumented
_address =

Undocumented

_size =

Undocumented