Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     //this.Close();
     this.LogText.Clear();
     LogText.AppendText("1.1-修复BUG:当路径中含有源PCI或者目的PCI时,由于新的文件名的目录是直接替换源文件的目录的,导致目录中PCI的值发生改变无法找到该目录。\t\n");
     LogText.AppendText("1.2-修复BUG:修改后有一定机率没有轨迹的出现\t\n");
 }
Esempio n. 2
0
        private void timer_Tick(object sender, EventArgs e)
        {
            Point pnt = LogText.AutoScrollOffset;

            LogText.AppendText(_logUtility.TailFollow());
            LogText.AutoScrollOffset = pnt;
        }
Esempio n. 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (IsCanWork)
            {
                ///实例化类,并引入参数
                Engine eg = new Engine(FileNames, textBox1.Text, textBox2.Text);
                ///开启一个新的线程执行主方法
                Thread th = new Thread(eg.ReadFile);
                th.IsBackground = true;
                //启动线程
                th.Start();

                //循环导出文件名并输入到日志窗口
                foreach (var VARIABLE in eg._NewNames)
                {
                    LogText.AppendText("Succesfully!\n");
                    LogText.AppendText("Save to\t" + VARIABLE + "\n");
                }
                //提示完成!
                LogText.AppendText("Finish!\n");
            }
            else
            {
                LogText.AppendText("请选择文件并输入PCI!!!\n");
            }
        }
Esempio n. 4
0
 private void logMessage(string pMsg)
 {
     if (!LogText.IsDisposed)
     {
         LogText.AppendText($"{ DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")}  {pMsg}\r\n");
     }
 }
Esempio n. 5
0
        private void Log(string text)
        {
            if (LogText.InvokeRequired)
            {
                LogText.Invoke(new Action(() => Log(text)));
                return;
            }

            LogText.AppendText(text + Environment.NewLine);
        }
Esempio n. 6
0
        /// <summary>
        /// validate addon
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ValidateAllFiles_OnClick(object sender, RoutedEventArgs e)
        {
            AddonValidator.Insatnce.UpdateLogText = s => Dispatcher.Invoke(() =>
            {
                LogText.AppendText(s);
                LogText.ScrollToLine(LogText.LineCount - 1);
            });

            AddonValidator.Insatnce.Validate(AddonManager.CurrentAddon);
        }
Esempio n. 7
0
 public void PrintLog(string message)
 {
     if (InvokeRequired)
     {
         Invoke(_addMessage, message);
         return;
     }
     LogText.SelectionStart  = LogText.TextLength;
     LogText.SelectionLength = message.Length;
     LogText.AppendText(message + Environment.NewLine);
 }
Esempio n. 8
0
 public void AddLog(string log, bool mask)
 {
     Invoke(new Action(() =>
     {
         LogText.SelectionStart  = LogText.TextLength;
         LogText.SelectionLength = 0;
         LogText.SelectionColor  = Color.OrangeRed;
         LogText.AppendText(DateTime.Now + " :  " + log + "\n");
         LogText.SelectionColor = LogText.ForeColor;
     }));
 }
Esempio n. 9
0
 private void PlayLogText(string log)
 {
     if (InvokeRequired == true)   //在不同线程上调用的 必须通过 Invoke 方法对控件进行调用
     {
         Invoke(new Action <string>(PlayLogText), new object[] { log });
     }
     else
     {
         LogText.AppendText(log + "\r\n");
     }
 }
Esempio n. 10
0
 public void Addlog(string text, Color color, bool isBold = false)
 {
     LogText.AppendText(@"[" + DateTime.Now.ToString("hh:mm:ss") + @"]");
     if (isBold)
     {
         LogText.SelectionFont = new Font(LogText.Font, FontStyle.Bold);
     }
     LogText.SelectionColor = color;
     LogText.AppendText(text + "\n");
     LogText.SelectionStart = LogText.Text.Length;
     LogText.ScrollToCaret();
 }
Esempio n. 11
0
 private void AddLogText(string logText, bool isError = false)
 {
     if (isError)
     {
         LogText.SelectionColor = Color.Red;
     }
     else
     {
         LogText.SelectionColor = Color.Black;
     }
     LogText.AppendText(Environment.NewLine + logText);
     LogText.ScrollToCaret();
 }
