Hi there!, Ive been a scripter for a few years now, but im not much of a coder[Delphi/C++/C#].
Ive been trying to make a DLL that runs along a certain Exe and stays opened until its closed, the DLL will monitor for specific blacklist of processes every 300ms or so and if found any process in the blacklist it would crash/exit the current exe its running along with.
I poked around for some useful DLL Code/Examples, but so far i havent made any good progress.
If you guys would be so kind to point me in some useful direction or even better share a working example of what im looking for it would be greatly appreciated. Thanks!
Note: the DLL has to be "injection compatible" since i dont own the original SRC of the exe im trying to protect.
Ive been trying to make a DLL that runs along a certain Exe and stays opened until its closed, the DLL will monitor for specific blacklist of processes every 300ms or so and if found any process in the blacklist it would crash/exit the current exe its running along with.
I poked around for some useful DLL Code/Examples, but so far i havent made any good progress.
Process[] runningProcesses = Process.GetProcesses(); foreach (Process process in runningProcesses) { // now check the modules of the process foreach (ProcessModule module in process.Modules) { if (module.FileName.Equals("MyProcess.exe")) { process.Kill(); } } }
If you guys would be so kind to point me in some useful direction or even better share a working example of what im looking for it would be greatly appreciated. Thanks!
Note: the DLL has to be "injection compatible" since i dont own the original SRC of the exe im trying to protect.