用vbs通过135端口执行命令的脚本
程序员文章站
2022-08-27 16:53:01
wmiexec.vbs(通过135端口执行命令)复制代码 代码如下:set ww=createobject("wbemscripting.swbemlocator...
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")