Mathex
Respected Member
So I'm in the procces of creating a 3.3.5a bot and I'm trying to do some memory injection to execute a LuaDoString function which currently looks like this:
But as it is now, I can't download the aHook dll, so I was wondering if there's anyone else that can download it from here and upload it for me or offer me an alternative solution? :-S
Code:
public void LuaDoString(string command)
{
BlackMagic process = new BlackMagic();
if (process.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")))
{
IntPtr moduleBase = process.MainModule.BaseAddress;
int nSize = command.Length + 0x100;
uint codeCave = process.AllocateMemory(nSize);
process.WriteASCIIString(codeCave, command);
process.Asm.Clear();
String[] asm = new String[]
{
"mov eax, " + codeCave,
"push 0",
"push eax",
"push eax",
"mov eax, " + (moduleBase + 0x00819210),
"call eax",
"add esp, 0xC",
"retn",
};
aHook.InjectAndExecute(asm);
process.FreeMemory(codeCave);
}
}
But as it is now, I can't download the aHook dll, so I was wondering if there's anyone else that can download it from here and upload it for me or offer me an alternative solution? :-S
Last edited: