Example #1
0
        void Button1Click(object sender, EventArgs e)
        {
            using (var sfd = new SaveFileDialog())
            {
                sfd.Filter      = "Text files (*.txt)|*.txt";
                sfd.FilterIndex = 2;
                sfd.FileName    = "clientinfo.txt";
                sfd.Title       = "Save clientinfo.txt";

                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    string[] lines =
                    {
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesPlayerName.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesID.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LoadsAssetsOnline.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LegacyMode.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_HasRocky.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientMD5.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientVersion.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientDesc.ToString())
                    };
                    File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|", lines)));
                }
            }
        }
Example #2
0
 public static void WriteConfigValues(string cfgpath)
 {
     string[] lines =
     {
         SecurityFuncs.Base64Encode(GlobalVars.CloseOnLaunch.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.UserID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.PlayerName.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.SelectedClient.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_Hat1ID_Offline.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_Hat2ID_Offline.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_Hat3ID_Offline.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.HeadColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.TorsoColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.LeftArmColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.RightArmColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.LeftLegColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.RightLegColorID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_HeadColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_TorsoColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_LeftArmColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_RightArmColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_LeftLegColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ColorMenu_RightLegColor.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_TShirt.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_Shirt.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_Pants.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.Custom_IconType.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.FaceID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.HeadID.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.AdminMode.ToString())
     };
     File.WriteAllText(cfgpath, SecurityFuncs.Base64Encode(string.Join("|", lines)));
 }
Example #3
0
        void LoaderFormLoad(object sender, EventArgs e)
        {
            string line1;
            string Decryptline3, Decryptline4;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\info.txt"))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }
            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline3                = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4                = SecurityFuncs.Base64Decode(result[3]);
            GlobalVars.DefaultScript    = Decryptline3;
            GlobalVars.DefaultScriptMD5 = Decryptline4;
            QuickConfigure main = new QuickConfigure();

            main.ShowDialog();
            System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback(CheckIfFinished), null, 1, 0);
        }
Example #4
0
 private void CheckIfFinished(object state)
 {
     if (GlobalVars.ReadyToLaunch == false)
     {
         System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback(CheckIfFinished), null, 1, 0);
     }
     else
     {
         string   ExtractedArg = GlobalVars.SharedArgs.Replace("rbxlegacy://", "").Replace("rbxlegacy", "").Replace(":", "").Replace("/", "").Replace("?", "");
         string   ConvertedArg = SecurityFuncs.Base64Decode(ExtractedArg);
         string[] SplitArg     = ConvertedArg.Split('|');
         string   ip           = SecurityFuncs.Base64Decode(SplitArg[0]);
         string   port         = SecurityFuncs.Base64Decode(SplitArg[1]);
         string   client       = SecurityFuncs.Base64Decode(SplitArg[2]);
         label1.Text = "Launching " + client + " game...";
         LauncherFuncs.ReadClientValues(client);
         if (GlobalVars.HasRocky == true)
         {
             Process sudp = new Process();
             sudp.StartInfo.FileName        = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\udppipe.exe";
             sudp.StartInfo.Arguments       = "-p " + ip + " " + port + " " + port;
             sudp.StartInfo.UseShellExecute = false;
             sudp.StartInfo.CreateNoWindow  = true;
             sudp.Start();
         }
         StartGame();
     }
 }
        public static void ReadClientValues(string clientpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7, Decryptline8;

            using (StreamReader reader = new StreamReader(clientpath))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6 = SecurityFuncs.Base64Decode(result[5]);
            Decryptline7 = SecurityFuncs.Base64Decode(result[6]);
            Decryptline8 = SecurityFuncs.Base64Decode(result[7]);

            bool bline1 = Convert.ToBoolean(Decryptline1);

            GlobalVars.UsesPlayerName = bline1;

            bool bline2 = Convert.ToBoolean(Decryptline2);

            GlobalVars.UsesID = bline2;

            bool bline3 = Convert.ToBoolean(Decryptline3);

            GlobalVars.LoadsAssetsOnline = bline3;

            bool bline4 = Convert.ToBoolean(Decryptline4);

            GlobalVars.LegacyMode = bline4;

            bool bline5 = Convert.ToBoolean(Decryptline5);

            GlobalVars.HasRocky = bline5;

            GlobalVars.SelectedClientMD5 = Decryptline6;

            int iline7 = Convert.ToInt32(Decryptline7);

            GlobalVars.SelectedClientVersion = iline7;

            GlobalVars.SelectedClientDesc = Decryptline8;

            GlobalVars.MD5 = GlobalVars.SelectedClientMD5;
        }
        public static void ResetConfigValues()
        {
            string line1;
            string Decryptline2;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\info.txt"))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }
            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline2 = SecurityFuncs.Base64Decode(result[1]);

            GlobalVars.CloseOnLaunch           = false;
            GlobalVars.UserID                  = 0;
            GlobalVars.PlayerName              = "Player";
            GlobalVars.SelectedClient          = Decryptline2;
            GlobalVars.ServerPort              = 53640;
            GlobalVars.Custom_Hat1ID_Offline   = "NoHat.rbxm";
            GlobalVars.Custom_Hat2ID_Offline   = "NoHat.rbxm";
            GlobalVars.Custom_Hat3ID_Offline   = "NoHat.rbxm";
            GlobalVars.HeadColorID             = 24;
            GlobalVars.TorsoColorID            = 23;
            GlobalVars.LeftArmColorID          = 24;
            GlobalVars.RightArmColorID         = 24;
            GlobalVars.LeftLegColorID          = 119;
            GlobalVars.RightLegColorID         = 119;
            GlobalVars.ColorMenu_HeadColor     = "Color [A=255, R=245, G=205, B=47]";
            GlobalVars.ColorMenu_TorsoColor    = "Color [A=255, R=13, G=105, B=172]";
            GlobalVars.ColorMenu_LeftArmColor  = "Color [A=255, R=245, G=205, B=47]";
            GlobalVars.ColorMenu_RightArmColor = "Color [A=255, R=245, G=205, B=47]";
            GlobalVars.ColorMenu_LeftLegColor  = "Color [A=255, R=164, G=189, B=71]";
            GlobalVars.ColorMenu_RightLegColor = "Color [A=255, R=164, G=189, B=71]";
            GlobalVars.Custom_TShirt           = 0;
            GlobalVars.Custom_Shirt            = 0;
            GlobalVars.Custom_Pants            = 0;
            GlobalVars.Custom_IconType         = "NBC";
            GlobalVars.AdminMode               = false;
        }
