EasyHook (Easy Injection/Hooking for C# [and C++]) Problem
So I'm having an error that says:
Quote:
FoxxyHooks Error: The given user library does not export a proper Run(EasyHook.InjectionLoader+REMOTE_ENTRY_INFO) method in the 'EasyHook.IEntryPoint' interface.
Debug: System.MissingMethodException: The given user library does not export a proper Run(EasyHok.InjectionLoader+REMOTE_ENTRY_INFO) method in the 'EasyHook.IEntryPoint' interface.
at EasyHook.HelperServiceInterface.WaitForInjection(I nt32 InTargetPID)
at EasyHook.RemoteHooking.InjectEx(Int32 InHostPID, Int32 InTargetPID, InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Boolean InRequiresStrongName, Object[] InPassThruArgs)
at EasyHook.RemoteHooking.Inject(Int32 IntargetPID, String InLibraryPath_x86, String InLibraryPath_x64, Object[] InPassThruArgs)
at FoxxyHooks.Client.Inject(String dll32, String dll64, String[] args)
And here is the EntryPoint class of my .dll (pastebin):
public class Main : IEntryPoint
{
Hooks k = new Hooks();
public Main(RemoteHooking.IContext InContext, String InChannelName)
{
//Any Initialization code.
}
public void Run(RemoteHooking.IContext InContext, String InChannelName)
{
k.CreateHooks();
while (true)
{
Thread.Sleep(100);
}
}
}
.
Code:
static void Main()
{
Console.WriteLine("Starting co");
var p = new Process
{
StartInfo =
{
Arguments = "blacknull",
FileName = "Conquer.exe",
WorkingDirectory = Environment.CurrentDirectory
}
};
p.Start();
Console.WriteLine("Conquer started. Injecting DLL");
p.WaitForInputIdle();
//Inject ConquerDefence2 into Conquer.exe
RemoteHooking.Inject(p.Id, InjectionOptions.DoNotRequireStrongName, "ConquerDefence2.dll", "ConquerDefence2.dll", "");
Console.WriteLine("Injected... possibly.");
}
DLL Injection/hooking 03/04/2013 - .NET Languages - 0 Replies Hey EPVP Coder,
Ich bin dabei eine 32-bit C++ DLL in einen 32-bit Prozess auf einem 64-bit System zu injecten.
Die DLL enthält einen hook.
So nun zu meinem Problem. Ich kann die DLL zwar erfolgreich injecten (MessageBox erscheint), jedoch wird der hook nicht richtig durchgeführt. Olly zeigt die Veränderung der Funktion an !
Ich finde das sehr mysteriös, denn wenn ich einen in C++ geschriebenen Injector nehme, dann funktioniert das ganze und der hook greift.
Habe schon etliche C#...
C# Dll Injection/Hooking ? Take two. 08/16/2012 - CO2 Programming - 2 Replies c&ped from ug. Second release from me and martin.
Have fun.
PS. Credits to Inf. for the inline export func& compiler.
[tutorial]Injection & Function Hooking 11/06/2010 - Tutorials - 5 Replies First let me say this: This is not written by me, i found it posted on game deception a while ago and just rediscoverd it on my hd. Thought it might be interesting for some ppl here.
Credits go to whoever originally wrote it.
This contains a demo project for vc 2003 and a tutorial.
You can find the tutorial in the readme folder!!!!!!
oh, if you don't trust me, don't download it....
DLL Hooking/Injection 03/20/2008 - General Coding - 4 Replies Can anyone lead me to some GOOD tutorials for DLL Hooking/Injection... as the ones ive found on Google are absolutely shit.
Thanks in advance. :bandit: