static void OverrideNames() { var scanner = new MemoryScan(Process.GetCurrentProcess()); int[] pattern = { 0x40, 0x73, 0x72, 0x63, 0x74, 0x72, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x40 }; var results = scanner.Scan(pattern); if (results.Length == 0) { return; } foreach (MemoryScan.MemoryScanResult result in results) { for (int i = result.offset; i < result.offset + 0xFFFF; i++) { if (result.buffer[i] == 0x40) //&& result.buffer[i - 1] == 0x65 { result.buffer[i] = 0x65; //result.buffer[i - 1] = 0x61; } } WriteMemory(result.BaseAddress, result.buffer); Console.WriteLine(result.Address.ToString("X")); break; } }
static void OverrideNames2() { var scanner = new MemoryScan(Process.GetCurrentProcess()); int[] pattern = { 0x3C, 0x74, 0x69, 0x74, 0x6C, 0x65, 0x4C, 0x65, 0x66, 0x74, 0x3E }; var results = scanner.Scan(pattern); foreach (MemoryScan.MemoryScanResult result in results) { Console.WriteLine(result.BaseAddress.ToString("X")); } }