Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
How to Create Service like one in task manager of AVG antivirus that do following :


- service can't closed and make the original exe file also can't close with end-task
- service run always, can't stop and assume to be like a virus.


- how to achieve this. can achieve this with C# ? or what's else...
Posted
Comments
BillWoodruff 1-Feb-16 7:00am    
You should not be doing this unless you are a very advanced programmer very familiar with security, and unless there is a compelling need for doing this.

1 solution

Read this -
c# - How can I make a program that's impossible to be killed in Windows? - Stack Overflow[^]

See the reply from Russ -
"
let me first say, this is a horrible idea.

but...if you must do it, the way I see malicious software and spam hounds do it is to create 3 running processes, one is the main process and the other two will monitor and restart any killed process. it's very difficult for the average user to kill 3 processes simultaneously.

"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900