用vbs通过135端口执行命令的脚本
(编辑:jimmy 日期: 2024/12/26 浏览:3 次 )
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如何察看或获得剪切板内容的脚本