// Token: 0x060000D0 RID: 208 RVA: 0x0000AD28 File Offset: 0x00008F28 public static void SetDesign(string title, string version, string author, Color color, bool useProxies = true, string dataType = "accounts") { RDesign.ConsoleTitle(title, version, author); RDesign.FigletTitle(FiggleFonts.Univers.Render(title, null), Var.color); if (Authentication.Auth(color)) { int int_ = 0; if (useProxies) { RDesign.TimeText("Would you like to add an auto-updating proxy url? (y/n):", color); RDesign.UserInput(color); string a = Colorful.Console.ReadLine(); RDesign.ClearLastLine(2); if (a == "y") { MainFunction.autoUpdate = true; do { RDesign.TimeText("Enter your proxy URL:", color); RDesign.UserInput(color); Var.proxyUrl = Colorful.Console.ReadLine(); RDesign.ClearLastLine(2); }while (!Uri.IsWellFormedUriString(Var.proxyUrl, UriKind.Absolute)); for (;;) { try { RDesign.TimeText("Interval between grabbing proxies from URL (minutes):", color); RDesign.UserInput(color); int_ = Convert.ToInt32(Colorful.Console.ReadLine()); RDesign.ClearLastLine(2); break; } catch (FormatException) { RDesign.ClearLastLine(2); } } } } SlavCore.Checker(color, dataType, useProxies); SlavCore.StartThreading(); if (MainFunction.autoUpdate) { SlavCore.StartTimer2(int_); } SlavCore.StartTimer(); SlavCore.CheckProgress(); } }
// Token: 0x060000BC RID: 188 RVA: 0x00003BE9 File Offset: 0x00001DE9 public static bool Auth(Color color) { RDesign.ClearLastLine(4); return(true); }
// Token: 0x0600008E RID: 142 RVA: 0x00009244 File Offset: 0x00007444 public static void Checker(Color color, string dataType, bool useProxies) { DataCore dataCore = new DataCore(); dataCore.loadDataList(color, dataType); if (useProxies) { dataCore.loadProxyConsole(); } Var.dateNow = DateTime.Now.ToString("dd.MM_hh.mm"); Var.folder = Environment.CurrentDirectory + "\\Results\\Results_" + Var.dateNow + "\\"; if (!Directory.Exists(Var.folder)) { Directory.CreateDirectory(Var.folder); } Var.fileName = Path.GetFileNameWithoutExtension(dataCore.fileName); RDesign.ClearLastLine(2); for (;;) { try { RDesign.TimeText("Amount of threads to use:", color); RDesign.UserInput(color); Var.threads = Convert.ToInt32(Console.ReadLine()); break; } catch (OverflowException) { RDesign.Error("Please choose a smaller number for threads."); Thread.Sleep(2000); RDesign.ClearLastLine(3); } catch (FormatException) { RDesign.Error("Please write a number for threads."); Thread.Sleep(2000); RDesign.ClearLastLine(3); } } RDesign.ClearLastLine(2); for (;;) { try { if (dataCore.Proxies.Count != 0) { for (;;) { RDesign.TimeText("Choose your proxy type | 0 for HTTP | 1 for SOCKS4 | 2 for SOCKS5", color); Var.proxyType = Convert.ToInt32(Console.ReadLine()); if (Var.proxyType == 0 || Var.proxyType == 1 || Var.proxyType == 2 || Var.proxyType == 3) { break; } RDesign.Error("Please choose a valid option"); Thread.Sleep(2000); RDesign.ClearLastLine(3); } RDesign.ClearLastLine(2); foreach (string item in dataCore.Proxies) { Var.proxies.Add(item); } dataCore.Proxies.Clear(); } break; } catch (OverflowException) { RDesign.Error("Please choose a valid option."); Thread.Sleep(2000); RDesign.ClearLastLine(3); } catch (FormatException) { RDesign.Error("Please use a number to select an option."); Thread.Sleep(2000); RDesign.ClearLastLine(3); } } foreach (string item2 in dataCore.Combo) { Var.comboQueue.Add(item2); } dataCore.Combo.Clear(); RDesign.TimeText(string.Format("Loaded: {0} {1}!", Var.comboQueue.Count, dataType), color); if (Var.proxies.Count != 0) { RDesign.TimeText(string.Format("Loaded: {0} proxies!", Var.proxies.Count), color); } RDesign.TimeText(string.Format("Threads: {0}", Var.threads), color); RDesign.TimeText("Starting...", color); }
// Token: 0x060000B9 RID: 185 RVA: 0x0000A3BC File Offset: 0x000085BC public void loadDataList(Color color, string type) { int num = 0; if (!Directory.Exists("Progress")) { Directory.CreateDirectory("Progress"); } for (;;) { RDesign.TimeText("Enter the name of your " + type + " base (.txt format, must be in the tool's file directory):", color); RDesign.UserInput(color); this.fileName = Console.ReadLine(); if (File.Exists(this.fileName + ".txt")) { try { foreach (string path in Directory.GetFiles("Progress")) { if (Path.GetFileNameWithoutExtension(path).Equals(Path.GetFileName(this.fileName))) { RDesign.ClearLastLine(2); RDesign.TimeText("A previous session using the same filename has been found. Would you like to resume? (y/n):", color); RDesign.UserInput(color); if (Console.ReadLine() == "y") { num = int.Parse(File.ReadLines("Progress\\" + Path.GetFileName(path)).First <string>()); Var.oldCheckedCnt = num; } } } } catch (Exception) { Console.WriteLine("The progressions file is corrupt. Proceeding to start from line 0."); Thread.Sleep(2000); RDesign.ClearLastLine(1); } try { using (StreamReader streamReader = new StreamReader(string.Format("{0}.txt", this.fileName))) { if (num != 0) { for (int j = 0; j < num; j++) { streamReader.ReadLine(); } } while (streamReader.Peek() != -1) { this.Combo.Add(streamReader.ReadLine()); } } break; } catch (Exception) { RDesign.ClearLastLine(2); } } else { RDesign.ClearLastLine(2); } } }