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

Method to_string

windows/security.py:940–954  ·  view source on GitHub ↗

Return the SDDL representation of the security descriptor :type: :class:`str`

(self, security_information=DEFAULT_SECURITY_INFORMATION)

Source from the content-addressed store, hash-verified

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
942
943 :type: :class:`str`
944 """
945 result_cstr = gdef.LPSTR()
946 winproxy.ConvertSecurityDescriptorToStringSecurityDescriptorA(
947 self,
948 gdef.SDDL_REVISION_1,
949 security_information,
950 result_cstr,
951 None)
952 result = result_cstr.value # Retrieve a python-str copy
953 winproxy.LocalFree(result_cstr)
954 return result.decode()
955
956 __str__ = to_string
957

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected