예제 #1
0
        // Token: 0x06000033 RID: 51 RVA: 0x00003518 File Offset: 0x00001718
        public static bool NamedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                bool flag  = !DLLPipe.WaitNamedPipe("\\\\.\\pipe\\" + pipeName, 0);
                bool flag2 = flag;
                if (flag2)
                {
                    int  lastWin32Error = Marshal.GetLastWin32Error();
                    bool flag3          = lastWin32Error == 0;
                    bool flag4          = flag3;
                    if (flag4)
                    {
                        return(false);
                    }
                    bool flag5 = lastWin32Error == 2;
                    bool flag6 = flag5;
                    if (flag6)
                    {
                        return(false);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
 // Token: 0x06000047 RID: 71 RVA: 0x00002192 File Offset: 0x00000392
 private void ExecuteButton_Click(object sender, RoutedEventArgs e)
 {
     this.MultiTabAvalon.Dispatcher.BeginInvoke(new Action(delegate()
     {
         TextEditor textEditor = MainWindow.FindVisualChild <TextEditor>(this.MultiTabAvalon);
         DLLPipe.LuaPipe(textEditor.Text);
     }), Array.Empty <object>());
 }
        // Token: 0x06000040 RID: 64 RVA: 0x00003984 File Offset: 0x00001B84
        public void TimerSystem(object sender, EventArgs e)
        {
            bool topMost = Settings.Default.TopMost;

            if (topMost)
            {
                base.Topmost = true;
            }
            else
            {
                base.Topmost = false;
            }
            bool ui = Settings.Default.UI;

            if (ui)
            {
                this.ExecuteButton.Background = new SolidColorBrush(Color.FromRgb(50, 50, 50));
                this.OpenButton.Background    = new SolidColorBrush(Color.FromRgb(50, 50, 50));
                this.SaveButton.Background    = new SolidColorBrush(Color.FromRgb(50, 50, 50));
                this.EraseButton.Background   = new SolidColorBrush(Color.FromRgb(50, 50, 50));
                bool flag = DLLPipe.NamedPipeExist(DLLPipe.luapipename);
                if (flag)
                {
                    this.InjectButton.Background = new SolidColorBrush(Color.FromRgb(63, 184, 44));
                }
                else
                {
                    this.InjectButton.Background = new SolidColorBrush(Color.FromRgb(50, 50, 50));
                }
            }
            else
            {
                this.ExecuteButton.Background = new SolidColorBrush(Color.FromRgb(byte.MaxValue, 63, 185));
                this.OpenButton.Background    = new SolidColorBrush(Color.FromRgb(63, 98, byte.MaxValue));
                this.SaveButton.Background    = new SolidColorBrush(Color.FromRgb(63, 184, 44));
                this.EraseButton.Background   = new SolidColorBrush(Color.FromRgb(236, 183, 42));
                bool flag2 = DLLPipe.NamedPipeExist(DLLPipe.luapipename);
                if (flag2)
                {
                    this.InjectButton.Background = new SolidColorBrush(Color.FromRgb(63, 184, 44));
                }
                else
                {
                    this.InjectButton.Background = new SolidColorBrush(Color.FromRgb(byte.MaxValue, 63, 63));
                }
            }
        }
예제 #4
0
        // Token: 0x0600002E RID: 46 RVA: 0x00003404 File Offset: 0x00001604
        public static void Inject()
        {
            bool flag  = DLLPipe.NamedPipeExist(DLLPipe.luapipename);
            bool flag2 = flag;

            if (flag2)
            {
                MessageBox.Show("Already injected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                bool flag3 = !DLLPipe.NamedPipeExist(DLLPipe.luapipename);
                bool flag4 = flag3;
                if (flag4)
                {
                    switch (DLLInject.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + DLLFunc.exploitdllname))
                    {
                    case DLLInject.DllInjectionResult.DllNotFound:
                        MessageBox.Show("Couldn't find " + DLLFunc.exploitdllname, "Dll was not found!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        break;

                    case DLLInject.DllInjectionResult.GameProcessNotFound:
                        MessageBox.Show("Couldn't find RobloxPlayerBeta.exe!", "Target process was not found!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        break;

                    case DLLInject.DllInjectionResult.InjectionFailed:
                        MessageBox.Show("Injection Failed!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        break;

                    default:
                    {
                        Thread.Sleep(7000);
                        bool flag5 = !DLLPipe.NamedPipeExist(DLLPipe.luapipename);
                        bool flag6 = flag5;
                        if (flag6)
                        {
                            MessageBox.Show("Injection Failed!\nMaybe you are Missing something\nor took more time to check if was ready\nor other stuff", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                        break;
                    }
                    }
                }
            }
        }
예제 #5
0
        // Token: 0x06000034 RID: 52 RVA: 0x00003594 File Offset: 0x00001794
        public static void LuaPipe(string script)
        {
            bool flag  = DLLPipe.NamedPipeExist(DLLPipe.luapipename);
            bool flag2 = flag;

            if (flag2)
            {
                new Thread(delegate()
                {
                    try
                    {
                        using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", DLLPipe.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!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message.ToString());
                    }
                }).Start();
            }
            else
            {
                MessageBox.Show(" Please Inject Coco, Thank You", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
 // Token: 0x06000015 RID: 21 RVA: 0x00002080 File Offset: 0x00000280
 private void Button4_Click(object sender, RoutedEventArgs e)
 {
     DLLPipe.LuaPipe("loadstring(game:HttpGet(('https://raw.githubusercontent.com/MarsQQ/ScriptHubScripts/master/FPS%20Boost'),true))()");
 }
 // Token: 0x0600004E RID: 78 RVA: 0x0000224F File Offset: 0x0000044F
 private void GameButton_Click(object sender, RoutedEventArgs e)
 {
     DLLPipe.LuaPipe("loadstring(game:HttpGet(('https://raw.githubusercontent.com/MarsQQ/CocoHub/master/CocoZHub'), true))()");
 }