Esempio n. 12
0
        private void OutputHandler(object sender, DataReceivedEventArgs outLine)
        {
            string line = (outLine?.Data?.ToString());

            if (line == "Finished")
            {
                finished = true;
                if (!running && (in_pipeline || finished_pipeline))
                {
                    Invoke(new Action(() => PipelineList.Items[processed].BackColor = System.Drawing.SystemColors.Control));
                }
            }
            Invoke(new Action(() => LogText.AppendText(line + Environment.NewLine)));
        }
Esempio n. 13
0
 /// <summary>
 /// test window constructor
 /// </summary>
 public TestWindow()
 {
     InitializeComponent();
     LogManager.CompilerLog.AddUpdateCallback((s) =>
     {
         Dispatcher.Invoke(() =>
         {
             LogText.AppendText(s);
             if (LogText.LineCount > 0)
             {
                 LogText.ScrollToLine(LogText.LineCount - 1);
             }
         });
     });
 }
Esempio n. 14
0
        private void InitializeProgress()
        {
            ConnectToggle = new Progress <bool>(b => {
                ConnectBtn.Text     = b ? "Connect" : "Disconnect";
                UserInput.Enabled   = b;
                PassInput.Enabled   = b;
                PicInput.Enabled    = b;
                CharInput.Enabled   = b;
                SelectList.Enabled  = b;
                WorldList.Enabled   = b;
                ChannelList.Enabled = b;
                ModeList.Enabled    = b;
                UpTimer.Enabled     = !b;
                uptime = new DateTime(); // reset time after disconnect?
            });

            /* Writers */
            WriteLog  = new Progress <string>(s => LogText.AppendText(s + Environment.NewLine));
            WriteSend = PacketView.WriteSend;
            WriteRecv = PacketView.WriteRecv;

            /* Stats */
            UpdateMapler = new Progress <Mapler>(m => {
                if (m != null)
                {
                    NameStat.Text  = m.Name;
                    MapStat.Text   = m.Map.ToString();
                    LevelStat.Text = m.Level.ToString();
                    ExpStatus.Text = (decimal.Divide(m.Exp, Resources.Exp.PlayerExp[m.Level]) * 100).ToString("F") + '%';
                    RushView.Update(m.Map);
                }
                else
                {
                    NameStat.Text  = "Unknown";
                    MapStat.Text   = "-1";
                    LevelStat.Text = "-1";
                    ExpStatus.Text = "-1";
                    //Just going to leave this here... :D
                    ItemsStatus.Text  = "-1";
                    PeopleStatus.Text = "Not Active";
                }
            });
            UpdateMesos  = new Progress <long>(d => MesoStatus.Text = d.ToString());
            UpdateCh     = new Progress <byte>(d => ChannelStat.Text = d.ToString());
            UpdateItems  = new Progress <int>(d => ItemsStatus.Text = d.ToString());
            UpdatePeople = new Progress <int>(d => PeopleStatus.Text = d.ToString());
        }
Esempio n. 15
0
        public MainForm()
        {
            InitializeComponent();
            ButtonClick(btn_rcl, () =>
            {
                LogText.Clear();
                LogText.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":" + "开始");
                var msg = string.Empty;
                var e   = employee;
                WRITEDATAEntity WRITEDATA = new WRITEDATAEntity();
                WRITEDATA.RQ = this.WriteRq.Value.ToShortDateString();

                RCLEntity rcldata = new RCLEntity();
                rcldata.RQ        = this.WriteRq.Value.ToShortDateString();

                // service.WriteDataService.CanHyRcl(rcldata, LogText);
                service.WriteDataService.CanRcl(WRITEDATA, LogText);
            });
        }
Esempio n. 16
0
        private void Log(string text)
        {
            int oldStart  = LogText.SelectionStart;
            int oldLength = LogText.SelectionLength;

            if (LogText.TextLength == 0)
            {
                LogText.Text = text;
            }
            else
            {
                LogText.AppendText(Environment.NewLine + text);
            }

            LogText.Select(LogText.TextLength, 0);
            LogText.ScrollToCaret();

            LogText.Select(oldStart, oldLength);
        }
