Hi,
While trying to better understand security descriptors on Windows. I've
been examining text-based security descriptors. I have the security
descriptors on individual lines stored in a text file. I want to break
these lines apart based on owner, group, dacl and sacl. These areas are
demarcated by O: G: D: and S:
There are no spaces in the lines. How can I read each line so that each
area is broken out? I'd like output like this:
O: details
G: details or NONE
D: details or NONE
S: details or NONE
Here is an example SD:
O:owner_sidG:gr oup_sidD:dacl_f lags(string_ace 1)(string_ace2) ...(string_acen )S:sacl_flags(s tring_ace1)(str ing_ace2)...(st ring_acen)
I want to read this and break it apart like this:
O:owner_sid
G:group_sid
D:dacl_flags(st ring_ace1)(stri ng_ace2)...(str ing_acen)
S:sacl_flags(st ring_ace1)(stri ng_ace2)...(str ing_acen)
Any tips?
Brad
While trying to better understand security descriptors on Windows. I've
been examining text-based security descriptors. I have the security
descriptors on individual lines stored in a text file. I want to break
these lines apart based on owner, group, dacl and sacl. These areas are
demarcated by O: G: D: and S:
There are no spaces in the lines. How can I read each line so that each
area is broken out? I'd like output like this:
O: details
G: details or NONE
D: details or NONE
S: details or NONE
Here is an example SD:
O:owner_sidG:gr oup_sidD:dacl_f lags(string_ace 1)(string_ace2) ...(string_acen )S:sacl_flags(s tring_ace1)(str ing_ace2)...(st ring_acen)
I want to read this and break it apart like this:
O:owner_sid
G:group_sid
D:dacl_flags(st ring_ace1)(stri ng_ace2)...(str ing_acen)
S:sacl_flags(st ring_ace1)(stri ng_ace2)...(str ing_acen)
Any tips?
Brad
Comment