使用setacl修改注册表的权限

来源:互联网 发布:网络流行歌曲2016歌曲 编辑:程序博客网 时间:2024/05/20 01:35

setacl软件可以修改注册表的权限

下载地址http://sourceforge.net/projects/setacl/      

相关的命令有:

http://wenku.baidu.com/link?url=NidoSAIvAsjJQ7T38sGTgpkyZ-hiPyyHK3OFi3-c4CVo8yI3h8G-xHxhyEsU9d0YJBbXYbO4pe3xjbTTwNrVM3mVFs6h1xskN8B3IGM1yni

比如,如果自己的计算机名字为administration(查看自己计算机名字的方法是点击开始,在右上角点击用户图标进入到用户管理界面,当然也可以通过控制面板进入)

点击管理用户账号尽可以看到


用户名,所在域,所在组)))

好啦,下面我们来举个例子如果想在KnownDLLs这个键下面增加键写内容是不允许的,所以获得权限的命令如下,一共两行(后两行是一行)

SetACL64.exe -on "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\KnownDLLs" -ot reg -actn setowner -ownr "n:administrators"

SetACL64.exe -on "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\KnownDLLs" -ot reg -actn ace -ace "n:administrators;p:full;i:sc,so" -rec yes

然后就可以啦,但是还有一类注册表不是这样就可以轻易获取权限的:比如UserChoice这个键,但是我们可以这样来获取权限,一共三行

SetACL64.exe -on "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\UserChoice" -ot reg -actn trustee -trst n1:computer2;ta:remtrst;w:dacl
SetACL64.exe -on "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\UserChoice" -ot reg -actn setowner -ownr "n:computer2"
SetACL64.exe -on "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\UserChoice" -ot reg -actn ace -ace "n:computer2;p:full;i:sc,so" -rec yes
















0 0