Esempio n. 17
0
        /// <summary>
        /// popout window constructor
        /// </summary>
        public PopoutCompileWindow()
        {
            InitializeComponent();
            WebServerManager.WebServiceUrlChanged  = s => Dispatcher.Invoke(() => { UrlTextBox.Text = s; });
            WebServerManager.WebServerStateChanged = b => Dispatcher.Invoke(() =>
            {
                WebServerButton.Content = b ? "Stop Web Server" : "Start Web Server";
            });

            callbackIndex = LogManager.CompilerLog.AddUpdateCallback((s) =>
            {
                Dispatcher.Invoke(() =>
                {
                    LogText.AppendText(s);
                    if (LogText.LineCount > 0)
                    {
                        LogText.ScrollToLine(LogText.LineCount - 1);
                    }
                });
            });
        }
Esempio n. 18
0
        private void button1_Click(object sender, EventArgs e)
        {
            LogText.Clear();
            OpenFileDialog openFileDialog = new OpenFileDialog
            {
                DefaultExt         = ".gen",
                Filter             = "GenFile(*.gen)|*.gen",
                Multiselect        = true,
                Title              = "Please Choose Your Gen File",
                AutoUpgradeEnabled = true,
                RestoreDirectory   = true
            };

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                this.FileNames = openFileDialog.FileNames;
                foreach (var VARIABLE in FileNames)
                {
                    string str = Path.GetFileName(VARIABLE);
                    LogText.AppendText(str + "\n");
                }
                textBox1.Text = Engine.GetOldPci(FileNames[0]);
            }
        }
