用vbs通过135端口执行命令的脚本
时间:2021-06-12 08:14:13|栏目:VBS|点击: 次
wmiexec.vbs(通过135端口执行命令)
set ww=createobject("wbemscripting.swbemlocator")
set cc=ww.connectserver("172.20.241.218","root/cimv2","user","password")
Set pp=cc.get("Win32_Process")
pp.create("cmd /c temp.exe")
复制代码 代码如下:
set ww=createobject("wbemscripting.swbemlocator")
set cc=ww.connectserver("172.20.241.218","root/cimv2","user","password")
Set pp=cc.get("Win32_Process")
pp.create("cmd /c temp.exe")
上一篇:杀死指定进程名称的小VBS
栏 目:VBS
下一篇:VBS基础编程教程 (第3篇)
本文标题:用vbs通过135端口执行命令的脚本
本文地址:http://www.codeinn.net/misctech/140324.html