public OptionsScreen(Window curWindow) { InitializeComponent(); designMethods = new InterfaceDesign(); window = curWindow; Left = curWindow.Left + 400; Top = curWindow.Top; Title = Globals.RandomString(Globals.Rnd.Next(10, 32)); }
public ScriptHubScreen(Window curWindow, List <SxLibBase.SynHubEntry> entries) { InitializeComponent(); designMethods = new InterfaceDesign(); window = curWindow; Left = curWindow.Left + 400; Top = curWindow.Top; foreach (var Script in entries) { hubData[Script.Name] = Script; synScripts.Items.Add(Script.Name); } Title = Globals.RandomString(Globals.Rnd.Next(10, 32)); }
public ExploitScreen() { Cef.EnableHighDPISupport(); var settings = new CefSettings(); settings.SetOffScreenRenderingBestPerformanceArgs(); Cef.Initialize(settings); var SLib = Globals.SxLib; SLib.SetWindow(this); SLib.AttachEvent += async SEvent => { switch (SEvent) { case SxLibBase.SynAttachEvents.CHECKING: { showStatusLabel(); headerStatusLabel.Content = "Checking..."; break; } case SxLibBase.SynAttachEvents.INJECTING: { headerStatusLabel.Content = "Injecting..."; break; } case SxLibBase.SynAttachEvents.CHECKING_WHITELIST: { headerStatusLabel.Content = "Checking Whitelist..."; break; } case SxLibBase.SynAttachEvents.SCANNING: { showStatusLabel(); headerStatusLabel.Content = "Scanning..."; break; } case SxLibBase.SynAttachEvents.READY: { headerStatusLabel.Content = "Ready!"; attachNotify.Stop(); designMethods.ButtonColor(attachButton, brushConverter.ConvertToString(attachButton.Background), "#FF3C3C3C"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.ALREADY_INJECTED: { error("Already injected!"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.FAILED_TO_ATTACH: { error("Failed to attach!"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.FAILED_TO_FIND: { error("Failed to find Roblox!"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.NOT_RUNNING_LATEST_VER: { error("Not running latest version!"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.NOT_INJECTED: { error("Not injected!"); await Task.Delay(1000); hideStatusLabel(); break; } case SxLibBase.SynAttachEvents.PROC_CREATION: { attachNotify.Start(); break; } case SxLibBase.SynAttachEvents.PROC_DELETION: { attachNotify.Stop(); designMethods.ButtonColor(attachButton, brushConverter.ConvertToString(attachButton.Background), "#FF3C3C3C"); await Task.Delay(1000); break; } } }; SLib.ScriptHubEvent += Entries => { scriptHubButton.Content = "Script Hub"; ScriptHubScreen scriptHub = new ScriptHubScreen(exploitScreen, Entries); scriptHub.Show(); Focus(); }; InitializeComponent(); Title = Globals.RandomString(Globals.Rnd.Next(10, 32)); designMethods = new InterfaceDesign(); new Random(); brushConverter = new BrushConverter(); openFileDialog = new OpenFileDialog { Title = "Load Script from File", Filter = "Script files|*.lua;*.txt" }; attachNotify = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; attachNotify.Tick += AttachNotify_Tick; if (Process.GetProcessesByName("RobloxPlayerBeta").Length != 0) { attachNotify.Start(); } scriptsDirectory = Path.Combine(Path.Combine(Directory.GetParent(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName), "scripts"); foreach (var FilePath in Directory.GetFiles(scriptsDirectory)) { synScripts.Items.Add(Path.GetFileName(FilePath)); } }
private async void SplashScreen_OnLoaded(object sender, RoutedEventArgs e) { Title = Globals.RandomString(Globals.Rnd.Next(10, 32)); new Thread(async() => { Thread.CurrentThread.IsBackground = true; string hexFrom = "#FFFFFF"; string hexTo = $"#{rand.Next(0x1000000):X6}"; while (loading) { var @from = hexFrom; var to = hexTo; Dispatcher.Invoke(() => { designMethods.FontColor(loadTextX, @from, to); }); hexFrom = hexTo; hexTo = $"#{rand.Next(0x1000000):X6}"; await Task.Delay(900); } }).Start(); foreach (FrameworkElement element in logos.Children) { designMethods.FadeIn(element); } designMethods.Shift(loadLogo, loadLogo.Margin, new Thickness(262, 62, 262, 98)); designMethods.Shift(loadText, loadText.Margin, new Thickness(270, 248, 302, 60)); designMethods.Shift(loadTextX, loadTextX.Margin, new Thickness(422, 248, 268, 60)); designMethods.Shift(statusText, statusText.Margin, new Thickness(0, 255, 0, 20)); await Task.Delay(500); designMethods.Resize(loadEllipse, 300, 300); // do all loading here // var ProcList = Process.GetProcessesByName( Path.GetFileName(AppDomain.CurrentDomain.FriendlyName)); var Current = Process.GetCurrentProcess(); foreach (var Proc in ProcList) { if (Proc.Id == Current.Id) { continue; } try { Proc.Kill(); } catch (Exception) { } } var SLib = SxLib.InitializeWPF(this, Path.Combine(Directory.GetParent(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName) + "\\"); SLib.LoadEvent += async SEvent => { switch (SEvent) { case SxLibBase.SynLoadEvents.CHECKING_WL: statusText.Content = "checking whitelist..."; break; case SxLibBase.SynLoadEvents.CHANGING_WL: statusText.Content = "changing whitelist..."; break; case SxLibBase.SynLoadEvents.DOWNLOADING_DATA: statusText.Content = "downloading data..."; break; case SxLibBase.SynLoadEvents.CHECKING_DATA: statusText.Content = "checking data..."; break; case SxLibBase.SynLoadEvents.DOWNLOADING_DLLS: statusText.Content = "downloading dlls..."; break; case SxLibBase.SynLoadEvents.READY: { statusText.Content = "ready!"; await Task.Delay(1000); designMethods.Shift(loadLogo, loadLogo.Margin, new Thickness(262, 42, 262, 118)); designMethods.Shift(loadText, loadText.Margin, new Thickness(270, 228, 302, 80)); designMethods.Shift(loadTextX, loadTextX.Margin, new Thickness(422, 228, 268, 80)); designMethods.Shift(statusText, statusText.Margin, new Thickness(0, 235, 0, 40)); foreach (FrameworkElement element in logos.Children) { designMethods.FadeOut(element); } designMethods.Resize(loadEllipse, 1000, 1000); await Task.Delay(900); loading = false; ExploitScreen exploit = new ExploitScreen(); exploit.Show(); Close(); break; } default: throw new ArgumentOutOfRangeException(nameof(SEvent), SEvent, null); } }; SLib.Load(); Globals.SxLib = SLib; }