Anti-DLL/MIX Injection in Python
I want some help with an anti-dll injection (and mix if it's possible) in python.
It's for game called Metin2.I want to put this code in the client so nobody can inject dll's in the client.
If it can't be maked, it's ok in C++ (i know it can be done) , but also you need to learn me how to use it to block dll injection.
THANKS!
Unless you plan on building a kernel driver you can't stop the user from loading dll's into the process. But you can make it damn hard to do:
Corrupt/disable LoadLibrary() in kerenl32.dll since almost every injector uses that to inject the code into another process, doing so will kill 99% of the injectors currently out there.
Next, make a function that constantly scans for dlls in your process that shouldn't be there. You should know what dlls your process needs. And everything that's not on the list but is still present must be injected.
Both of these problems can be overcome by the person that's trying to inject his/her dll but it'll go a long way.