Esempio n. 19
0
        //////////////////////////////////////////////////////////////////////////
        public void AddLogLine(string Line)
        {
            int Start = LogText.Text.Length;

            LogText.SelectionLength = 0;
            LogText.AppendText(Line + "\n");

            LogText.SelectionStart  = Start;
            LogText.SelectionLength = LogText.Text.Length - Start;

            if (Line.ToLower().Contains("error"))
            {
                LogText.SelectionColor = Color.Red;
            }
            else if (Line.ToLower().Contains("warning"))
            {
                LogText.SelectionColor = Color.Purple;
            }


            LogText.SelectionStart  = LogText.Text.Length;
            LogText.SelectionLength = 0;
            LogText.ScrollToCaret();
        }
        public string CL_CreateFakePlayer(string address, string setinfo)
        {
            try
            {
                string SV_CheckForDuplicateNames_method1 = "\"";
                string SV_CheckForDuplicateNames_method2 = "." + RandomSV_CheckForDuplicateNamesBug2(1) + ".";


                Random ra  = new Random();
                int    r1  = ra.Next(1, 1024);
                int    r2  = ra.Next(0, 2);
                int    r3  = ra.Next(0, 1);
                int    r4  = ra.Next(0, 1);
                int    r5  = ra.Next(0, 300);
                int    r6  = ra.Next(1, 20);
                int    r7  = ra.Next(20, 150);
                int    r8  = ra.Next(0, 1024);
                int    r9  = ra.Next(3500, 50000);
                int    r91 = ra.Next(60000 - 30000);


                var modelsn = new List <string> {
                    "arctic", "gign", "gsg9", "leet", "sas", "terror", "urban", "vip", "guerilla",
                };

                int index = random.Next(modelsn.Count);
                var model = modelsn[index];
                modelsn.RemoveAt(index);


                //Protinfo packet

                string userkey = "\\prot\\3\\unique\\-1\\raw\\steam\\cdkey\\" + CDKeyGenerator(32) + " ";

                // Setinfo packet

                string userinfo = "\\name\\" +
                                  NameText.Lines[0] +
                                  SV_CheckForDuplicateNames_method1 +
                                  "\\_cl_autowepswitch\\" + r3 +
                                  "\\bottomcolor\\" + r7 +
                                  "\\cl_dlmax\\" + r8 +
                                  "\\cl_lc\\" + r3 +
                                  "\\cl_lw\\" + r3 +
                                  "\\cl_updaterate\\" + r6 +
                                  "\\model\\" + model +
                                  "\\topcolor\\" + r5 +
                                  "\\_vgui_menus\\" + r2 +
                                  "\\rate\\" + r9 + "\"";

                string userinfo2 = "\\name\\" +
                                   NameText.Lines[0]
                                   + SV_CheckForDuplicateNames_method2
                                   + "\\_cl_autowepswitch\\" + r3 +
                                   "\\bottomcolor\\" + r7 +
                                   "\\cl_dlmax\\" + r8 +
                                   "\\cl_lc\\" + r3 +
                                   "\\cl_lw\\" + r3 +
                                   "\\cl_updaterate\\" + r6 +
                                   "\\model\\" + model +
                                   "\\topcolor\\" + r5 +
                                   "\\_vgui_menus\\" + r2 +
                                   "\\rate\\" + r9;

                if (spoofname.Checked == true)
                {
                    NameText.Text    = RandomStringSteamID(7);
                    NameText.Enabled = false;
                }
                if (spoofname.Checked == false)
                {
                    NameText.Enabled = true;
                }

                string fullstring  = userkey + setinfo + userinfo;
                string fullstring2 = userkey + setinfo + userinfo2;

                for (int i = 0; i < 2; i++)
                {
                    List <byte> list     = new List <byte>();
                    string[]    array    = address.Split(new char[] { ':' });
                    IPEndPoint  remoteEP = new IPEndPoint(IPAddress.Parse(array[0]), Convert.ToInt32(array[1]));
                    Socket      socket   = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                    socket.SendTimeout    = 1000;
                    socket.ReceiveTimeout = 1000;
                    socket.Connect(remoteEP);

                    byte[] array2 = new byte[2048];
                    socket.Send(new byte[] {
                        0xff, 0xff, 0xff, 0xff, 0x67,
                        0x65, 0x74, 0x63, 0x68, 0x61,
                        0x6c, 0x6c, 0x65, 0x6e, 0x67,
                        0x65, 0x20, 0x73, 0x74, 0x65, 0x61, 0x6d,
                        0x0A
                    });      // 0x0A bypass iptables protection Voxility servers
                    // SV_GetChallenge
                    socket.Receive(array2);

                    string challenge = Encoding.Default.GetString(array2).Split(new char[] { ' ' })[1];

                    list.AddRange(new byte[] { 0xff, 0xff, 0xff, 0xff }); // yyyy(utf8) for make connection
                    list.AddRange(Encoding.Default.GetBytes("connect"));  // SV_ConnectClient
                    list.AddRange(new byte[] { 0x20 });
                    list.AddRange(Encoding.Default.GetBytes("48"));       // SV_CheckProtocol
                    list.AddRange(new byte[] { 0x20 });
                    list.AddRange(Encoding.Default.GetBytes(challenge));
                    list.AddRange(new byte[] { 0x20 });


                    if (!string.IsNullOrEmpty(sv_password.Text))
                    {
                        string withpassword  = userkey + "\\password\\" + sv_password.Text + "" + userinfo;
                        string withpassword2 = userkey + "\\password\\" + sv_password.Text + "" + userinfo2;

                        if (bypassrehlds.Checked == true)
                        {
                            list.AddRange(Encoding.Default.GetBytes(withpassword2));
                        }
                        if (bypassrehlds.Checked == false)
                        {
                            list.AddRange(Encoding.Default.GetBytes(withpassword));
                        }
                    }
                    else
                    {
                        sv_password.Enabled = true;
                    }
                    if (this.steamid.SelectedIndex == 8)
                    {
                        // SXE userinfo
                        string fullstringsxei = userkey + setinfo + "\\*HID\\" + RandomStringSteamID(8) +
                                                userinfo;   // HID is generated by SXE
                        string fullstring2sxei = userkey + setinfo + "\\*HID\\" + RandomStringSteamID(8) +
                                                 userinfo2; // HID is generated by SXE

                        if (bypassrehlds.Checked == true)
                        {
                            list.AddRange(Encoding.Default.GetBytes(fullstring2sxei));
                        }
                        if (bypassrehlds.Checked == false)
                        {
                            list.AddRange(Encoding.Default.GetBytes(fullstringsxei));
                        }
                    }
                    else if (this.steamid.SelectedIndex == 7)
                    {
                        sv_password.Clear();
                        sv_password.Enabled = false;

                        // HLTV Userinfo
                        string withhltv = "\\prot\\2\\unique\\-1\\raw\\" + CDKeyGenerator(32) +
                                          "\\ " + "\\*hltv\\1" + userinfo;
                        string withhltv2 = "\\prot\\2\\unique\\-1\\raw\\" + CDKeyGenerator(32) +
                                           "\\ " + "\\*hltv\\1" + userinfo2;

                        if (bypassrehlds.Checked == true)
                        {
                            list.AddRange(Encoding.Default.GetBytes(withhltv2));
                        }
                        if (bypassrehlds.Checked == false)
                        {
                            list.AddRange(Encoding.Default.GetBytes(withhltv));
                        }
                    }
                    else if (string.IsNullOrEmpty(sv_password.Text))
                    {
                        sv_password.Enabled = true;
                        if (bypassrehlds.Checked == true)
                        {
                            list.AddRange(Encoding.Default.GetBytes(fullstring2));
                        }
                        if (bypassrehlds.Checked == false)
                        {
                            list.AddRange(Encoding.Default.GetBytes(fullstring));
                        }
                    }

                    //Start steamid certificated

                    if (this.steamid.SelectedIndex == 8)
                    {
                        list.AddRange(new byte[] { 0x2E, 0x99, 0x2E, 0x0A, 0x00 }); // SXE
                    }
                    else
                    {
                        list.AddRange(new byte[] { 0x0A }); // validation SV_GetIDString
                    }

                    if (this.steamid.SelectedIndex == 0)
                    {
                        list.AddRange(new byte[] {
                            0x4A, 0x00, 0x00, 0x00, 0x39, 0x05, 0x00, 0x00, 0x76, 0x65, 0x72, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x72, 0x0A, 0x00, 0x00, 0x01, 0x00, 0x10, 0x01, 0x4A, 0x38,
                            0x32, 0x5A, 0x57, 0x51, 0x41, 0x42, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                            0x00, 0x00
                        });

                        // Generate RevEmu certificate
                    }
                    if (this.steamid.SelectedIndex == 1)
                    {
                        //oldrevemu
                        list.AddRange(new byte[] { 0xFF, 0xFF });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(8)));
                        // Generate oldRevEmu certificate
                    }
                    if (this.steamid.SelectedIndex == 2)
                    {
                        //steamemu
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(80)));
                        list.AddRange(new byte[] { 0xff, 0xff, 0xff, 0xff });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(684)));
                        //Generate SteamEmu certificate
                    }
                    if (this.steamid.SelectedIndex == 3)
                    {
                        //avsmp 1
                        list.AddRange(new byte[] { 0x14, 0x00, 0x00, 0x00 });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(8)));
                        list.AddRange(new byte[] { 0xFF });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(3)));
                        list.AddRange(new byte[] { 0x01, 0x00, 0x10, 0x01 });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(4)));
                        list.AddRange(new byte[] { 0x00, 0x00, 0x00, 0x00 });
                        // Generate AVSMP 1 certificate
                    }
                    if (this.steamid.SelectedIndex == 4)
                    {
                        //avsmp 0
                        list.AddRange(new byte[] { 0x14, 0x00, 0x00, 0x00 });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(12)));
                        list.AddRange(new byte[] { 0x01, 0x00, 0x10, 0x01 });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(4)));
                        list.AddRange(new byte[] { 0x00, 0x00, 0x00, 0x00 });
                        // Generate AVSMP 0 certificate
                    }
                    if (this.steamid.SelectedIndex == 5)
                    {
                        list.AddRange(new byte[] { 0x7B, 0x7F, 0xCA, 0xD4, 0x23, 0x60, 0xDB, 0xC7, 0x1F, 0x2E, 0x6A, 0x6D, 0x96, 0x2A, 0x1A, 0x21, 0x44, 0x31, 0xC8, 0x3A, 0x05, 0x31, 0xC4, 0xB4 });
                        list.AddRange(Encoding.Default.GetBytes(RandomStringSteamID(744)));
                        // Generate SteamEmu certificate
                    }
                    if (this.steamid.SelectedIndex == 6)
                    {
                        list.AddRange(new byte[] {
                            0x14, 0x00, 0x00, 0x00, 0x33, 0xF3, 0x93, 0x6F, 0x25, 0x9F, 0x5D, 0x73, 0xFE, 0x37, 0x69, 0x17, 0x01, 0x00, 0x10, 0x01, 0xF7, 0xC9, 0xD7, 0x5D, 0xB2, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xFE, 0x37, 0x69, 0x17, 0x01, 0x00, 0x10, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x7A, 0x74, 0x79, 0x3E, 0x67, 0x00, 0xA8, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x71, 0x56, 0xD5, 0x5D, 0xF1, 0x05, 0xF1, 0x5D, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0xD0, 0xCB, 0xCD, 0x16, 0xBD, 0xB9, 0xBE, 0x28, 0x34, 0x22, 0x77, 0x69, 0xBC, 0x51, 0x59, 0xA4, 0xE9, 0x56, 0x17, 0xD0, 0x2B, 0xD2, 0xCE, 0x35, 0x5E, 0xB1, 0x57, 0x87, 0x66, 0x9A, 0x8D, 0x37, 0xC8, 0xC2, 0xFF, 0xC6, 0x8B, 0xBD, 0x50, 0x7C, 0x5C, 0x6E, 0xCC, 0x8D, 0xEE, 0x31, 0xB1, 0x9D, 0xD1, 0x63, 0x87, 0x35, 0x81, 0x62, 0x36, 0x76, 0x49, 0xB9, 0x87, 0x2A, 0x65, 0xDF, 0x43, 0xAA, 0xCD, 0x87, 0x81, 0xA3, 0x8A, 0xED, 0xA1, 0xAF, 0x57, 0x87, 0xAC, 0x85, 0xBA, 0x0F, 0xC1, 0x4D, 0x20, 0xBA, 0x7E, 0xA3, 0x5B, 0x3E, 0xB4, 0x98, 0xC4, 0x9F, 0xE4, 0x2F, 0xCB, 0xD7, 0xA6, 0x04, 0x6C, 0xE2, 0x2E, 0x67, 0xF5, 0x23, 0xC4, 0xF5, 0x38, 0x55, 0x24, 0x0C, 0x91, 0x40, 0xCA, 0x07, 0x86, 0x6C, 0xF6, 0x45, 0x43, 0x84, 0x45, 0x02, 0x91, 0xCD, 0x91, 0xA4, 0xFC, 0x85, 0x62, 0xC9
                        });
                        // Generate NativeSteam by Valve certificate
                        // This packet is sended by native of Valve (original SteamID)
                        // Note : it should be changed automatically to 14 days as it expires
                    }

                    socket.Send(list.ToArray());

                    if (Log.Checked == true)
                    {
                        socket.Receive(array2);
                        //Recive server info


                        LogText.SelectionStart = LogText.Text.Length;
                        LogText.ScrollToCaret();
                        LogText.AppendText("" + this.ServerList.Lines[i] + " : Bot name : " + NameText.Text + " (Emulator : " + steamid.Text + ")\n");
                        LogText.SelectionStart = LogText.Text.Length;
                        LogText.ScrollToCaret();
                        LogText.AppendText("" + this.ServerList.Lines[i] + " : Exploit : SV_CheckForDuplicateNames v2 \n");
                        LogText.SelectionStart = LogText.Text.Length;
                        string correctinfo = Encoding.Default.GetString(array2).Replace("ÿ", null).Replace("9", null).Replace("8", null);
                        if (correctinfo.Contains("B "))
                        {
                            string useridplayer = Encoding.Default.GetString(array2).Split(new char[] { ' ' })[1];
                            LogText.AppendText("" + this.ServerList.Lines[i] + " : ServerRecv : Bot is successfully connected (UserID : " + useridplayer + ")\n");
                        }
                        else
                        {
                            LogText.AppendText("" + this.ServerList.Lines[i] + " : ServerRecv : " + correctinfo);
                        }
                        if (correctinfo.Contains("Invalid userinfo in connect command"))
                        {
                            LogText.AppendText("CL_CreateFakePlayer : This server is secured, please activate \"Bypass ReHLDS\" \n");
                            list.AddRange(Encoding.Default.GetBytes(fullstring2));
                        }
                        LogText.SelectionStart = LogText.Text.Length;
                        LogText.ScrollToCaret();
                        LogText.AppendText("--------------------------------------------------------------------------\n");
                    }

                    list.Clear();
                }
                if (delaycheck.Checked == false)
                {
                    RepeatCreateFakePlayer.Stop();
                }
            }
            catch (Exception)
            {
                RepeatCreateFakePlayer.Stop();
            }
            return(address);
        }
