What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Question]Hooking Wow Lua Error

king

Member
Joined
Jan 15, 2010
Messages
463
Reaction score
1
Im trying to use this:

Code:
            BlackMagic wow = new BlackMagic(); //Create new function to open wow process

            wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")); //This Opens "World of Warcraft" window

            string Command = "DefaultServerLogin(" + username + ", " + password + ")";

            wow.SuspendThread();
 

            // Allocate memory for command

            uint DoString_space = wow.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);

 

            // Write command in the allocated memory

            wow.WriteBytes(DoString_space, Encoding.UTF8.GetBytes(Command));

            wow.Asm.Clear();

            // Write the asm stuff for Lua_DoString

            wow.Asm.AddLine("mov eax, " + DoString_space);

            wow.Asm.AddLine("push 0");

            wow.Asm.AddLine("push eax");

            wow.Asm.AddLine("push eax");

            wow.Asm.AddLine("mov eax, 0x00819210"); // Lua_DoString for 3.3.5

            wow.Asm.AddLine("call eax");

            wow.Asm.AddLine("add esp, 0xC");

            wow.Asm.AddLine("retn"); 

 

            // Inject the shit

            wow.Asm.InjectAndExecute(DoString_space);

           // Free memory allocated for command

            wow.FreeMemory(DoString_space);

 

            wow.ResumeThread();



Once used WoW shows this message:

Code:
[string "?"]: 1:Unexpected symbol near '?'

:confused::confused::confused::confused:
I was told I needed to do update the objmgr myself when using this method. I'm not sure how this was done and Im looking for help, or a easier way to hook wow and send Lua.
of course I'll +rep you again regardless of your answer as long as it is an idea that makes sense, would like it someone could explain why this error occurs and if possible how I would fix it.

Thanks

Ps. this is for a relogger.
 
Back
Top