class documentation
class TaintedMemories:
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 |
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
TaintedMemoriesinstance, the object is never considered equal.
def __init__(self, address, size=1):
Initialize a TaintedMemories from an address and size
Information
| Parameters | |
| address | is the first address of the memory range. Can be an integer or a class from the reven2.address module |
| size:integer | the size of the range |
| Raises | |
TypeError | if the address is not of a supported type |
ValueError | if 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
TaintedMemoriesinstance, the object is never considered equal.
| Parameters | |
r:object | Undocumented |
| Returns | |
bool | Undocumented |
@property
address =
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. |