How to Inject the lib to an Aseembly?
Hi,I have watched this Rep for a long time. At first you are palnning to add support for Net Frameworks, But now it seems it will never be none. However, some similar reps exists. My question is how can I inject your lib to an existing assembly? I can inject a managed lib on Net Frameworks, but i donot konw how does it work on Net5 and above, IF we can inject Jitex to an existing assembly, there are lots of awesome work we can do .
Hello,
About .NET Framework:
Jitex offers partial support for .NET Framework 4.6.1 and above. You can hook methods and tokens to manipulate them.
However, during development to support .NET Framework, I found some issues at runtime, particularly in testing, that caused application crashes.
Because of this, and to focus on new features in Jitex, I've changed the status for .NET Framework support to "Not supported" for now. Maintaining full support across all platforms requires extensive testing and debug, which is gonna took a lot of time from me.
We welcome any contributions to improve/add .NET Framework support.
About injecting into another assembly:
I'm not entirely sure I understand your question, but Jitex itself doesn't need to be injected into an assembly. It operates during the runtime of the assembly you're targeting.
For example, consider projects:
MyConsole.csproj MyClassLibrary.csproj
Jitex only needs to be referenced in MyConsole, not in MyClassLibrary.
However, if you want to inject Jitex into a running application, it's possible that using a tool like EasyHook could work. The guys from this issue https://github.com/Hitmasu/Jitex/issues/97 achieved this, but i don't know how they did.
Thanks a lot. I think i've foude a good rep doing this. https://github.com/mgaffigan/Esatto.Win32/blob/master/Esatto.Win32.NetInjector/Readme.md For your magic rep I think the most powerfull thing is Inject it to a running app. Looks like always some bad things. Cracking...