public static void Inject()
        {
            new Thread(delegate()
            {
                bool flag = NamedPipes.NamedPipeExist(NamedPipes.luapipename);
                if (flag)
                {
                    MessageBox.Show("Already injected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                }
                else
                {
                    bool flag2 = !NamedPipes.NamedPipeExist(NamedPipes.luapipename);
                    if (flag2)
                    {
                        switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + Functions.exploitdllname))
                        {
                        case Injector.DllInjectionResult.DllNotFound:
                            MessageBox.Show("MainDab.dll was not found! Please restart the application!");
                            break;

                        case Injector.DllInjectionResult.GameProcessNotFound:
                            MessageBox.Show("Couldn't find RobloxPlayerBeta.exe!", "Roblox isn't started!");
                            break;

                        case Injector.DllInjectionResult.InjectionFailed:
                            MessageBox.Show("Injection Failed!", "Failed for whatever reason (try kill roblox or restart ur pc)", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            break;
                        }
                    }
                }
            }).Start();
        }
Beispiel #2
0
        // Token: 0x0600015C RID: 348 RVA: 0x0001883C File Offset: 0x00016A3C
        public static void LuaPipe(string script)
        {
            bool flag = NamedPipes.NamedPipeExist(NamedPipes.luapipename);

            if (flag)
            {
                new Thread(delegate()
                {
                    try
                    {
                        using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", NamedPipes.luapipename, PipeDirection.Out))
                        {
                            namedPipeClientStream.Connect();
                            using (StreamWriter streamWriter = new StreamWriter(namedPipeClientStream, Encoding.Default, 999999))
                            {
                                streamWriter.Write(script);
                                streamWriter.Dispose();
                            }
                            namedPipeClientStream.Dispose();
                        }
                    }
                    catch (IOException)
                    {
                        MessageBox.Show("Error occured connecting to the pipe.", "Connection Failed!");
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message.ToString());
                    }
                }).Start();
            }
            else
            {
                MessageBox.Show("Please inject first! Click the inject button first, then you can execute.", "Please start ROBLOX first!");
            }
        }