MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / items

Method items

windows/winobject/object_manager.py:57–69  ·  view source on GitHub ↗

Return the list of tuple (object's name, object) in the current directory object. :rtype: [(:class:`str`, :class:`KernelObject`)] -- A list of tuple .. note:: the :class:`KernelObject` must be of type ``Directory`` or it will raise :class:`~windows.generate

(self)

Source from the content-addressed store, hash-verified

55 return None
56
57 def items(self):
58 """Return the list of tuple (object's name, object) in the current directory object.
59
60 :rtype: [(:class:`str`, :class:`KernelObject`)] -- A list of tuple
61
62 .. note::
63
64 the :class:`KernelObject` must be of type ``Directory`` or
65 it will raise :class:`~windows.generated_def.ntstatus.NtStatusException` with
66 code :data:`~windows.generated_def.STATUS_OBJECT_TYPE_MISMATCH`
67 """
68 path = self.fullname
69 return [(name, KernelObject(path, name, typename)) for name, typename in self._directory_query_generator()]
70
71 def keys(self):
72 """Return the list of objects' name in the current directory object.

Callers

nothing calls this directly

Calls 2

KernelObjectClass · 0.85

Tested by

no test coverage detected