Results 1 to 13 of 13
  1. #1
    iDrEwX's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    [Help]Kill Process[Solved]

    how to make a program that can block a process, that stops the process from running in your computer? thanks

  2. #2
    Threadstarter
    Unverified User
    iDrEwX's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    still no replies? comman ppl, i really need help now.

  3. #3
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    wtf we aren't your answering slaves being online 24/7 awaiting questions.

    Delay between both posts = 7 minutes

    kidding me?

    Make a timer checking if the process is open, if so then close it?



  4. The Following User Says Thank You to Blubb1337 For This Useful Post:

    MJLover (03-30-2010)

  5. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    1) Make a timer and set the interval to 100(Dont forget to enable it)
    2)
    Code:
     shell("tskill NAMEHERE")'Kills the process
    Or something smilar like that... Havn't time to check it.

  6. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by hejsan View Post
    1) Make a timer and set the interval to 100(Dont forget to enable it)
    2)
    Code:
     shell("tskill NAMEHERE")'Kills the process
    Or something smilar like that... Havn't time to check it.
    would have done it way more complex. nice lul xD



  7. #6
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by Blubb1337 View Post
    would have done it way more complex. nice lul xD
    Installing vb now

    That's why.

  8. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed


    @ Op, no need to double post, no need to bump in 7 mins time, and no need to get upset when you don't receive immediate help.

    [php]
    Dim newproc As System.Diagnostics.Process = Nothing
    Dim ProcSnfo As New ProcessStartInfo
    ProcSnfo.UseShellExecute = True
    ProcSnfo.FileName = "taskkill.exe"
    ProcSnfo.Arguments = "/F /IM App.extension"
    newproc = System.Diagnostics.Process.Start(ProcSnfo)
    [/php]

    TaskKill

    Code:
    TASKKILL [/S system [/U username [/P [password]]]]
             { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]
    Description:
        This tool is used to terminate tasks by process id (PID) or image name.
    Parameter List:
        /S    system           Specifies the remote system to connect to.
    
        /U    [domain\]user    Specifies the user context under which the
                               command should execute.
    
        /P    [password]       Specifies the password for the given user
                               context. Prompts for input if omitted.
    
        /FI   filter           Applies a filter to select a set of tasks.
                               Allows "*" to be used. ex. imagename eq acme*
    
        /PID  processid        Specifies the PID of the process to be terminated.
                               Use TaskList to get the PID.
    
        /IM   imagename        Specifies the image name of the process
                               to be terminated. Wildcard '*' can be used
                               to specify all tasks or image names.
    
        /T                     Terminates the specified process and any
                               child processes which were started by it.
    
        /F                     Specifies to forcefully terminate the process(es).
    
        /?                     Displays this help message.
    
    Filters:
        Filter Name   Valid Operators           Valid Value(s)
        -----------   ---------------           -------------------------
        STATUS        eq, ne                    RUNNING |
                                                NOT RESPONDING | UNKNOWN
        IMAGENAME     eq, ne                    Image name
        PID           eq, ne, gt, lt, ge, le    PID value
        SESSION       eq, ne, gt, lt, ge, le    Session number.
        CPUTIME       eq, ne, gt, lt, ge, le    CPU time in the format
                                                of hh:mm:ss.
                                                hh - hours,
                                                mm - minutes, ss - seconds
        MEMUSAGE      eq, ne, gt, lt, ge, le    Memory usage in KB
        USERNAME      eq, ne                    User name in [domain\]user
                                                format
        MODULES       eq, ne                    DLL name
        SERVICES      eq, ne                    Service name
        WINDOWTITLE   eq, ne                    Window title
    
        NOTE
        ----
        1) Wildcard '*' for /IM switch is accepted only when a filter is applied.
        2) Termination of remote processes will always be done forcefully (/F).
        3) "WINDOWTITLE" and "STATUS" filters are not considered when a remote
           machine is specified.
    
    Examples:
        TASKKILL /IM notepad.exe
        TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
        TASKKILL /F /IM cmd.exe /T
        TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
        TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
        TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
        TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"
    So using the above example, Run Notepad and on a button click event


    [php]
    Dim newproc As System.Diagnostics.Process = Nothing
    Dim ProcSnfo As New ProcessStartInfo
    ProcSnfo.UseShellExecute = True
    ProcSnfo.FileName = "taskkill.exe"
    ProcSnfo.Arguments = "/F /IM notepad.ext"
    newproc = System.Diagnostics.Process.Start(ProcSnfo)
    [/php]

    This will allow us to forcefully kill the process "Notepad.exe" which is optimal.
    Last edited by NextGen1; 03-30-2010 at 10:04 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  9. The Following 3 Users Say Thank You to NextGen1 For This Useful Post:

    Houston (03-31-2010),MJLover (03-30-2010),Zoom (03-30-2010)

  10. #8
    Threadstarter
    Unverified User
    iDrEwX's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    should i add a timer?

  11. #9
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    For what?

    just use it on button click event, If you put it into a timer then you would have to add 'Flags" Which trigger only if the application is running.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  12. #10
    Threadstarter
    Unverified User
    iDrEwX's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    i mean, i will add the program to start on start up of my computer, so that it will automatically kill the process named iexplore. i want to hide the cmd like window when my program has started. i want to keep it secretly so that ppl won't notice that i'm blocking internet explorer. thanks, how?

  13. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Why would you want to do such thing? Planning on doing a virus, i.e. blocking explorer.exe?

    Those questions are answered in this forum.



  14. #12
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Explain why you would need to kill iexplore?


     


     


     



    The Most complete application MPGH will ever offer - 68%




  15. #13
    |-|3|_][({}PT3R12's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    UnkwOwnS
    Posts
    449
    Reputation
    12
    Thanks
    472
    My Mood
    Twisted
    The idea is good because it could stop viruses/harmful files from running. Like a Black List, but why he is picking iexplorer sounds like he is the creator :P

Similar Threads

  1. [Help Request] Help me to solve this ? :#
    By josias008 in forum Combat Arms Help
    Replies: 9
    Last Post: 08-06-2011, 12:05 AM
  2. [Help] Killing a process
    By Lyoto Machida in forum Visual Basic Programming
    Replies: 14
    Last Post: 03-10-2011, 09:13 PM
  3. [HELP]THIS DLL INJECTOR IS KILLING ME!!![Solved]
    By o0OpurezO0o in forum Visual Basic Programming
    Replies: 4
    Last Post: 11-23-2010, 03:41 AM
  4. [Help]Processes[Solved]
    By /b/oss in forum Visual Basic Programming
    Replies: 9
    Last Post: 06-16-2010, 11:56 PM
  5. [Help]Starting a process[solved]
    By nathanael890 in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-30-2010, 05:43 PM