Hack Forums
[C#] How create Protect Process - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] How create Protect Process (/showthread.php?tid=5242960)



How create Protect Process - Raymond - Apr 19, 2016

Hello. The boys lay anyone. How to create no kill process on C#? To help you not to kill him


* - Reyden - Apr 19, 2016

Easiest way is to create another process. This process restarts your important process if it is not running.

Check another thread in this section "persistence c#" by memesaregreat


* - Raymond - Apr 19, 2016

I'm looking for the source code, but can not find on this please help.


* - Reyden - Apr 19, 2016

There is a pastebin link with a working (but not well implemented) code snippet


* - Jallu - Apr 20, 2016

(Apr 19, 2016 11:53 AM)jepko Wrote:  I'm looking for the source code, but can not find on this please help.

Why not simply learn instead of copy pasting.
1. Create a thread
2. Check if another process is dead
3. If process is dead, start it again.
Do this on both processes, simple?


* - Raymond - Apr 20, 2016

(Apr 20, 2016 02:21 AM)Wintows Wrote:  Do this on both processes, simple?


For not very easy to me)


* - morph - Apr 20, 2016

(Apr 20, 2016 07:25 AM)jepko Wrote:  For not very easy to me)

Then learn how to code??????


* - GuRuHaX - Apr 20, 2016

(Apr 20, 2016 07:25 AM)jepko Wrote:  For not very easy to me)

As said above , here is some simple example of it :
(modify to your needs)

PHP Code

<?php 
while(true)
{
if(
Process.GetProcessesByName("yourExe").Length == 0)
{
Process.Start("yourExe");
}
} 

🤝