新微赢技术网
标题:
用asp远程执行命令
[打印本页]
作者:
黑侠
时间:
2009-3-16 14:31
标题:
用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
欢迎光临 新微赢技术网 (http://bbs.weiying.cn/)
Powered by Discuz! X3.2