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

Method from_binary

windows/security.py:932–938  ·  view source on GitHub ↗

Retrieve the security descriptor described by the binary ``data``. Binary security descriptor can be found in the registry for example

(cls, data)

Source from the content-addressed store, hash-verified

930
931 @classmethod
932 def from_binary(cls, data):
933 """Retrieve the security descriptor described by the binary ``data``.
934 Binary security descriptor can be found in the registry for example
935 """
936 if isinstance(data, basestring):
937 data = ctypes.c_buffer(data)
938 return ctypes.cast(data, cls)
939
940 def to_string(self, security_information=DEFAULT_SECURITY_INFORMATION):
941 """Return the SDDL representation of the security descriptor

Callers 1

security_descriptorMethod · 0.80

Calls 1

castMethod · 0.80

Tested by

no test coverage detected