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); }
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; }
// 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(); } } }
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); } }
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(); }
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; }
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(); } } }
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; }
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."; } }