Closed jhett12321 closed 1 year ago
Why:
With the removal of the FunctionsLinux in 8193.35, function hooking is a bit tricker in C#. You have to use dlsym/GetProcAddress with the symbol to get the actual function pointer to hook.
FunctionsLinux
In .NET 7, Microsoft added a new API for resolving the entrypoint/main program handle, making this much nicer to do: https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary.getmainprogramhandle?view=net-7.0
I didn't do it if something implodes
Why:
With the removal of the
FunctionsLinux
in 8193.35, function hooking is a bit tricker in C#. You have to use dlsym/GetProcAddress with the symbol to get the actual function pointer to hook.In .NET 7, Microsoft added a new API for resolving the entrypoint/main program handle, making this much nicer to do: https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary.getmainprogramhandle?view=net-7.0