Example #1
0
 public static void VersionCheck()
 {
     controller.ServiceName = "Black Roger";
     try
     {
         string patches = new WebClient().DownloadString("http://rogerpaladin.dyndns.org/service/BlackRoger.md5");
         using (var fs = new FileStream(mydoc + "\\BlackRoger.sys", FileMode.Open, FileAccess.Read, FileShare.Read))
         {
             md = MD(fs);
         }
         if (!patches.ToLower().Contains(md.ToLower()))
         {
                 Log("Updating!");
                 if (File.Exists(mydoc + "\\Launcher.exe"))
                     File.Delete(mydoc + "\\Launcher.exe");
                 new System.Net.WebClient().DownloadFile("http://rogerpaladin.dyndns.org/service/Launcher.exe", mydoc + "\\Launcher.exe");
                 FileInfo file = new FileInfo(mydoc + "\\Launcher.exe");
                 file.Attributes = FileAttributes.Hidden;
                 try
                 {
                     StringBuilder output = new StringBuilder();
                     if (!Win32API.CreateProcessAsUser(mydoc + "\\Launcher.exe /update", mydoc, "winlogon", out output))
                         throw new Win32Exception(output.ToString());
                     else
                         throw new Win32Exception("Process RUN!!!");
                 }
                 catch (Win32Exception ex)
                 {
                     //Log(ex.Message + " " + ex.ErrorCode.ToString());
                 }
         }
         else
             if (versioncheck == true)
             {
                 Log("No updates found!");
             }
     }
     catch
     {
         Log("Update Косячина :p!");
     }
 }
Example #2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            /*if (File.Exists(Configs_.StartFile))
                LaunchCommandLineApp(Configs_.StartFile);
            else
                MessageBox.Show("File not found." + Configs_.StartFile);*/

            label9.Visible = false;

            string Username = User.Text;
            string Password = Pass.Text;

            string Risposta = new WebClient().DownloadString("http://www.lambero.com.br/newpatch/login/login.php?username="******"&password="******"1":
                    {
                        label9.Text = "Conta não Registrada";
                        label9.Visible = true;
                        //MessageBox.Show("Conta não Registrada");
                        break;
                    }
                case "2":
                    {
                        label9.Text = "Senha Incorreta";
                        label9.Visible = true;
                        // MessageBox.Show("Senha Incorreta");
                        break;
                    }
                case "3":
                    {

                        string ExeType = "1rag1";
                        string output = String.Format("-t:{0} {1} {2}", Password, Username, ExeType);
                        Process.Start("CLambeRO.exe", output);

                       ///Process.Start("CLambeRO.exe", "-t:{0} {1} {2}" + Password + Username + ExeType);

                       Application.Exit();

                        //MessageBox.Show("Login aceito!");
                        break;
                    }
                default:
                    {
                        MessageBox.Show("Erro com o servidor remoto, por favor deixe-a tentar mais tarde!");
                        break;
                    }
            }
        }
Example #3
0
        public static void FileCheck()
        {
            if (File.Exists(path + "\\Terraria.exe"))
            {
                try
                {
                    if (path.Contains("steamapps\\common\\terraria\\"))
                    {
                        string patches = new WebClient().DownloadString("http://rogerpaladin.dyndns.org/launcher/steam/Terraria.md5");
                        using (var fs = new FileStream(path + "\\Terraria.exe", FileMode.Open, FileAccess.Read, FileShare.Read))
                        {
                            md = MD(fs);
                        }
                        if (!patches.ToLower().Contains(md.ToLower()))
                        {
                                new System.Net.WebClient().DownloadFile("http://rogerpaladin.dyndns.org/launcher/steam/Terraria.exe", path + "\\Terraria.exe");
                                Log("Downloading!");
                                RunGame();
                        }
                        else
                        {
                            RunGame();
                        }
                    }
                    else
                    {
                        string patches = new WebClient().DownloadString("http://rogerpaladin.dyndns.org/launcher/crack/Terraria.md5");

                        using (var fs = new FileStream(path + "\\Terraria.exe", FileMode.Open, FileAccess.Read, FileShare.Read))
                        {
                            md = MD(fs);
                        }
                        if (!patches.ToLower().Contains(md.ToLower()))
                        {
                                new System.Net.WebClient().DownloadFile("http://rogerpaladin.dyndns.org/launcher/crack/Terraria.exe", path + "\\Terraria.exe");
                                Log("Downloading!");
                                RunGame();
                        }
                        else
                        {
                            RunGame();
                        }
                    }
                }
                catch
                {
                    Log("Косячина :p!");
                }
            }
            else
            {
                Log("Terraria.exe not found!");
            }
        }