Skip to content

MonkeyModdingTroop/hookfxr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hookfxr

Reroutes entrypoint DLLs for CoreCLR apphosts by proxying through hostfxr.dll, allowing .NET Core applications to be modified without overwriting any files.

Usage

Place hostfxr.dll and the accompanying hookfxr.ini into the same directory as your .NET Core application. In the ini file, specify the DLL you want to reroute the entrypoint to, for example:

[hookfxr]
target_assembly=MyApp.dll

When you run your application, hostfxr.dll will intercept the entrypoint and redirect it to MyApp.dll instead of the original that was shipped with the application. Refer to the ini file for more options.

Limitations

  • Only supports .NET Core global framework-dependent deployments. Self-contained deployments are currently not supported.
  • Currently only supports Windows. On other platforms, just run your code directly.
  • Requires a custom version of libnethost built from this branch of runtime that exposes additional functionality and is built against a static CRT.

About

Proxy DLL to reroute CoreCLR apphost entrypoints

Resources

Stars

Watchers

Forks

Packages

No packages published