Skip to content

Clr Injection for x64 and x86. Inject C# into Managed or Unmanaged Processes.

Notifications You must be signed in to change notification settings

Glatrix/ClrHosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://discord.gg/X9gdzuJBAZ

ClrHosting

Clr Injection for x64 and x86

Clr loader

(Only injects .NET Framework dlls)
static const LPCWSTR Assembly = L"\\CSharp.dll"; //dllname.dll (eg \\FolderName\\CSharp.dll
static const LPCWSTR Class = L"ISpace.IClass"; //namespace.class
static const LPCWSTR Method = L"IMain"; //method name
static const LPCWSTR Param = L"It works!!"; //string paramater (if applicable)

Put the C# dll, and the Clr hosting dll into the same folder.

C# Exmaple

namespace ISpace
{
    public class IClass
    {
        public static int IMain(string args)
        {
            AllocConsole(); //Open a console window from the same process.
            Console.WriteLine("<_C# Loaded_>"); //Proof its working.
            return 0;
        }

        [DllImport("kernel32")]
        static extern bool AllocConsole();
    }
}

About

Clr Injection for x64 and x86. Inject C# into Managed or Unmanaged Processes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published