Example #7
0
        // info

        void Button6Click(object sender, EventArgs e)
        {
            using (var ofd = new OpenFileDialog())
            {
                ofd.Filter      = "Text files (*.txt)|*.txt";
                ofd.FilterIndex = 2;
                ofd.FileName    = "info.txt";
                ofd.Title       = "Load info.txt";
                if (ofd.ShowDialog() == DialogResult.OK)
                {
                    string line1;
                    string Decryptline1, Decryptline2, Decryptline3, Decryptline4;

                    using (StreamReader reader = new StreamReader(ofd.FileName))
                    {
                        line1 = reader.ReadLine();
                    }

                    if (!SecurityFuncs.IsBase64String(line1))
                    {
                        return;
                    }

                    string   ConvertedLine = SecurityFuncs.Base64Decode(line1);
                    string[] result        = ConvertedLine.Split('|');
                    Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
                    Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
                    Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
                    Decryptline4 = SecurityFuncs.Base64Decode(result[3]);

                    GlobalVars.InfoEditor_Version       = Decryptline1;
                    GlobalVars.InfoEditor_DefaultClient = Decryptline2;
                    GlobalVars.InfoEditor_ScriptPath    = Decryptline3;
                    GlobalVars.InfoEditor_ScriptMD5     = Decryptline4;

                    textBox7.Text = GlobalVars.InfoEditor_Version;
                    textBox6.Text = GlobalVars.InfoEditor_DefaultClient;
                    textBox5.Text = GlobalVars.InfoEditor_ScriptPath;
                    textBox4.Text = GlobalVars.InfoEditor_ScriptMD5.ToUpper();
                }
            }
        }
Example #8
0
 public static void WriteServerPrefs(string cfgpath)
 {
     string[] lines =
     {
         SecurityFuncs.Base64Encode(GlobalVars.Map.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ServerPort.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.DefaultRobloxPort.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.PlayerLimit.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.RespawnTime.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist1.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist2.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist3.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist4.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist5.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist6.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist7.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist8.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.upnp.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ChatType.ToString())
     };
     File.WriteAllText(cfgpath, SecurityFuncs.Base64Encode(string.Join("|", lines)));
 }
Example #9
0
        void Button7Click(object sender, EventArgs e)
        {
            using (var sfd = new SaveFileDialog())
            {
                sfd.Filter      = "Text files (*.txt)|*.txt";
                sfd.FilterIndex = 2;
                sfd.FileName    = "info.txt";
                sfd.Title       = "Save info.txt";

                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    string[] lines =
                    {
                        SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_Version.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_DefaultClient.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptPath.ToString()),
                        SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptMD5.ToString())
                    };
                    File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|", lines)));
                }
            }
        }
 public static void WriteServerPrefs(string cfgpath)
 {
     string[] lines =
     {
         SecurityFuncs.Base64Encode(GlobalVars.Map.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ServerPort.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.DefaultRobloxPort.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.PlayerLimit.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.RespawnTime.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.IsPersonalServer.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.melee.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.navigation.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.social.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.powerup.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.explosives.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.transport.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ranged.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.musical.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.building.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.navigation.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.social.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.explosives.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.transport.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ranged.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.musical.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.building.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist1.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist2.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist3.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist4.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist5.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist6.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist7.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.blacklist8.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.upnp.ToString()),
         SecurityFuncs.Base64Encode(GlobalVars.ChatType.ToString())
     };
     File.WriteAllText(cfgpath, SecurityFuncs.Base64Encode(string.Join("|", lines)));
 }
Example #11
0
		void MainFormLoad(object sender, EventArgs e)
		{
			string line1;
			string Decryptline1, Decryptline2, Decryptline3, Decryptline4;
			using(StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\info.txt"))
			{
    			line1 = reader.ReadLine();
			}
			
			if (!SecurityFuncs.IsBase64String(line1))
				return;
			string ConvertedLine = SecurityFuncs.Base64Decode(line1);
			string[] result = ConvertedLine.Split('|');
			Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
    		Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
    		Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
    		Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
			string version = Decryptline1;
    		GlobalVars.SelectedClient = Decryptline2;
    		GlobalVars.DefaultScript = Decryptline3;
    		GlobalVars.DefaultScriptMD5 = Decryptline4;
    		ConsolePrint("RBXLegacy Launcher version " + version + " loaded. Initializing config.", 4);
    		if (File.Exists("changelog.txt"))
			{
    			richTextBox2.Text = File.ReadAllText("changelog.txt");
    		}
    		else
    		{
    			ConsolePrint("ERROR 4 - changelog.txt not found.", 2);
    		}
			if (!File.Exists("rbxlegacy_config.txt"))
			{
				ConsolePrint("WARNING 1 - rbxlegacy_config.txt not found. Creating one with default values.", 5);
				WriteConfigValues();
			}
			if (!File.Exists("serverhost_config.txt"))
			{
				ConsolePrint("WARNING 1 - serverhost_config.txt not found. Creating one with default values.", 5);
				LauncherFuncs.WriteServerPrefs("serverhost_config.txt");
			}
			if (!File.Exists("servers.txt"))
			{
				ConsolePrint("WARNING 2 - servers.txt not found. Creating empty file.", 5);
				File.Create("servers.txt").Dispose();
			}
			if (!File.Exists("ports.txt"))
			{
				ConsolePrint("WARNING 3 - ports.txt not found. Creating empty file.", 5);
				File.Create("ports.txt").Dispose();
			}
			GlobalVars.ClientDir = Path.Combine(Environment.CurrentDirectory, @"clients");
			GlobalVars.ClientDir = GlobalVars.ClientDir.Replace(@"\",@"\\");
			GlobalVars.ScriptsDir = Path.Combine(Environment.CurrentDirectory, @"scripts");
			GlobalVars.ScriptsDir = GlobalVars.ScriptsDir.Replace(@"\",@"\\");
			GlobalVars.MapsDir = Path.Combine(Environment.CurrentDirectory, @"maps");
			GlobalVars.MapsDir = GlobalVars.MapsDir.Replace(@"\",@"\\");
			GlobalVars.CustomPlayerDir = Path.Combine(Environment.CurrentDirectory, @"avatar");
			GlobalVars.CustomPlayerDir = GlobalVars.CustomPlayerDir.Replace(@"\",@"\\");
			label5.Text = Environment.CurrentDirectory;
			label8.Text = Application.ProductVersion;
			GlobalVars.IP = "localhost";
    		GlobalVars.Map = "Baseplate.rbxl";
    		label11.Text = version;
    		GlobalVars.Version = version;
    		ReadConfigValues();
		}
Example #12
0
 void StartGame()
 {
     if (SecurityFuncs.checkScriptMD5() == true)
     {
         string   ExtractedArg = GlobalVars.SharedArgs.Replace("rbxlegacy://", "").Replace("rbxlegacy", "").Replace(":", "").Replace("/", "").Replace("?", "");
         string   ConvertedArg = SecurityFuncs.Base64Decode(ExtractedArg);
         string[] SplitArg     = ConvertedArg.Split('|');
         string   ip           = SecurityFuncs.Base64Decode(SplitArg[0]);
         string   port         = SecurityFuncs.Base64Decode(SplitArg[1]);
         string   client       = SecurityFuncs.Base64Decode(SplitArg[2]);
         ReadClientValues(client);
         string rbxexe = "";
         if (GlobalVars.LegacyMode == true)
         {
             rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + client + @"\\RobloxApp.exe";
         }
         else
         {
             rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + client + @"\\RobloxPlayer.exe";
         }
         string quote         = "\"";
         string args          = "";
         string HatIDOffline1 = GlobalVars.Custom_Hat1ID_Offline;
         string HatIDOffline2 = GlobalVars.Custom_Hat2ID_Offline;
         string HatIDOffline3 = GlobalVars.Custom_Hat3ID_Offline;
         if (GlobalVars.HasRocky == false)
         {
             if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
         }
         else
         {
             if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
             else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false)
             {
                 args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
             }
         }
         try
         {
             if (SecurityFuncs.checkClientMD5(client) == true)
             {
                 Process pclient = new Process();
                 pclient.StartInfo.FileName  = rbxexe;
                 pclient.StartInfo.Arguments = args;
                 pclient.EnableRaisingEvents = true;
                 pclient.Exited += new EventHandler(ClientExited);
                 pclient.Start();
                 this.ShowInTaskbar = false;
                 this.WindowState   = FormWindowState.Minimized;
             }
             else
             {
                 label1.Text = "The client has been detected as modified.";
             }
         }
         catch (Exception)
         {
             label1.Text = "The client has been detected as modified.";
         }
     }
     else
     {
         label1.Text = "The script has been detected as modified.";
     }
 }
Example #13
0
        void startGame()
        {
            // checks
            if (SecurityFuncs.checkScriptMD5() == false)
            {
                ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (The script has been detected as modified.)", 2);
                DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (The script has been detected as modified.)", "RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            else if (SecurityFuncs.checkClientMD5(GlobalVars.SelectedClient) == false)
            {
                ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (The client has been detected as modified.)", 2);
                DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (The client has been detected as modified.)", "RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            string clientPath = "";
            string arguments  = "";
            string launchArgs = "";

            if (GlobalVars.LegacyMode == true)
            {
                clientPath = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
            }
            else
            {
                clientPath = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxPlayer.exe";
            }

            if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true)
            {
                arguments = "dofile(\"" + GlobalVars.DefaultScript + "\") _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(" + GlobalVars.UserID + ",  " + GlobalVars.IP + ", " + GlobalVars.RobloxPort + ", \"" + GlobalVars.PlayerName + "\", \"" + GlobalVars.Custom_Hat1ID_Offline + "\", \"" + GlobalVars.Custom_Hat2ID_Offline + "\", \"" + GlobalVars.Custom_Hat3ID_Offline + "\", \"" + GlobalVars.HeadColorID + ", " + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",\"" + GlobalVars.Custom_TShirt + "\", \"" + GlobalVars.Custom_Shirt + "\", \"" + GlobalVars.Custom_Pants + "\", \"" + GlobalVars.FaceID + "\", \"" + GlobalVars.HeadID + "\", \"" + GlobalVars.Custom_IconType + "\", " + GlobalVars.AdminMode.ToString().ToLower() + "\")";
            }
            else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true)
            {
                arguments = "dofile(\"" + GlobalVars.DefaultScript + "\") _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(" + GlobalVars.UserID + "," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",\"Player\",\"" + GlobalVars.Custom_Hat1ID_Offline + "\", \"" + GlobalVars.Custom_Hat2ID_Offline + "\", \"" + GlobalVars.Custom_Hat3ID_Offline + "\"," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",\"" + GlobalVars.Custom_TShirt + "\", \"" + GlobalVars.Custom_Shirt + "\", \"" + GlobalVars.Custom_Pants + "\", \"" + GlobalVars.FaceID + "\", \"" + GlobalVars.HeadID + "\", \"" + GlobalVars.Custom_IconType + "\"," + GlobalVars.AdminMode.ToString().ToLower() + "\")";
            }
            else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false)
            {
                arguments = "dofile(\"" + GlobalVars.DefaultScript + "\") _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(0," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",\"" + GlobalVars.PlayerName + "\", \"" + GlobalVars.Custom_Hat1ID_Offline + "\", \"" + GlobalVars.Custom_Hat2ID_Offline + "\", \"" + GlobalVars.Custom_Hat3ID_Offline + "\"," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",\"" + GlobalVars.Custom_TShirt + "\", \"" + GlobalVars.Custom_Shirt + "\", \"" + GlobalVars.Custom_Pants + "\", \"" + GlobalVars.FaceID + "\", \"" + GlobalVars.HeadID + "\", \"" + GlobalVars.Custom_IconType + "\"," + GlobalVars.AdminMode.ToString().ToLower() + "\")";
            }
            else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false)
            {
                arguments = "dofile(\"" + GlobalVars.DefaultScript + "\") _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(0," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",\"Player\",\"" + GlobalVars.Custom_Hat1ID_Offline + "\", \"" + GlobalVars.Custom_Hat2ID_Offline + "\", \"" + GlobalVars.Custom_Hat3ID_Offline + "\"," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",\"" + GlobalVars.Custom_TShirt + "\", \"" + GlobalVars.Custom_Shirt + "\", \"" + GlobalVars.Custom_Pants + "\", \"" + GlobalVars.FaceID + "\", \"" + GlobalVars.HeadID + "\", \"" + GlobalVars.Custom_IconType + "\"," + GlobalVars.AdminMode.ToString().ToLower() + "\")";
            }

            if (GlobalVars.HasRocky == true)
            {
                arguments = arguments.Replace(GlobalVars.IP, "localhost");
            }
            // Write the arguments to a file (Fixes 2007)
            string path         = Assembly.GetExecutingAssembly().Location;
            string argumentName = "arguments" + DateTime.Now + ".lua";

            argumentName = argumentName.Replace(":", "-");
            argumentName = argumentName.Replace("/", ".");
            argumentName = argumentName.Replace(" ", "");
            string argumentPath = Path.Combine(path, @"..\data\" + argumentName);

            if (!File.Exists(argumentPath))
            {
                File.Create(argumentPath).Dispose();
            }
            File.WriteAllText(argumentPath, arguments);
            if (GlobalVars.SelectedClientVersion >= 2)
            {
                launchArgs = "-script \"data\\" + argumentName + "\"";
            }
            else
            {
                launchArgs = "-script dofile(\"rbxasset://..//..//..//data\\" + argumentName + "\")";
            }
            ConsolePrint("Client loaded.", 4);
            try
            {
                Process client = new Process();
                client.StartInfo.FileName  = clientPath;
                client.StartInfo.Arguments = launchArgs;
                client.EnableRaisingEvents = true;
                ReadClientValues(GlobalVars.SelectedClient);
                client.Exited += new EventHandler(ClientExited);
                client.Start();
                GlobalVars.presence.largeImageKey  = GlobalVars.imagekey_large;
                GlobalVars.presence.state          = "In Game";
                GlobalVars.presence.details        = GlobalVars.SelectedClient;
                GlobalVars.presence.largeImageText = GlobalVars.PlayerName;
                DiscordRpc.UpdatePresence(ref GlobalVars.presence);
            }
            catch (Exception e)
            {
                ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + e.ToString() + ")", 2);
                DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (" + e.ToString() + ")", "RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        public static void ReadConfigValues(string cfgpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7, Decryptline8, Decryptline9, Decryptline10, Decryptline11, Decryptline12, Decryptline13, Decryptline14, Decryptline15, Decryptline16, Decryptline17, Decryptline18, Decryptline19, Decryptline20, Decryptline21, Decryptline22, Decryptline23, Decryptline24, Decryptline25, Decryptline26, Decryptline27, Decryptline28, Decryptline29, Decryptline30, Decryptline31, Decryptline32, Decryptline33, Decryptline34;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\" + cfgpath))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1  = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2  = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3  = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4  = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5  = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6  = SecurityFuncs.Base64Decode(result[5]);
            Decryptline7  = SecurityFuncs.Base64Decode(result[6]);
            Decryptline8  = SecurityFuncs.Base64Decode(result[7]);
            Decryptline9  = SecurityFuncs.Base64Decode(result[8]);
            Decryptline10 = SecurityFuncs.Base64Decode(result[9]);
            Decryptline11 = SecurityFuncs.Base64Decode(result[10]);
            Decryptline12 = SecurityFuncs.Base64Decode(result[11]);
            Decryptline13 = SecurityFuncs.Base64Decode(result[12]);
            Decryptline14 = SecurityFuncs.Base64Decode(result[13]);
            Decryptline15 = SecurityFuncs.Base64Decode(result[14]);
            Decryptline16 = SecurityFuncs.Base64Decode(result[15]);
            Decryptline17 = SecurityFuncs.Base64Decode(result[16]);
            Decryptline18 = SecurityFuncs.Base64Decode(result[17]);
            Decryptline19 = SecurityFuncs.Base64Decode(result[18]);
            Decryptline20 = SecurityFuncs.Base64Decode(result[19]);
            Decryptline21 = SecurityFuncs.Base64Decode(result[20]);
            Decryptline22 = SecurityFuncs.Base64Decode(result[21]);
            Decryptline23 = SecurityFuncs.Base64Decode(result[22]);
            Decryptline24 = SecurityFuncs.Base64Decode(result[23]);
            Decryptline25 = SecurityFuncs.Base64Decode(result[24]);
            Decryptline26 = SecurityFuncs.Base64Decode(result[25]);
            Decryptline27 = SecurityFuncs.Base64Decode(result[26]);
            Decryptline28 = SecurityFuncs.Base64Decode(result[27]);
            Decryptline29 = SecurityFuncs.Base64Decode(result[28]);
            Decryptline30 = SecurityFuncs.Base64Decode(result[29]);
            Decryptline31 = SecurityFuncs.Base64Decode(result[30]);
            Decryptline32 = SecurityFuncs.Base64Decode(result[31]);
            Decryptline33 = SecurityFuncs.Base64Decode(result[32]);
            Decryptline34 = SecurityFuncs.Base64Decode(result[33]);

            bool bline1 = Convert.ToBoolean(Decryptline1);

            GlobalVars.CloseOnLaunch = bline1;

            int iline2 = Convert.ToInt32(Decryptline2);

            GlobalVars.UserID = iline2;

            GlobalVars.PlayerName = Decryptline3;

            GlobalVars.SelectedClient = Decryptline4;

            GlobalVars.Custom_Hat1ID_Offline = Decryptline5;
            GlobalVars.Custom_Hat2ID_Offline = Decryptline6;
            GlobalVars.Custom_Hat3ID_Offline = Decryptline7;

            int iline8 = Convert.ToInt32(Decryptline8);

            GlobalVars.HeadColorID = iline8;

            int iline9 = Convert.ToInt32(Decryptline9);

            GlobalVars.TorsoColorID = iline9;

            int iline10 = Convert.ToInt32(Decryptline10);

            GlobalVars.LeftArmColorID = iline10;

            int iline11 = Convert.ToInt32(Decryptline11);

            GlobalVars.RightArmColorID = iline11;

            int iline12 = Convert.ToInt32(Decryptline12);

            GlobalVars.LeftLegColorID = iline12;

            int iline13 = Convert.ToInt32(Decryptline13);

            GlobalVars.RightLegColorID = iline13;

            GlobalVars.ColorMenu_HeadColor     = Decryptline14;
            GlobalVars.ColorMenu_TorsoColor    = Decryptline15;
            GlobalVars.ColorMenu_LeftArmColor  = Decryptline16;
            GlobalVars.ColorMenu_RightArmColor = Decryptline17;
            GlobalVars.ColorMenu_LeftLegColor  = Decryptline18;
            GlobalVars.ColorMenu_RightLegColor = Decryptline19;

            int iline20 = Convert.ToInt32(Decryptline20);

            GlobalVars.Custom_TShirt = iline20;
            int iline21 = Convert.ToInt32(Decryptline21);

            GlobalVars.Custom_Shirt = iline21;
            int iline22 = Convert.ToInt32(Decryptline22);

            GlobalVars.Custom_Pants = iline22;

            GlobalVars.Custom_IconType = Decryptline23;

            GlobalVars.FaceID     = Decryptline24;
            GlobalVars.HeadID     = Decryptline25;
            GlobalVars.TorsoID    = Decryptline26;
            GlobalVars.LeftArmID  = Decryptline27;
            GlobalVars.RightArmID = Decryptline28;
            GlobalVars.LeftLegID  = Decryptline29;
            GlobalVars.RightLegID = Decryptline30;

            GlobalVars.Custom_Gear1 = Decryptline31;
            GlobalVars.Custom_Gear2 = Decryptline32;
            GlobalVars.Custom_Gear3 = Decryptline33;

            bool bline34 = Convert.ToBoolean(Decryptline34);

            GlobalVars.AdminMode = bline34;
        }
        public static void ReadServerPrefs(string cfgpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7, Decryptline8, Decryptline9, Decryptline10, Decryptline11, Decryptline12, Decryptline13, Decryptline14, Decryptline15, Decryptline16, Decryptline17, Decryptline18, Decryptline19, Decryptline20, Decryptline21, Decryptline22, Decryptline23, Decryptline24, Decryptline25, Decryptline26, Decryptline27, Decryptline28, Decryptline29, Decryptline30, Decryptline31, Decryptline32;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\" + cfgpath))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1  = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2  = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3  = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4  = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5  = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6  = SecurityFuncs.Base64Decode(result[5]);
            Decryptline7  = SecurityFuncs.Base64Decode(result[6]);
            Decryptline8  = SecurityFuncs.Base64Decode(result[7]);
            Decryptline9  = SecurityFuncs.Base64Decode(result[8]);
            Decryptline10 = SecurityFuncs.Base64Decode(result[9]);
            Decryptline11 = SecurityFuncs.Base64Decode(result[10]);
            Decryptline12 = SecurityFuncs.Base64Decode(result[11]);
            Decryptline13 = SecurityFuncs.Base64Decode(result[12]);
            Decryptline14 = SecurityFuncs.Base64Decode(result[13]);
            Decryptline15 = SecurityFuncs.Base64Decode(result[14]);
            Decryptline16 = SecurityFuncs.Base64Decode(result[15]);
            Decryptline17 = SecurityFuncs.Base64Decode(result[16]);
            Decryptline18 = SecurityFuncs.Base64Decode(result[17]);
            Decryptline19 = SecurityFuncs.Base64Decode(result[18]);
            Decryptline20 = SecurityFuncs.Base64Decode(result[19]);
            Decryptline21 = SecurityFuncs.Base64Decode(result[20]);
            Decryptline22 = SecurityFuncs.Base64Decode(result[21]);
            Decryptline23 = SecurityFuncs.Base64Decode(result[22]);
            Decryptline24 = SecurityFuncs.Base64Decode(result[23]);
            Decryptline25 = SecurityFuncs.Base64Decode(result[24]);
            Decryptline26 = SecurityFuncs.Base64Decode(result[25]);
            Decryptline27 = SecurityFuncs.Base64Decode(result[26]);
            Decryptline28 = SecurityFuncs.Base64Decode(result[27]);
            Decryptline29 = SecurityFuncs.Base64Decode(result[28]);
            Decryptline30 = SecurityFuncs.Base64Decode(result[29]);
            Decryptline31 = SecurityFuncs.Base64Decode(result[30]);
            Decryptline32 = SecurityFuncs.Base64Decode(result[31]);

            GlobalVars.Map = Decryptline1;

            int iline2 = Convert.ToInt32(Decryptline2);

            GlobalVars.ServerPort = iline2;

            int iline3 = Convert.ToInt32(Decryptline3);

            GlobalVars.DefaultRobloxPort = iline3;

            int iline4 = Convert.ToInt32(Decryptline4);

            GlobalVars.PlayerLimit = iline4;

            int iline5 = Convert.ToInt32(Decryptline5);

            GlobalVars.RespawnTime = iline5;

            bool bline6 = Convert.ToBoolean(Decryptline6);

            GlobalVars.IsPersonalServer = bline6;

            bool bline7 = Convert.ToBoolean(Decryptline7);

            GlobalVars.melee = bline7;
            bool bline8 = Convert.ToBoolean(Decryptline8);

            GlobalVars.navigation = bline8;
            bool bline9 = Convert.ToBoolean(Decryptline9);

            GlobalVars.social = bline9;
            bool bline10 = Convert.ToBoolean(Decryptline10);

            GlobalVars.powerup = bline10;
            bool bline11 = Convert.ToBoolean(Decryptline11);

            GlobalVars.explosives = bline11;
            bool bline12 = Convert.ToBoolean(Decryptline12);

            GlobalVars.transport = bline12;
            bool bline13 = Convert.ToBoolean(Decryptline13);

            GlobalVars.ranged = bline13;
            bool bline14 = Convert.ToBoolean(Decryptline14);

            GlobalVars.musical = bline14;
            bool bline15 = Convert.ToBoolean(Decryptline15);

            GlobalVars.building = bline15;
            bool bline16 = Convert.ToBoolean(Decryptline16);

            GlobalVars.navigation = bline16;
            bool bline17 = Convert.ToBoolean(Decryptline17);

            GlobalVars.social = bline17;
            bool bline18 = Convert.ToBoolean(Decryptline18);

            GlobalVars.explosives = bline18;
            bool bline19 = Convert.ToBoolean(Decryptline19);

            GlobalVars.transport = bline19;
            bool bline20 = Convert.ToBoolean(Decryptline20);

            GlobalVars.ranged = bline20;
            bool bline21 = Convert.ToBoolean(Decryptline21);

            GlobalVars.musical = bline21;
            bool bline22 = Convert.ToBoolean(Decryptline22);

            GlobalVars.building = bline22;

            int iline23 = Convert.ToInt32(Decryptline23);

            GlobalVars.blacklist1 = iline23;
            int iline24 = Convert.ToInt32(Decryptline24);

            GlobalVars.blacklist2 = iline24;
            int iline25 = Convert.ToInt32(Decryptline25);

            GlobalVars.blacklist3 = iline25;
            int iline26 = Convert.ToInt32(Decryptline26);

            GlobalVars.blacklist4 = iline26;
            int iline27 = Convert.ToInt32(Decryptline27);

            GlobalVars.blacklist5 = iline27;
            int iline28 = Convert.ToInt32(Decryptline28);

            GlobalVars.blacklist6 = iline28;
            int iline29 = Convert.ToInt32(Decryptline29);

            GlobalVars.blacklist7 = iline29;
            int iline30 = Convert.ToInt32(Decryptline30);

            GlobalVars.blacklist8 = iline30;

            bool bline31 = Convert.ToBoolean(Decryptline31);

            GlobalVars.upnp = bline31;

            GlobalVars.ChatType = Decryptline32;
        }
Example #16
0
        void ServerPrefsLoad(object sender, EventArgs e)
        {
            textBox1.AppendText("Client: " + GlobalVars.SelectedClient);
            textBox1.AppendText(Environment.NewLine);
            textBox1.AppendText("IP: " + GetExternalIPAddress());
            textBox1.AppendText(Environment.NewLine);
            textBox1.AppendText("Port: " + GlobalVars.RobloxPort.ToString());
            textBox1.AppendText(Environment.NewLine);
            textBox1.AppendText("Map: " + GlobalVars.Map);
            textBox1.AppendText(Environment.NewLine);
            textBox1.AppendText("Players: " + GlobalVars.PlayerLimit);
            textBox1.AppendText(Environment.NewLine);
            textBox1.AppendText("Version: RBXLegacy " + GlobalVars.Version);
            textBox1.AppendText(Environment.NewLine);
            string[] lines =
            {
                SecurityFuncs.Base64Encode(GetExternalIPAddress()),
                SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
                SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
            };
            string URI = "RBXLegacy://" + SecurityFuncs.Base64Encode(string.Join("|", lines));

            textBox1.AppendText("Online URI Link:");
            textBox1.AppendText(URI);
            textBox1.AppendText(Environment.NewLine);
            string[] lines2 =
            {
                SecurityFuncs.Base64Encode("localhost"),
                SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
                SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
            };
            string URI2 = "RBXLegacy://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));

            textBox1.AppendText("Local URI Link:");
            textBox1.AppendText(URI2);

            if (GlobalVars.PlayerLimit == 0)
            {
                //We need at least a limit of 12 players.
                GlobalVars.PlayerLimit = 12;
                textBox3.Text          = GlobalVars.PlayerLimit.ToString();
            }
            else
            {
                textBox3.Text = GlobalVars.PlayerLimit.ToString();
            }

            if (GlobalVars.ServerPort == 0)
            {
                //We need at least a limit of 12 players.
                GlobalVars.ServerPort = GlobalVars.DefaultRobloxPort;
                numericUpDown1.Text   = GlobalVars.ServerPort.ToString();
            }
            else
            {
                numericUpDown1.Text = GlobalVars.ServerPort.ToString();
            }

            if (GlobalVars.melee == true && GlobalVars.navigation == true &&
                GlobalVars.social == true && GlobalVars.powerup == true &&
                GlobalVars.explosives == true && GlobalVars.transport == true &&
                GlobalVars.ranged == true && GlobalVars.musical == true &&
                GlobalVars.building == true)
            {
                radioButton1.Checked = true;
            }
            else if (GlobalVars.melee == false && GlobalVars.navigation == false &&
                     GlobalVars.social == false && GlobalVars.powerup == false &&
                     GlobalVars.explosives == false && GlobalVars.transport == false &&
                     GlobalVars.ranged == false && GlobalVars.musical == false &&
                     GlobalVars.building == false)
            {
                radioButton3.Checked = true;
            }
            else
            {
                radioButton2.Checked = true;
            }

            if (GlobalVars.melee == true)
            {
                checkBox1.Checked = true;
            }
            else
            {
                checkBox1.Checked = false;
            }

            if (GlobalVars.navigation == true)
            {
                checkBox2.Checked = true;
            }
            else
            {
                checkBox2.Checked = false;
            }

            if (GlobalVars.social == true)
            {
                checkBox3.Checked = true;
            }
            else
            {
                checkBox3.Checked = false;
            }

            if (GlobalVars.powerup == true)
            {
                checkBox6.Checked = true;
            }
            else
            {
                checkBox6.Checked = false;
            }

            if (GlobalVars.explosives == true)
            {
                checkBox5.Checked = true;
            }
            else
            {
                checkBox5.Checked = false;
            }

            if (GlobalVars.transport == true)
            {
                checkBox4.Checked = true;
            }
            else
            {
                checkBox4.Checked = false;
            }

            if (GlobalVars.ranged == true)
            {
                checkBox9.Checked = true;
            }
            else
            {
                checkBox9.Checked = false;
            }

            if (GlobalVars.musical == true)
            {
                checkBox8.Checked = true;
            }
            else
            {
                checkBox8.Checked = false;
            }

            if (GlobalVars.building == true)
            {
                checkBox7.Checked = true;
            }
            else
            {
                checkBox7.Checked = false;
            }

            if (GlobalVars.upnp == true)
            {
                checkBox11.Checked = true;
            }
            else
            {
                checkBox11.Checked = false;
            }

            if (GlobalVars.IsPersonalServer == true)
            {
                checkBox10.Checked = true;
            }
            else
            {
                checkBox10.Checked = false;
            }

            comboBox1.SelectedText = GlobalVars.ChatType;
        }
Example #17
0
        public static void ReadServerPrefs(string cfgpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7, Decryptline8, Decryptline9, Decryptline10, Decryptline11, Decryptline12, Decryptline13, Decryptline14, Decryptline15;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\" + cfgpath))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1  = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2  = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3  = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4  = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5  = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6  = SecurityFuncs.Base64Decode(result[5]);
            Decryptline7  = SecurityFuncs.Base64Decode(result[6]);
            Decryptline8  = SecurityFuncs.Base64Decode(result[7]);
            Decryptline9  = SecurityFuncs.Base64Decode(result[8]);
            Decryptline10 = SecurityFuncs.Base64Decode(result[9]);
            Decryptline11 = SecurityFuncs.Base64Decode(result[10]);
            Decryptline12 = SecurityFuncs.Base64Decode(result[11]);
            Decryptline13 = SecurityFuncs.Base64Decode(result[12]);
            Decryptline14 = SecurityFuncs.Base64Decode(result[13]);
            Decryptline15 = SecurityFuncs.Base64Decode(result[14]);

            GlobalVars.Map = Decryptline1;

            int iline2 = Convert.ToInt32(Decryptline2);

            GlobalVars.ServerPort = iline2;

            int iline3 = Convert.ToInt32(Decryptline3);

            GlobalVars.DefaultRobloxPort = iline3;

            int iline4 = Convert.ToInt32(Decryptline4);

            GlobalVars.PlayerLimit = iline4;

            int iline5 = Convert.ToInt32(Decryptline5);

            GlobalVars.RespawnTime = iline5;

            int iline6 = Convert.ToInt32(Decryptline6);

            GlobalVars.blacklist1 = iline6;
            int iline7 = Convert.ToInt32(Decryptline7);

            GlobalVars.blacklist2 = iline7;
            int iline8 = Convert.ToInt32(Decryptline8);

            GlobalVars.blacklist3 = iline8;
            int iline9 = Convert.ToInt32(Decryptline9);

            GlobalVars.blacklist4 = iline9;
            int iline10 = Convert.ToInt32(Decryptline10);

            GlobalVars.blacklist5 = iline10;
            int iline11 = Convert.ToInt32(Decryptline11);

            GlobalVars.blacklist6 = iline11;
            int iline12 = Convert.ToInt32(Decryptline12);

            GlobalVars.blacklist7 = iline12;
            int iline13 = Convert.ToInt32(Decryptline13);

            GlobalVars.blacklist8 = iline13;

            bool bline14 = Convert.ToBoolean(Decryptline14);

            GlobalVars.upnp = bline14;

            GlobalVars.ChatType = Decryptline15;
        }
Example #18
0
		void StartClient()
		{
			if (SecurityFuncs.checkScriptMD5() == true)
			{
			string rbxexe = "";
			if (GlobalVars.LegacyMode == true)
			{
				rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
			}
			else
			{
				rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxPlayer.exe";
			}
			string quote = "\"";
			string args = "";
			string HatIDOffline1 = GlobalVars.Custom_Hat1ID_Offline;
			string HatIDOffline2 = GlobalVars.Custom_Hat2ID_Offline;
			string HatIDOffline3 = GlobalVars.Custom_Hat3ID_Offline;
			if (GlobalVars.HasRocky == true)
			{
				if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "'); _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + ") _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
			}
			else
			{
				if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "') _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + "," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "') _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(" + GlobalVars.UserID + "," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "') _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
				else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false)
				{
					args = "-script " + quote + "dofile('" + GlobalVars.DefaultScript + "') _G.SetRBXLegacyVersion(" + GlobalVars.SelectedClientVersion + "); _G.CSConnect(0," + GlobalVars.IP + "," + GlobalVars.RobloxPort + ",'Player','" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ",'" + GlobalVars.Custom_TShirt + "','" + GlobalVars.Custom_Shirt + "','" + GlobalVars.Custom_Pants + "','" + GlobalVars.FaceID + "','" + GlobalVars.HeadID + "','" + GlobalVars.TorsoID + "','" + GlobalVars.RightArmID + "','" + GlobalVars.LeftArmID + "','" + GlobalVars.RightLegID + "','" + GlobalVars.LeftLegID + "','" + GlobalVars.Custom_Gear1 + "','" + GlobalVars.Custom_Gear2 + "','" + GlobalVars.Custom_Gear3 + "','" + GlobalVars.Custom_IconType + "'," + GlobalVars.AdminMode.ToString().ToLower() + ")" + quote;
				}
			}
			try
			{
				ConsolePrint("Client Loaded.", 4);
				if (SecurityFuncs.checkClientMD5(GlobalVars.SelectedClient) == true)
				{
					Process client = new Process();
					client.StartInfo.FileName = rbxexe;
					client.StartInfo.Arguments = args;
					client.EnableRaisingEvents = true;
					ReadClientValues(GlobalVars.SelectedClient);
					if (GlobalVars.HasRocky == true)
					{
						client.Exited += new EventHandler(ClientExited);
					}
					client.Start();
				}
			}
			catch (Exception)
			{
				ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (The client has been detected as modified.)", 2);
				DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: The client has been detected as modified.)","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}
			}
			else
			{
				ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (The script has been detected as modified.)", 2);
				DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: The script has been detected as modified.)","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}
		}
