byte[] Write = { 0xE9, 0x46, 0xD9, 0xA6, 0xFF, 0x0F, 0x1F, 0x40 };
Console.WriteLine(ZyzZHelper.ZyzZMemory.Custom.Cus tomMem.CreateCodeCave("KFGame", "KFGame.exe+***", Write, 5));
Console.ReadKey();
public static String CreateCodeCave(String ProcessName, String Adresse, byte[] FrezzeBytes, int ReplaceCount)
{
Memory.Mem.OpenProcess(ProcessName);
UIntPtr codecavebase = Memory.Mem.CreateCodeCave(Adresse, FrezzeBytes, ReplaceCount, 1000);
UIntPtr codecaveAllocAddress = UIntPtr.Add(codecavebase, FrezzeBytes.Length);
return codecaveAllocAddress.ToString();
}



but game crash







