Нужен скрипт...

Discussion in 'Безопасность и Анонимность' started by F4llen, 10 May 2006.

  1. F4llen

    F4llen New Member

    Joined:
    14 Apr 2006
    Messages:
    5
    Likes Received:
    1
    Reputations:
    0
    Нужен скрипт для убийства процесса.Желательно на .vbs хотя пойдет любой.К примеру я запускаю exe'шник и убивается процесс ну к примеру ICQLite.exe.
     
  2. Deem3n®

    Deem3n® RTFMSDN

    Joined:
    19 Sep 2005
    Messages:
    378
    Likes Received:
    153
    Reputations:
    164
    _http://www.computerperformance.co.uk/vbscript/wmi_process_stop.htm
    Там найдешь и пару примеров
     
  3. F4llen

    F4llen New Member

    Joined:
    14 Apr 2006
    Messages:
    5
    Likes Received:
    1
    Reputations:
    0
    Нашел это
    Code:
     ProcessKillLocal.vbs
    ' Sample VBScript to kill a program
    ' Author Guy Thomas http://computerperformance.co.uk/
    ' Version 2.7 - December 2005
    ' ------------------------ -------------------------------' 
    Option Explicit
    Dim objWMIService, objProcess, colProcess
    Dim strComputer, strProcessKill 
    strComputer = "."
    strProcessKill = "'calc.exe'" 
    
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _ 
    & strComputer & "\root\cimv2") 
    
    Set colProcess = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where Name = " & strProcessKill )
    For Each objProcess in colProcess
    objProcess.Terminate()
    Next 
    WSCript.Echo "Just killed process " & strProcessKill _
    & " on " & strComputer
    WScript.Quit 
    ' End of WMI Example of a Kill Process
    Как убрать чтобы он не писал "Just killed process _procc name_ on" мне надо чтоб всетаки скрытно было
     
  4. Deem3n®

    Deem3n® RTFMSDN

    Joined:
    19 Sep 2005
    Messages:
    378
    Likes Received:
    153
    Reputations:
    164
    Закомментируй или удали
    Code:
    WSCript.Echo "Just killed process " & strProcessKill _
    & " on " & strComputer
     
  5. F4llen

    F4llen New Member

    Joined:
    14 Apr 2006
    Messages:
    5
    Likes Received:
    1
    Reputations:
    0
    Да я это делал.Но выылетает ошибка.
    Сценарий : C:\(путь к скрипту)
    Строка : 6
    Символ 1
    Ошибка: Предполагается наличие инструкции
    код 800A0400
    Источник: Ошибка Компиляции Microsoft VBScript
     
  6. Deem3n®

    Deem3n® RTFMSDN

    Joined:
    19 Sep 2005
    Messages:
    378
    Likes Received:
    153
    Reputations:
    164
    _http://users.cjb.net/spydeem3n/sc.vbs
     
  7. nc.STRIEM

    nc.STRIEM Members of Antichat

    Joined:
    5 Apr 2006
    Messages:
    1,036
    Likes Received:
    347
    Reputations:
    292
    #include<stdlib.h>
    void main()
    {
    system("taskkill /im ICQLite.exe");
    }