示例#1
0
        // Token: 0x0600015B RID: 347 RVA: 0x000187D4 File Offset: 0x000169D4
        public static bool NamedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                bool flag = !NamedPipes.WaitNamedPipe("\\\\.\\pipe\\" + pipeName, 0);
                if (flag)
                {
                    int  lastWin32Error = Marshal.GetLastWin32Error();
                    bool flag2          = lastWin32Error == 0;
                    if (flag2)
                    {
                        return(false);
                    }
                    bool flag3 = lastWin32Error == 2;
                    if (flag3)
                    {
                        return(false);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
示例#2
0
        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();
        }
示例#3
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!");
            }
        }