private void WatchProcess() { while (true) { var procs = Process.GetProcessesByName("RobloxPlayerBeta"); if (procs.Length > 0 && procs.First().Id != CurrentPID) { Roblox = procs.First(); CurrentPID = Roblox.Id; Thread.Sleep(2000); // Delay Sharp = new MemorySharp(Roblox); SigScanSharp Sigscan = new SigScanSharp(Roblox.Handle); Sigscan.SelectModule(Roblox.MainModule); IntPtr GetTaskscheduler = traceRelativeCall(Roblox.Handle, Sigscan.FindPattern("E8 ? ? ? ? 8A 4D 08 83 C0 04")); Taskscheduler = new RemotePointer(Sharp, GetTaskscheduler).Execute <IntPtr>(); DelayOffset = FindTaskSchedulerFrameDelayOffset(Roblox.Handle, Taskscheduler); WriteMemory <double>(Roblox.Handle, Taskscheduler + DelayOffset, CurrentFps); } Thread.Sleep(500); } }
private void button1_Click(object sender, EventArgs e) { Process TargetProcess = Process.GetProcessesByName("ros")[0]; Sigscan = new SigScanSharp(TargetProcess.Handle); Sigscan.SelectModule(TargetProcess.MainModule); //long lTime, lTime2; /*var offset = Sigscan.FindPattern("? ? ? ? ? ? ? ? 78 6D 6C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 64 65 66 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 69 6E 74 65 72 66 61 63 65 73", out lTime); * offset = offset + 0 - (uint)TargetProcess.MainModule.BaseAddress; * string hexValue2 = offset.ToString("X"); * txt_Offset.Text += "LocalPlayer: 0x" + hexValue2; * * * var offset2 = Sigscan.FindPattern("69 43 6C 69 65 6E 74 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 74 70 73", out lTime2); * offset2 = offset2 + 0 - (uint)TargetProcess.MainModule.BaseAddress - 8; * string hexValue3 = offset2.ToString("X"); * txt_Offset.Text += "Client: 0x" + hexValue3;*/ string Local = HexFind("? ? ? ? ? ? ? ? 78 6D 6C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 64 65 66 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 69 6E 74 65 72 66 61 63 65 73", (uint)TargetProcess.MainModule.BaseAddress, 0); txt_Offset.Text += "LocalPlayer: 0x" + Local; Local = HexFind("69 43 6C 69 65 6E 74 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 74 70 73", (uint)TargetProcess.MainModule.BaseAddress, 8); txt_Offset.Text += "Client: 0x" + Local; Local = HexFind("64 79 6E 74 65 78 2E 64 61 74 61 5F 70 72 6F 76 69 64 65 72 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 69 6E 69 74", (uint)TargetProcess.MainModule.BaseAddress, 1192); txt_Offset.Text += "ViewMatrix: 0x" + Local; Local = HexFind("B9 ? ? ? ? C7 45 ? ? ? ? ? E8 ? ? ? ? 68 ? ? ? ? E8 ? ? ? ? 68 ? ? ? ? E8 ? ? ? ? 83 C4 08 C7 05 ? ? ? ? ? ? ? ? B8 ? ? ? ? 8B 4D F4 64 89 0D ? ? ? ? 59 8B E5 5D C3", (uint)TargetProcess.MainModule.BaseAddress, 0); txt_Offset.Text += "PyGame: 0x" + Local; /* Local = HexFind("? ? ? ? ? 3F 41 56 4D 65 73 68 43 6F 6D 6D 61 6E 64 40 63 6F 63 6F 73 32 64 40 40", (uint)TargetProcess.MainModule.BaseAddress, 0); * txt_Offset.Text += "Render: 0x" + Local;*/ /* Local = HexFind("F0 41 ? ? 70 42 ? ? ? ? ? ? ? ? ? ? ? ?", (uint)TargetProcess.MainModule.BaseAddress, 0); * txt_Offset.Text += "Speed: 0x" + Local;*/ }
private void OpenGame() { Console.WriteLine("RageMP teleporter by Oniel special for EZcheats.RU!"); Process TargetProcess = Process.GetProcessesByName("GTA5")[0]; SigScanSharp Sigscan = new SigScanSharp(TargetProcess.Handle); Sigscan.SelectModule(TargetProcess.MainModule); if (MemLib.OpenProcess("GTA5")) { var dwBlip = Sigscan.FindPattern("4C 8D 05 ? ? ? ? 0F B7 C1"); var dwWorld = Sigscan.FindPattern("48 8B 05 ? ? ? ? 48 8B 58 08 48 85 DB 74 32"); dwWorld = dwWorld + (ulong)(MemLib.ReadInt(sHEX(dwWorld + (ulong)3)) + 7); dwBlip = dwBlip + (ulong)(MemLib.ReadInt(sHEX(dwBlip + (ulong)3)) + 7); float fPlayerX = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0x30,0x50"); float fPlayerY = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0x30,0x54"); /* * float fPlayerZ = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0x30,0x58"); * * float fVehicleX = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x50"); * float fVehicleY = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x54"); * float fVehicleZ = MemLib.ReadFloat(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x58"); */ float fBlipX = fPlayerX; float fBlipY = fPlayerY; while (true) { byte[] f3 = BitConverter.GetBytes(Proc.GetAsyncKeyState(0x72)); byte[] f4 = BitConverter.GetBytes(Proc.GetAsyncKeyState(0x73)); //byte[] f5 = BitConverter.GetBytes(Proc.GetAsyncKeyState(0x74)); if (f3[0] == 1) { for (int i = 0; i < 2000; i++) { var n = MemLib.ReadLong(string.Format("0x{0:X}", dwBlip + (ulong)(i * 8))); if (n > 0 && MemLib.ReadInt(string.Format("0x{0:X}", n + 0x40)) == 8 && MemLib.ReadInt(string.Format("0x{0:X}", n + 0x48)) == 84) { fBlipX = MemLib.ReadFloat(string.Format("0x{0:X}", n + 0x10)); fBlipY = MemLib.ReadFloat(string.Format("0x{0:X}", n + 0x14)); Console.WriteLine("Teleported to " + fBlipX + ";" + fBlipY); var t1 = MemLib.ReadLong(string.Format("0x{0:X}", dwWorld)) + 0x8; var pointer = MemLib.ReadLong(string.Format("0x{0:X}", t1)); if (fBlipX != 0.0 && fBlipY != 0.0) { MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x50", "float", fBlipX.ToString()); MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x54", "float", fBlipY.ToString()); MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x58", "float", "-200"); MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x90", "float", fBlipX.ToString()); MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x94", "float", fBlipY.ToString()); MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x98", "float", "-200"); } } } Console.Beep(); } if (f4[0] == 1) { for (int i = 0; i < 2000; i++) { var n = MemLib.ReadLong(string.Format("0x{0:X}", dwBlip + (ulong)(i * 8))); if (n > 0 && MemLib.ReadInt(string.Format("0x{0:X}", n + 0x40)) == 8 && MemLib.ReadInt(string.Format("0x{0:X}", n + 0x48)) == 84) { // get blip position fBlipX = MemLib.ReadFloat(string.Format("0x{0:X}", n + 0x10)); fBlipY = MemLib.ReadFloat(string.Format("0x{0:X}", n + 0x14)); Console.WriteLine("Teleported to " + fBlipX + ";" + fBlipY); // set vehicle position if (fBlipX != 0.0 && fBlipY != 0.0) { MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x50", "float", fBlipX.ToString()); MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x54", "float", fBlipY.ToString()); MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0xD28,0x30,0x58", "float", "-200"); } } } Console.Beep(); } // Custom teleport /* * if (f5[0] == 1) * { * var t1 = MemLib.ReadLong(string.Format("0x{0:X}", dwWorld)) + 0x8; * var pointer = MemLib.ReadLong(string.Format("0x{0:X}", t1)); * * MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x50", "float", "10"); * MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x54", "float", "10"); * MemLib.WriteMemory(sHEX(dwWorld) + ",0x8,0x30,0x58", "float", "-200"); * * MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x90", "float", "10"); * MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x94", "float", "10"); * MemLib.WriteMemory(string.Format("0x{0:X}", pointer) + "+0x98", "float", "-200"); * * Console.Beep(); * } */ Thread.Sleep(1); } } else { Console.WriteLine("GTA5.exe not found!"); } }