Original Post
DISCLAIMER: I Know that this stuff is/can be illegal, dont tell me, im just curious how you actually do this. Okay you all know the people cheating in games using aimbots, macros and hacks. You always stumble across the word "hook" when you research about it. But how do you actually program a hook? Im not really into hacking and cracking stuff or cheating in games but i was always curious about it, how these crackers actually get this to work. Is it a feature of the winapi or is it possible to produce hooks on unix based systems too? Do you actually communicate with the application or just write into the part of memory to control it? I would be very happy if somebody could produce a little sample, (maybe using SDL?) where you have a main program and a simple hook that controls something in the other application. Also im interested in this because it can be helpful for many things too, if you have a program that you want to access with your own remote program for example. Thanks for your help :).