Downloadlink: http://rapidshare.com/files/429311810/aHook.rar
Virustotal scan:VirusTotal - Free Online Virus, Malware and URL Scanner
Downloadlink: http://rapidshare.com/files/429311810/aHook.rar
Virustotal scan:VirusTotal - Free Online Virus, Malware and URL Scanner
Cheers for that
There you go guys, I finally managed to get my LuaDoString working, updated for 4.0.3, I hope you enjoy it, cause damn, I do !!!! Finally !Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Magic; using System.Diagnostics; using aHook; namespace TestaHook { class Program { static uint BaseAdress; static void Main(string[] args) { Hook EndScene = new Hook(aProcess.GetProcessIdByName("Wow")); Process[] Processes = Process.GetProcessesByName("Wow"); ProcessModule pm = Processes[0].MainModule; BlackMagic Memory = new BlackMagic(Processes[0].Id); BaseAdress = (uint)pm.BaseAddress; uint DX_DEVICE = 0x97E7F4 + BaseAdress; uint DX_DEVICE_IDX = 0x27C4; uint ENDSCENE_IDX = 0xA8; uint pDevice = Memory.ReadUInt(DX_DEVICE); uint pEnd = Memory.ReadUInt(pDevice + DX_DEVICE_IDX); uint pScene = Memory.ReadUInt(pEnd); uint pEndScene = Memory.ReadUInt(pScene + ENDSCENE_IDX); Console.WriteLine(EndScene.Hook_Install(pEndScene).ToString()); // Command to send using LUA //String Command = "print(\"EndScene hooked!\");"; String Command = "DoEmote(\"dance\")"; // Allocate memory for command uint DoString_space = EndScene.BlackMagic.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1); // Write command in the allocated memory EndScene.BlackMagic.WriteBytes(DoString_space, Encoding.UTF8.GetBytes(Command)); uint DoString = BaseAdress + 0x39D7F0; // Write the asm stuff for Lua_DoString EndScene.Hook_AsmAddLine("mov eax, " + DoString_space); EndScene.Hook_AsmAddLine("push 0"); EndScene.Hook_AsmAddLine("push eax"); EndScene.Hook_AsmAddLine("push eax"); EndScene.Hook_AsmAddLine("mov eax, " + DoString); // Lua_DoString EndScene.Hook_AsmAddLine("call eax"); EndScene.Hook_AsmAddLine("add esp, 0xC"); EndScene.Hook_AsmAddLine("retn"); // Inject the shit EndScene.Hook_AsmInject(); // Free memory allocated for command EndScene.BlackMagic.FreeMemory(DoString_space); // Uninstall the hook EndScene.Hook_Remove(); Console.ReadLine(); } } }
Any questions, I'll try to answer them with my noob knowledge...
"What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens
rapidshare is horrible, suggest reuploading somewhere decent.
And how then will look GetLocalizedText? For me don't work:
Execute in LuaDoString: "freeslots = GetContainerNumFreeSlots(0) + GetContainerNumFreeSlots(1) + GetContainerNumFreeSlots(2) + GetContainerNumFreeSlots(3) + GetContainerNumFreeSlots(4); print(freeslots);";Code:// Allocate memory for command uint Lua_GetLocalizedText_Space = EndScene.BlackMagic.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1); // offset: uint ClntObjMgrGetActivePlayerObj = 0x3550 + BaseAdress; uint FrameScript__GetLocalizedText = 0x1C4190 + BaseAdress; // Write command in the allocated memory EndScene.BlackMagic.WriteBytes(Lua_GetLocalizedText_Space, Encoding.UTF8.GetBytes(Command)); EndScene.Hook_AsmAddLine("call " + (uint)ClntObjMgrGetActivePlayerObj); EndScene.Hook_AsmAddLine("mov ecx, eax"); EndScene.Hook_AsmAddLine("push -1"); EndScene.Hook_AsmAddLine("mov edx, " + Lua_GetLocalizedText_Space); EndScene.Hook_AsmAddLine("push edx"); EndScene.Hook_AsmAddLine("call " + (uint)FrameScript__GetLocalizedText); EndScene.Hook_AsmAddLine("retn"); uint inject = EndScene.Hook_AsmInject(); String injectr = "null"; if (inject != 0) { injectr = EndScene.BlackMagic.ReadASCIIString(inject, 20); } // Free memory allocated for command EndScene.BlackMagic.FreeMemory(Lua_GetLocalizedText_Space); // Uninstall the hook EndScene.Hook_Remove(); Console.WriteLine(injectr);
Command = "freeslots";
Display: null
Last edited by Ozius; 11-21-2010 at 08:21 AM.
that's the same for me running GetLocalizedText,i got nothing.
i can make it dance ingame but i can't DoLuaString without character logging,however,iHook can do that perfect
who can give me some point on this two problem?don't say just use iHook is ok
Doubt anyone still has these project files laying around but if you do please for the love of god reupload them