Skip to content

Androclast/Hauyne

Repository files navigation

Hauyne

Cross-platform, Cross-Arch .NET to .NET injector. Built with Zig.

Targets running .NET 5+ processes via hostfxr, injects into the default AssemblyLoadContext.

Building

Zig 0.16.0 and dotnet required

Run ./build.sh.

Knobs:

  • ./build.sh --no-zig / --no-dotnet to skip a side
  • ./build.sh --zig-targets "x86_64-linux-gnu x86_64-windows-gnu" to narrow targets
  • CONFIG=Debug OPTIMIZE=Debug ./build.sh for debug builds

Usage

./Hauyne.Injector <process-name> [payload-path]

<process-name> is the process base name (no .exe). [payload-path] is optional; if omitted, the Bootstrap falls back to Hauyne.Payload.dll next to its own .so/.dll.

Requirements

  • Target must be a running .NET 5+ process
  • Matching .NET version with target
  • Matching arch with target

Linux

  • x86-64 and aarch64
  • Root, or ptrace_scope shuttered: echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
image

About

Cross-platform, Cross-Arch .NET to .NET injector

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors