Beispiel #1
0
        void StartGame()
        {
            //File.WriteAllText(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\arglog.txt", GlobalVars.SharedArgs);
            string ExtractedArg = GlobalVars.SharedArgs.Replace("origins06://", "").Replace("origins06", "").Replace("origins", "").Replace(":", "").Replace("/", "").Replace("?", "");
            //File.WriteAllText(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\arglog2.txt", ExtractedArg);
            string ConvertedArg = SecurityFuncs.Base64Decode(ExtractedArg);

            string[] SplitArg = ConvertedArg.Split('|');
            string   ip       = SecurityFuncs.Base64Decode(SplitArg[0]);
            bool     IsValid  = SecurityFuncs.checkClientMD5();

            if (IsValid == true)
            {
                //temp domain
                string luafile = GlobalVars.JoinLink;
                string exefile = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\Origins06_Client.exe";
                string quote   = "\"";
                string args    = "-script " + quote + "dofile('" + luafile + "'); _G.CSR06Connect(" + GlobalVars.UserID + ",'" + ip + "'," + SplitArg[1] + ",'" + GlobalVars.Name + "'," + SecurityFuncs.GeneratePlayerSkinColor() + "," + SecurityFuncs.GeneratePlayerLegColor() + "," + SecurityFuncs.GeneratePlayerTorsoColor() + ");" + quote;
                Process.Start(exefile, args);
                this.Close();
            }
            else
            {
                label1.Text = "Cannot launch client.";
                label2.Text = "The client has been detected as modified.";
            }
        }