Jump to content

Issue


Pudge

Recommended Posts

Hello everybody, I'm trying to connect to exist wow window and manage it but i ran into a problem. 
I read process memory by id, and try to read data from memory, but when i try to use Lua.DoString(cmd); it doesn't work, what did i miss?

   

            var process = System.Diagnostics.Process.GetProcessesByName("Wow").FirstOrDefault(p => p.Id != wManager.Wow.Memory.WowMemory.Memory.ProcessId);
             if (process != null)
            {
                Logging.Write("Open process id = " + process.Id);
                wManager.Wow.Memory.WowMemory.Memory.Open(process.Id);
                Logging.Write("current ProcessId = " + wManager.Wow.Memory.WowMemory.Memory.ProcessId);
               var realmname = wManager.Wow.Memory.WowMemory.Memory.ReadStringUTF8(0x00C79B9E); //work

                Logging.Write("realmname = " + realmname);
                Lua.LuaDoString("print('123'"); //it does not work
                wManager.Wow.Memory.WowMemory.Memory.Close();
            }

 

Link to comment
Share on other sites

You are missing the hook that droidz uses….. you need the hook to execute functions on the main thread….. you should read ownedcore.

 

 

ps : reading the memory address is easy, you just need to open the process and use ReadMemory from kernal32. 
 

injecting lua requires a hook to a function that allowed execution on the main thread. Which droids I think hooks the games Endscene then write assembly code with his own detour . 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...