Jump to content

How to get permissions of a registry hive?


Dizzy
 Share

Recommended Posts

Hi all,

i didn't found a function how to get the permissions of a registry hive.

For example: i want to get the permissions of "hkey_local_machine\SYSTEM\CurrentControlSet\Control\Lsa" in a text file or similar.

Can someone push me in the right way :)

Or - maybe someone has a little code? :)

Thanks for help!

Dizzy

post-83-1233835199_thumb.jpg

post-83-1233835331_thumb.jpg

Link to comment
Share on other sites

Hi all,

i didn't found a function how to get the permissions of a registry hive.

For example: i want to get the permissions of "hkey_local_machine\SYSTEM\CurrentControlSet\Control\Lsa" in a text file or similar.

Can someone push me in the right way :)

Or - maybe someone has a little code? :)

Thanks for help!

Dizzy

Hi,

i didn't find one either. But maybe this link gives you a clue for using SetACL.exe and use the output in AutoIt. The Tool is FreeWare (The new version is published under the GPL):

http://www.helge.mynetcologne.de/setacl/#features

;-))

Stefan

Link to comment
Share on other sites

Hi,

i didn't find one either. But maybe this link gives you a clue for using SetACL.exe and use the output in AutoIt. The Tool is FreeWare (The new version is published under the GPL):

http://www.helge.mynetcologne.de/setacl/#features

;-))

Stefan

Agreed, but SetACL is hosted on SourceForge for download now: SetACL.exe Example #17

That example is for setting the ACL, but can be changed to only read it by using the 'list' action and specifying a backup file to save it to with -bckp:

SetACL.exe -on "hklm\software\AutoIt V3" -ot reg -actn list -lst "f:csv;w:d,s,o,g;i:y;s:n" -rec no -bckp "c:\Temp\setacl listing.txt"

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Thanks for help!

I'll try setacl to get the permissions - but the output looks really bad :)

Dizzy

Hi,

you are definetly right. Maybe this looks better:

SetACL.exe -on "hklm\software\AutoIt V3" -ot reg -actn list -lst "f:tab;w:d,s,o,g;i:y;s:n" -rec no > "c:\Temp\setacl listing.txt"

;-))

Stefan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...