public static void LuaPipe(string script) { if (NamedPipes3.NamedPipeExist(NamedPipes3.luapipename)) { new Thread((ThreadStart)(() => { try { using (NamedPipeClientStream pipeClientStream = new NamedPipeClientStream(".", NamedPipes3.luapipename, PipeDirection.Out)) { pipeClientStream.Connect(); using (StreamWriter streamWriter = new StreamWriter((Stream)pipeClientStream, Encoding.Default, 999999)) { streamWriter.Write(script); streamWriter.Dispose(); } pipeClientStream.Dispose(); } } catch (IOException) { int num2 = (int)MessageBox.Show("Error occured connecting to the pipe.", "Connection Failed!"); } catch (Exception ex) { int num2 = (int)MessageBox.Show(ex.Message.ToString()); } })).Start(); } else { int num1 = (int)MessageBox.Show("Inject " + Functions3.exploitdllname + " before Using this!", "Error"); } }
public static void Inject() { if (NamedPipes3.NamedPipeExist(NamedPipes3.luapipename)) { int num1 = (int)MessageBox.Show("Already Injected!"); } else { if (NamedPipes3.NamedPipeExist(NamedPipes3.luapipename) || NamedPipes3.NamedPipeExist(NamedPipes3.luapipename)) { return; } switch (Injector3.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + Functions3.exploitdllname)) { case Injector3.DllInjectionResult.DllNotFound: int num2 = (int)MessageBox.Show("Couldnt find krnl.dll!"); goto case Injector3.DllInjectionResult.InjectionFailed; case Injector3.DllInjectionResult.GameProcessNotFound: int num3 = (int)MessageBox.Show("Roblox not found!"); goto case Injector3.DllInjectionResult.InjectionFailed; case Injector3.DllInjectionResult.InjectionFailed: break; default: Thread.Sleep(3000); if (!NamedPipes3.NamedPipeExist(NamedPipes3.luapipename)) { break; } break; } } }
public static bool NamedPipeExist(string pipeName) { bool flag; try { int timeout = 0; if (!NamedPipes3.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\\\\\.\\\\pipe\\\\{0}", (object)pipeName)), timeout)) { switch (Marshal.GetLastWin32Error()) { case 0: return(false); case 2: return(false); } } flag = true; } catch (Exception) { flag = false; } return(flag); }