예제 #1
0
        // Token: 0x06000007 RID: 7 RVA: 0x0000219C File Offset: 0x0000039C
        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 connecting to the pipe.", "Filtered", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message.ToString());
                    }
                }).Start();
            }
        }
예제 #2
0
        // Token: 0x06000006 RID: 6 RVA: 0x0000211C File Offset: 0x0000031C
        public static bool NamedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                int  timeout = 0;
                bool flag    = !NamedPipes.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\\\\\.\\\\pipe\\\\{0}", pipeName)), timeout);
                if (flag)
                {
                    int  lastWin32Error = Marshal.GetLastWin32Error();
                    bool flag2          = lastWin32Error == 0;
                    if (flag2)
                    {
                        result = false;
                        return(result);
                    }
                    bool flag3 = lastWin32Error == 2;
                    if (flag3)
                    {
                        result = false;
                        return(result);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
예제 #3
0
        // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
        public static void Inject()
        {
            bool flag = NamedPipes.NamedPipeExist(NamedPipes.luapipename);

            if (!flag)
            {
                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("Couldn't find " + Functions.exploitdllname + "Please disable your anti-virus or extract the file, and retry!", "RedBoy", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        break;

                    case Injector.DllInjectionResult.GameProcessNotFound:
                        MessageBox.Show("ROBLOX is not open!", "RedBoy", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                        break;
                    }
                }
            }
        }