Esempio n. 21
0
 public void LogAppend(Color color, string text)
 {
     LogText.AppendText(Environment.NewLine);
     LogText.SelectionColor = color;
     LogText.AppendText(text);
 }
Esempio n. 22
0
 public void AddLog(string log)
 {
     Invoke(new Action(() => { LogText.AppendText(DateTime.Now + " :  " + log + "\n"); }));
 }
Esempio n. 23
0
 /// <summary>
 /// Log输出
 /// </summary>
 /// <param name="msg"></param>
 public void Log(object msg)
 {
     LogText.AppendText(msg.ToString());
     LogText.AppendText(Environment.NewLine);
     LogText.ScrollToVerticalOffset(LogText.ExtentHeight);
 }
Esempio n. 24
0
 public void WriteLog(string log)
 {
     LogText.AppendText(log + "\n");
     LogText.Update();
 }
        private async void button2_Click_1(object sender, EventArgs e)
        {
            if (CommandSennder.Text.Contains("connect"))
            {
                var originalstring = CommandSennder.Text;
                var replacedstring = originalstring.Remove(0, originalstring.IndexOf(' ') + 1);
                CL_CreateFakePlayer(replacedstring, buffer);
                await Task.Delay(50);
            }
            else if (CommandSennder.Text.Contains("cmdlist"))
            {
                LogText.Text           = "Coded by SkillartzHD & Spawner\n\necho --> print console\nconnect --> connect to server ip:port\nsetinfo --> set player userinfo\ncmdlist --> print all commands registred in software\nvisit --> visit my website\nquit --> close software\nreload --> open again exploit gui\n";
                LogText.SelectionStart = LogText.Text.Length;
                LogText.ScrollToCaret();
            }
            else if (CommandSennder.Text.Contains("echo"))
            {
                var originalstring = CommandSennder.Text;
                var replacedstring = originalstring.Remove(0, originalstring.IndexOf(' ') + 1);
                LogText.SelectionStart = LogText.Text.Length;
                LogText.ScrollToCaret();
                LogText.AppendText(replacedstring + "\n");
            }
            else if (CommandSennder.Text.Contains("reload"))
            {
                Exploitv2 reload_function = new Exploitv2();
                reload_function.Show();
            }
            else if (CommandSennder.Text.Contains("visit"))
            {
                LogText.Text = "Coded by SkillartzHD & Spawner\n";
                Process.Start("http://alphacs.ro/member.php?8-SkillartzHD");
            }
            else if (CommandSennder.Text.Contains("quit"))
            {
                Close();
            }

            else if (CommandSennder.Text.Contains("setinfo"))
            {
                if (CommandSennder.Text.Contains("\\"))
                {
                    ResponseConsole.Text = "Don't allowed this string : " + CommandSennder.Text;
                    await Task.Delay(500);

                    ResponseConsole.Text = null;
                    return;
                }
                var    originalstring     = CommandSennder.Text;
                var    replacedstring     = originalstring.Remove(0, originalstring.IndexOf(' ') + 1);
                string registerinuserinfo = replacedstring.Replace(" ", "\\");
                buffer = "\\" + registerinuserinfo;
                ResponseConsole.Text = "Registred sucessfully in userinfo : " + replacedstring;
                await Task.Delay(500);

                ResponseConsole.Text = null;
            }

            else
            {
                ResponseConsole.Text = "Unknown command : " + CommandSennder.Text;
                await Task.Delay(500);

                ResponseConsole.Text = null;
            }
        }