in reply to Re: Win32API::Registry::RegGetKeySecurity how to unpack the structure of $pSecDesc?
in thread Win32API::Registry::RegGetKeySecurity how to unpack the structure of $pSecDesc?

Thank you!

The code works fine. I've got 2 versions of var:

#RAW $VAR1 = "\1\0\4\204\0\0\0\0\0\0\0\0\0\0\0\0\24\0\0\0\2\0\350\0\n\0\0\0 +\0\2\24\0?\0\17\0\1\1\0\0\0\0\0\5\13\0\0\0\0\20\30\0\31\0\2\0\1\2\0\0 +\0\0\0\5 \0\0\0!\2\0\0\0\32\30\0\0\0\0\200\1\2\0\0\0\0\0\5 \0\0\0!\2\ +0\0\0\20\30\0\37\0\3\0\1\2\0\0\0\0\0\5 \0\0\0#\2\0\0\0\32\30\0\0\0\1\ +300\1\2\0\0\0\0\0\5 \0\0\0#\2\0\0\0\20\30\0?\0\17\0\1\2\0\0\0\0\0\5 \ +0\0\0 \2\0\0\0\32\30\0\0\0\0\20\1\2\0\0\0\0\0\5 \0\0\0 \2\0\0\0\20\24 +\0?\0\17\0\1\1\0\0\0\0\0\5\22\0\0\0\0\32\24\0\0\0\0\20\1\1\0\0\0\0\0\ +5\22\0\0\0\0\32\24\0\0\0\0\20\1\1\0\0\0\0\0\3\0\0\0\0"; #DECODED $VAR1 = "D:AI(A;CI;KA;;;AU)(A;ID;KR;;;BU)(A;CIIOID;GR;;;BU)(A;ID;CCDCL +CSWRPSDRC;;;PU)(A;CIIOID;SDGWGR;;;PU)(A;ID;KA;;;BA)(A;CIIOID;GA;;;BA) +(A;ID;KA;;;SY)(A;CIIOID;GA;;;SY)(A;CIIOID;GA;;;CO)";

Can You explain - how can I parse this var to understandable value(hash maybe)? E.g. %{USER}->{HIS RIGTHS} ?

And if its possible - give an example to RegSetKeySecurity. I mean the ACL string forming(packing maybe).

  • Comment on Re^2: Win32API::Registry::RegGetKeySecurity how to unpack the structure of $pSecDesc?
  • Download Code