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

Method from_handle

windows/security.py:925–929  ·  view source on GitHub ↗

Retrieve the security descriptor for the kernel object described by``handle``

(cls, handle, query_sacl=False, flags=DEFAULT_SECURITY_INFORMATION, obj_type=None)

Source from the content-addressed store, hash-verified

923
924 @classmethod
925 def from_handle(cls, handle, query_sacl=False, flags=DEFAULT_SECURITY_INFORMATION, obj_type=None):
926 """Retrieve the security descriptor for the kernel object described by``handle``"""
927 sd = cls._from_handle_and_type(handle, gdef.SE_KERNEL_OBJECT, flags=flags, query_sacl=query_sacl)
928 sd.obj_type = obj_type # Test
929 return sd
930
931 @classmethod
932 def from_binary(cls, data):

Callers

nothing calls this directly

Calls 1

_from_handle_and_typeMethod · 0.80

Tested by

no test coverage detected