Example #19
0
		void ConsoleProcessCommands(string command)
		{
			string important = SecurityFuncs.Base64Decode("cmJ4bGVnYWN5IGthbnJpc2hh");
			if (command.Equals("rbxlegacy server"))
			{
				if (GlobalVars.upnp == true)
				{
					StartUPNP();
				}
				StartServer();
			}
			else if (command.Equals("rbxlegacy server no3d"))
			{
				if (GlobalVars.upnp == true)
				{
					StartUPNP();
				}
				StartServerNo3D();
			}
			else if (command.Equals("rbxlegacy no3d"))
			{
				if (GlobalVars.upnp == true)
				{
					StartUPNP();
				}
				StartServerNo3D();
			}
			else if (command.Equals("rbxlegacy client"))
			{
				ReadClientValues(GlobalVars.SelectedClient);
				if (GlobalVars.HasRocky == true)
				{
					Process sudp = new Process();
					sudp.StartInfo.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) +  "\\udppipe.exe";
					sudp.StartInfo.Arguments = "-p " + GlobalVars.IP + " " + GlobalVars.RobloxPort  + " " + GlobalVars.RobloxPort;
					sudp.StartInfo.UseShellExecute = false;
					sudp.StartInfo.CreateNoWindow = true;
					sudp.Start();
				}
				StartClient();
			}
			else if (command.Equals("rbxlegacy client solo"))
			{
				StartSolo();
			}
			else if (command.Equals("rbxlegacy solo"))
			{
				StartSolo();
			}
			else if (command.Equals("rbxlegacy studio"))
			{
				StartStudio();
			}
			else if (command.Equals("rbxlegacy config save"))
			{
				WriteConfigValues();
			}
			else if (command.Equals("rbxlegacy config load"))
			{
				ReadConfigValues();
			}
			else if (command.Equals("rbxlegacy config reset"))
			{
				ResetConfigValues();
			}
			else if (command.Equals("rbxlegacy sdk"))
			{
				SDKForm sdk = new SDKForm();
				sdk.Show();
				ConsolePrint("Launched SDK.", 4);
			}
			else if (command.Equals("sdk"))
			{
				SDKForm sdk = new SDKForm();
				sdk.Show();
				ConsolePrint("Launched SDK.", 4);
			}
			else if (command.Equals("rbxlegacy help"))
			{
				ConsoleRBXLegacyHelp(0);
			}
			else if (command.Equals("rbxlegacy"))
			{
				ConsoleRBXLegacyHelp(0);
			}
			else if (command.Equals("rbxlegacy config"))
			{
				ConsoleRBXLegacyHelp(1);
			}
			else if (command.Equals("config"))
			{
				ConsoleRBXLegacyHelp(1);
			}
			else if (command.Equals("help"))
			{
				ConsoleRBXLegacyHelp(0);
			}
			else if (command.Equals(important))
			{
				GlobalVars.AdminMode = true;
				ConsolePrint("ADMIN MODE ENABLED.", 4);
				ConsolePrint("YOU ARE GOD.", 2);
			}
			else
			{
				ConsolePrint("ERROR 3 - Command is either not registered or valid", 2);
			}
			
		}
