المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how can i kill a protected process?? [modified] or a SYSTEM process ??



C# Programming
02-21-2010, 03:22 AM
hello!
i must tell you from the beginning that i am a C# newbie so please bare with me... http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif
i just started learning C# a month or so ago so i am just at the beginning of (what seems to be) a very interesting journey.
my current project demands that i kill any process specified by the user.
i already finished the first part of the program:
the user inputs the name of the program,actually the process, and then clicks the "terminate" button.
the program takes the name and kills the process with the same given name. it shows the "success" message in a text box if anything is OK or shows a message box if some specified errors occur.
now all that works for any ordinary process, the process gets killed, no questions asked!
but
what about protected processes???
i tried to kill my AV process (i use AVAST free, up-to-date version) and it catches a "protected process" error... http://www.barakasoft.com/script/Forums/Images/smiley_confused.gifthe fact is that this error may occur in different cases,even spywares use certain methods to ensure that killing their program is impossible... http://www.barakasoft.com/script/Forums/Images/smiley_line.gif

now,my obvious question is: how to bypass the process protection and kill those pesky,protected processes??

i have two guesses:

1) there may be some sort of special privileged mode to call the kill function in C# like some special administrator or something

or

2) (here i need serious help as i am a total noob at this part: ) there may be a way to add some info to some windows registry files (if that's what they're called) so that every time windows boots up and starts loading programs,my prog will start up first and block the others from booting up or even deletes the process' sources. Of course,this has to be done entirely by my C# code and i know that a noob like me messing up with window's components' codes may really F**K up the OS for good ... http://www.barakasoft.com/script/Forums/Images/smiley_dead.gif
that's why i really need help...

thanx a lot in advance! http://www.barakasoft.com/script/Forums/Images/thumbs_up.gifhttp://www.barakasoft.com/script/Forums/Images/thumbs_up.gif
ps: i now see that what i am referring to is a SYSTEM -driven process.
so yes, can you tell me how to kill a SYSTEM process using C#??

http://www.barakasoft.com/script/Forums/Images/thumbs_up.gifhttp://www.barakasoft.com/script/Forums/Images/thumbs_up.gifhttp://www.barakasoft.com/script/Forums/Images/thumbs_up.gifmodified on Friday, February 19, 2010 10:52 AM