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

Function explain_resource_attribute

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

Source from the content-addressed store, hash-verified

1125 pass
1126
1127def explain_resource_attribute(ace, sdtype):
1128 yield u"Type:"
1129 yield u" " + str(ace.Header.AceType)
1130 yield u"HeaderFlags:"
1131 yield u" {0:#x}".format(ace.Header.AceFlags)
1132 yield u"SID:"
1133 yield u" " + explain_sid(ace.sid)
1134 yield u"Mask:"
1135 mapper = windows.security.SPECIFIC_ACCESS_RIGTH_BY_TYPE[sdtype]
1136 yield u" " + str(list(mapper[x] for x in ace.mask))
1137
1138 attribute = ace.attribute
1139 yield u"Attribute Name:"
1140 yield u" " + attribute.name
1141 yield u"Attribute Type:"
1142 yield u" {0:#x}".format(attribute.ValueType)
1143 yield u"Attribute Flags:"
1144 yield u" {0:#x}".format(attribute.Flags)
1145 yield u"Values:"
1146 for value in attribute.values:
1147 yield u" " + repr(value)
1148
1149
1150ACE_EXPLAINER = {

Callers

nothing calls this directly

Calls 1

explain_sidFunction · 0.85

Tested by

no test coverage detected