This is a simple project to create a game hacking enviroment. We will use MinHook to help hooking/detouring functions, inipp to read .ini files.
- Compile the injector file (injector/injector.cpp):
g++ ./injector.cpp -Os -O3 -o injector.exe
Beware that antivirus could block execution, or delete the executable. The hooking method is very simple so we need to refine this.
- Compile the DLL (main.cpp in the root):
g++ main.cpp -shared -Os -O3 -I.\includes -L.\libs -m64 -w -W -mwindows -lmingw32 -lMinHook -o inject.dll
Profit