自制控制進程和控制開機啟動項批處理(ntsd強制結(jié)束版)

字號:


    自動結(jié)束強制智能結(jié)束.vbs
    vbs主要起到運行bat的目地,傳參
    代碼如下:
    setwshshell=createobject("wscript.shell")
    wshshell.run"針對性進程管理.bat"
    wscript.sleep2000
    forx=1to30
    wscript.sleep1000
    wshshell.sendkeys"{enter3}"
    next
    針對性進程管理.bat
    代碼如下:
    @echooff&setlocalenabledelayedexpansion
    ping-n3127.0>nul
    ifexisttem.txtdel/f/qtem.txt
    echo.正在刷選進程.............
    echo>>tem.txtexplorer.exe
    echo>>tem.txtSystemIdleProcess
    echo>>tem.txtSystem
    echo>>tem.txtsmss.exe
    echo>>tem.txtcsrss.exe
    echo>>tem.txtwinlogon.exe
    echo>>tem.txtservices.exe
    echo>>tem.txtTheWorld.exe
    echo>>tem.txtlsass.exe
    echo>>tem.txtsvchost.exe
    echo>>tem.txtspoolsv.exe
    echo>>tem.txtalg.exe
    echo>>tem.txtctfmon.exe
    echo>>tem.txtekrn.exe
    echo>>tem.txtwdfmgr.exe
    echo>>tem.txt360tray.exe
    echo>>tem.txtegui.exe
    echo>>tem.txtwmiprvse.exe
    echo>>tem.txtQQ.exe
    echo>>tem.txtcmd.exe
    echo>>tem.txtIEXPLORE.EXE
    echo>>tem.txtTXPlatform.exe
    echo>>tem.txttasklist.exe
    echo>>tem.txtconime.exe
    echo>>tem.txtsafeboxTray.exe
    echo>>tem.txtwscript.exe
    for/f"eol=tokens=1,2delims=,"%%iin('tasklist/nh/focsv')do(
    findstr/i/x%%item.txt>nul
    iferrorlevel1(
    echo=============================================================
    echo=============================================================
    echo%%i位于以下路徑
    wmicprocesswhereprocessid=%%jgetexecutablepath|findstr/v/i"executablepath"
    ntsd-cq-p%%j1>nul2>nul
    ping-n1127.0>nul
    tasklist|findstr/i%%i>nul
    iferrorlevel1(
    echo%%i已經(jīng)完全成功結(jié)束
    )else(
    echo%%i未能完全結(jié)束,估計是個流氓程序
    )
    )
    )
    deltem.txt&echo結(jié)束進程任務(wù)基本完成
    taskkill/f/imwscript.exe
    mshtavbscript:msgbox("我的任務(wù)完成了!請看詳細信息",,"刷選進程")(window.close)
    taskkill/f/imcmd.exe