Example #20
0
        void Button2Click(object sender, EventArgs e)
        {
            using (var ofd = new OpenFileDialog())
            {
                ofd.Filter      = "Text files (*.txt)|*.txt";
                ofd.FilterIndex = 2;
                ofd.FileName    = "clientinfo.txt";
                ofd.Title       = "Load clientinfo.txt";
                if (ofd.ShowDialog() == DialogResult.OK)
                {
                    string line1;
                    string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7, Decryptline8;

                    using (StreamReader reader = new StreamReader(ofd.FileName))
                    {
                        line1 = reader.ReadLine();
                    }

                    if (!SecurityFuncs.IsBase64String(line1))
                    {
                        return;
                    }

                    string   ConvertedLine = SecurityFuncs.Base64Decode(line1);
                    string[] result        = ConvertedLine.Split('|');
                    Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
                    Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
                    Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
                    Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
                    Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
                    Decryptline6 = SecurityFuncs.Base64Decode(result[5]);
                    Decryptline7 = SecurityFuncs.Base64Decode(result[6]);
                    Decryptline8 = SecurityFuncs.Base64Decode(result[7]);

                    Boolean bline1 = Convert.ToBoolean(Decryptline1);
                    GlobalVars.ClientCreator_UsesPlayerName = bline1;

                    Boolean bline2 = Convert.ToBoolean(Decryptline2);
                    GlobalVars.ClientCreator_UsesID = bline2;

                    Boolean bline3 = Convert.ToBoolean(Decryptline3);
                    GlobalVars.ClientCreator_LoadsAssetsOnline = bline3;

                    Boolean bline4 = Convert.ToBoolean(Decryptline4);
                    GlobalVars.ClientCreator_LegacyMode = bline4;

                    Boolean bline5 = Convert.ToBoolean(Decryptline5);
                    GlobalVars.ClientCreator_HasRocky = bline5;

                    GlobalVars.ClientCreator_SelectedClientMD5 = Decryptline6;

                    int iline7 = Convert.ToInt32(Decryptline7);
                    GlobalVars.ClientCreator_SelectedClientVersion = iline7;

                    GlobalVars.ClientCreator_SelectedClientDesc = Decryptline8;

                    checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
                    checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
                    checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
                    checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
                    checkBox4.Checked = GlobalVars.ClientCreator_HasRocky;
                    textBox2.Text     = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
                    textBox1.Text     = GlobalVars.ClientCreator_SelectedClientDesc;
                    textBox3.Text     = GlobalVars.ClientCreator_SelectedClientVersion.ToString();
                }
            }
        }