|
发表于 2018-8-30 12:29:12
|
显示全部楼层
本帖最后由 nextfriend 于 2018-8-30 12:30 编辑
我自用的VBS脚本后台隐藏运行并监控进程:
- option Explicit
- dim wmi,proc,procs,proname,flag,WshShell,vbhide
- Do
- proname="frps.exe" '需要监测的服务进程的名称
- set wmi=getobject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
- set procs=wmi.execquery("select * from win32_process")
- flag=true
- for each proc in procs
- if strcomp(proc.name,proname)=0 then
- flag=false
- exit for
- end if
- next
- set wmi=nothing
- if flag then
- Set WshShell = CreateObject("Wscript.Shell")
- WshShell.run "frps.exe -c frps_full.ini",vbhide '启动命令行
- end if
- wscript.sleep 10000 '检测间隔时间,这里是10秒
- loop
复制代码 |
|