danielkrupinski / VAC-Bypass

Valve Anti-Cheat bypass written in C.
MIT License
539 stars 104 forks source link

pattern question #1

Closed mr-nv closed 4 years ago

mr-nv commented 4 years ago

https://github.com/danielkrupinski/VAC-Bypass/blob/master/VAC-Bypass/dllmain.c#L7-L12 ive seen you do the same thing in your vac-hooks repo, and im interested in what does this pattern lead to and why you patch it please answer, thanks

danielkrupinski commented 4 years ago

Without this patch VAC modules are loaded from memory without being stored on disk. Patch forces steamservice.dll to load modules using LoadLibraryExW function which we hook and apply more hooks there.

Speedi13 commented 4 years ago

why don't you just hook the manual mapper? You can easily detour all Imports by hooking GetProcAddress (because the manual mapper resolves them all with it)

danielkrupinski commented 4 years ago

@Speedi13 Either way is good.

mr-nv commented 4 years ago

@danielkrupinski got it, thanks for answering