Ah ok, so you are just looking at preventing generic / naive attacks? Then yes, what you suggested will serve purpose.
Name:
Anonymous2007-08-07 16:38 ID:moUX8Cqg
>>11
What I've done sofar is basic anti-hack inside the game executable (uses FindWindow and EnumProcesses etc to find generic hacktools) also fixes patched bytes by checking certain address-ranges which are vulnerable and rewriting original bytes if modified..
>>15
Sure, that'd work against noob-trainers etc, or just hook WPM in ring3 instead of making a rootkit..
Name:
Anonymous2007-08-07 18:45 ID:9ZKOQZ7c
Hook LoadLibraryA from within the context of your process. This is probably the easiest way to catch people trying to inject code into your process. If they use something like SetWindowsHookEx to inject, you're fucked sorry.
Name:
Anonymous2007-08-08 13:52 ID:pWLXu4qy
>>15
that won't work if someone installs a rootkit to secretly prevent your rootkit from working!
1. If you are trying to prevent hacks / cheats, do not even try. You can not prevent injection of code into any others process memory. If you are thinking of deliberate hacks, you can never prevent them, in the best case your program will get "fixed" with a hex editor, even before it starts, including the code that checks if the app is correct (CRC check).
2. If you are trying to prevent "user code" from crashing the dethronement, you can make a number of problems by installing custom error handlers in the OS. But it will never be safe. Take for example:
char* hello = "Hello";
for (int i = 5; i > -100; i--)
{
hello[i] = 0;
}
This piece of code will corrupt the stack, event before it raises a access violation. Now what?! You do not have a valid return address to return to?
All in all, do not try to prevent the things you can not prevent. If you are thinking DRM / cheat prevention, the best is none at all. The point is your implementation will be circumvented in under two weeks, hence useless. Those you try to protect your app from will not be stopped and those that rightfully use your app will curse you to death, because of the odd side behaviors.
Name:
Anonymous2007-08-08 14:45 ID:P8z2ZNgC
what prevents me from detouring any sort of anticheat function of yours and rendering it useless?
also, if you try and install a rootkit I will write a driver to disable it in ring0
Name:
Anonymous2007-08-08 14:51 ID:PoRSzYeI
>>20
Good solution, do nothing about cheats, good game. >>21
Wow, thanks alot for the penis-measuring contest applications guys. Really usefull!
The point I am making is, it is pointless effort to try to preventing cheating. Trying make more harm that good. You will still be cheated on. Not counting things that are potentially impossible to prevent, like spawn killing and excessive team killing. You can try but will always also hit innocent players.
>>23
You can always get the noob-hackers out easily.. the better hackers release hacks once in awhile and then you just block those aswell..
IMO it's better to do something than nothing.
Thank you. Now that I can not run a decent game in, say wine. Because it is broken by design. I have to keep a genuine windoze around.
I have not see a single DRM / cheat prevention that was not broken into within the first two weeks. And the zkipt kidzz simply download the maga zeat, implemented by dAt kEwL hAxOr.
It just eats up a good number of man hours. That time should be invested in a better game.