asp远程执行命令
来源:  关键字: 日期:2011-04-01 [关闭]

用asp远程执行命令

<%
'by xiaolu
set ww=server.createobject("wbemscripting.swbemlocator")
set cc=ww.connectserver("192.168.2.1","root/cimv2","administrator","xiaolu")
set ss=cc.get("Win32_ProcessStartup")
Set oC=ss.SpawnInstance_
oC.ShowWindow=12
Set pp=cc.get("Win32_Process")
Response.Write pp.create("net user",null,oC,intProcessID)
Response.Write "<br>"&intProcessID
Response.end
%>

上一篇:如何给网站加速? 下一篇:ASP 错误代码