class documentation
class Handle:
A class representing a Windows handle at a specific context.
Warning
This object is not meant to be constructed directly. Use reven2.preview.windows.Context
or the static methods instead.
Static Method | from |
Retrieve an Handle accessible from the current process (permissions aren't checked) from its value. |
Static Method | list |
List the Handle s accessible from the current process (permissions aren't checked). |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | object |
Retrieve the object associated with this handle. |
Property | raw |
The raw `_HANDLE_TABLE_ENTRY` structure of this handle. |
Property | value |
The value of this handle. |
Static Method | _from |
Undocumented |
Static Method | _get |
Undocumented |
Static Method | _get |
Undocumented |
Static Method | _list |
Undocumented |
Static Method | _list |
Undocumented |
Instance Variable | _ctx |
Undocumented |
Instance Variable | _entry |
Undocumented |
Instance Variable | _object |
Undocumented |
Instance Variable | _value |
Undocumented |
@staticmethod
def list(ctx, process_handles=True, kernel_handles=True, special_handles=True):
def list(ctx, process_handles=True, kernel_handles=True, special_handles=True):
List the Handle
s accessible from the current process (permissions aren't checked).
Parameters | |
ctx:_Context | The context used to retrieve the current process and the handles. |
processbool | If the handles of the process should be returned |
kernelbool | If the handles of the kernel should be returned |
specialbool | If the special handles should be returned |
Returns | |
_Iterator[ | The Handle s found that aren't filtered by the arguments. |
def __init__(self, ctx, value, entry, object_header_address):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
value:int | Undocumented |
entry:_Optional[ | Undocumented |
objectreven2.address._AbstractAddress | Undocumented |
def object(self, expected_type=None):
Retrieve the object associated with this handle.
Parameters | |
expected_Optional[ | A subclass of reven2.preview.windows.object.Object representing the expected type of the object pointed by this handle, if `None` the type won't be checked. |
Returns | |
_Object | The object associated with this handle. |
@staticmethod
def _from_handle_table_entry(ctx, value, handle_table_entry):
def _from_handle_table_entry(ctx, value, handle_table_entry):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
value:int | Undocumented |
handlereven2.types.StructInstance | Undocumented |
Returns | |
_Optional[ | Undocumented |
@staticmethod
def _get_kernel_handle_table(ctx):
def _get_kernel_handle_table(ctx):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
Returns | |
reven2.types.StructInstance | Undocumented |
@staticmethod
def _get_process_handle_table(ctx):
def _get_process_handle_table(ctx):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
Returns | |
reven2.types.StructInstance | Undocumented |
@staticmethod
def _list_handles_from_handle_table(ctx, handle_value, handle_table):
def _list_handles_from_handle_table(ctx, handle_value, handle_table):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
handleint | Undocumented |
handlereven2.types.StructInstance | Undocumented |
Returns | |
_Iterator[ | Undocumented |
@staticmethod
def _list_handles_from_table(ctx, handle_initial_mask, table_level, table_base, previous_handle_indexes=None):
def _list_handles_from_table(ctx, handle_initial_mask, table_level, table_base, previous_handle_indexes=None):
Undocumented
Parameters | |
ctx:_Context | Undocumented |
handleint | Undocumented |
tableint | Undocumented |
tablereven2.address._AbstractAddress | Undocumented |
previous_Optional[ | Undocumented |
Returns | |
_Iterator[ | Undocumented |