[C++] Unity mono hook Intercept API calls (x86)

ini

Well-Known Member
Joined
Sep 28, 2015
Messages
259
Likes
25
Points
58
10
#1
Hello usbaes frens, today im going to share small mono hook for intercept mono methoods calls, what is the purpose?
Well with this hook you can log wich assembly is going to be loaded in your unity game.
Most of unity anticheats are written in c#, the problem with that is that unpacking and bypassing the anticheat
is going to be such a eassy thing for eveybody, even for styler.
The most common way to hack unity games is using mono for load your own compiled hax.
The small hook is just hooking the functions used for load your own assemblies into the game like:

C++:
OrigMonoDomainAssemblyOpen = (MonoDomainAssemblyOpen_t)DetourFunction((BYTE*)(0x10027D65), (BYTE*)myMonoDomainAssemblyOpen);
OrigMonoAssemblyOpen = (MonoAssemblyOpen_t)DetourFunction((BYTE*)(0x10013355), (BYTE*)myMonoAssemblyOpen);
For finish, i invite you to improve this code and build a propper anticheat using this small hook.

SORS COD: src
VIRUS TOTAL SCAN: viri

Credits: Styler
 
Last edited:
Top