unknownv2 / CoreHook

A library that simplifies intercepting application function calls using managed code and the .NET Core runtime
MIT License
259 stars 40 forks source link

Implement the UserDataFormatter class #88

Closed unknownv2 closed 5 years ago

unknownv2 commented 5 years ago

This class serializes and deserializes the class that is passed to the CoreLoad module containing information about the user library to load. Wrapping the serialization and deserilization in a class allows us to modify the implementation or extend it without being forced to make code changes. For example, previously it was using the BinaryFormatter in the RemoteHooking class. Now we can swap that out if we want in the future easily.