• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

C# Lua Execution (335)

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:

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:

Hyperion

Founder
Register with them and you can download =P

I don't have an account there, otherwise I would have just downloaded it for ya
 

Mathex

Respected Member
The donwloads of MMOwned /OwnedCore doesn't work for me or for my friends, that's why I requested it. :)
 
Top