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

Function explain_callback_ace

windows/security.py:1108–1125  ·  view source on GitHub ↗
(ace, sdtype)

Source from the content-addressed store, hash-verified

1106 yield u" " + inherited_object_type
1107
1108def explain_callback_ace(ace, sdtype):
1109 yield u"Type:"
1110 yield u" " + str(ace.Header.AceType)
1111 yield u"HeaderFlags:"
1112 yield u" {0:#x}".format(ace.Header.AceFlags)
1113 yield u"SID:"
1114 yield u" " + explain_sid(ace.sid)
1115 yield u"Mask:"
1116 mapper = windows.security.SPECIFIC_ACCESS_RIGTH_BY_TYPE[sdtype]
1117 yield u" " + str(list(mapper[x] for x in ace.mask))
1118 yield u"Application data:"
1119 yield u" " + repr(ace.application_data.replace(b"\x00", b""))
1120 try:
1121 condition = ace.condition
1122 yield u"Condition:"
1123 yield u" " + condition
1124 except ValueError:
1125 pass
1126
1127def explain_resource_attribute(ace, sdtype):
1128 yield u"Type:"

Callers

nothing calls this directly

Calls 1

explain_sidFunction · 0.85

Tested by

no test coverage detected