Пример #1
0
        // 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);
        }
Пример #2
0
        // Token: 0x06000055 RID: 85 RVA: 0x00006EE0 File Offset: 0x000050E0
        public static Var.FireDelegate SelectMenu()
        {
            for (;;)
            {
                try
                {
                    Program.DisplayMenuOptions("Choose Mode", 200);
                    Program.DisplayMenuOptions("[1] - Legacy Checker | Proxyless ( VPN Recommended )", 200);
                    Program.DisplayMenuOptions("[2] - Brute Check | Proxies needed", 200);
                    Program.DisplayMenuOptions("[3] - Capture | Proxyless ( VPN Recommended ) | Needs hits from Mode 2 to work", 200);
                    Program.DisplayMenuOptions("[4] - Bits | Proxyless ( VPN Recommended )", 200);
                    Program.DisplayMenuOptions("[5] - Follow | Proxyless ( VPN Recommended )", 200);
                    Program.DisplayMenuOptions("[6] - Sub | Proxyless ( VPN Recommended )", 250);
                    Console.WriteLine();
                    RDesign.Field("Your chosen option is: ", Var.color);
                    int int_ = Convert.ToInt32(Console.ReadLine());
                    switch (int_)
                    {
                    case 1:
                    {
                        Var.FireDelegate fireDelegate = Program.OptionChosenQuery(new Var.FireDelegate(Legacy.DoWork), int_);
                        if (fireDelegate != null)
                        {
                            return(fireDelegate);
                        }
                        break;
                    }

                    case 2:
                    {
                        Var.FireDelegate fireDelegate2 = Program.OptionChosenQuery(new Var.FireDelegate(Brute.DoWork), int_);
                        if (fireDelegate2 != null)
                        {
                            Program.useProxy = true;
                            return(fireDelegate2);
                        }
                        break;
                    }

                    case 3:
                    {
                        Var.FireDelegate fireDelegate3 = Program.OptionChosenQuery(new Var.FireDelegate(Checker.DoWork), int_);
                        if (fireDelegate3 != null)
                        {
                            return(fireDelegate3);
                        }
                        break;
                    }

                    case 4:
                    {
                        Bits.Set();
                        Var.FireDelegate fireDelegate4 = Program.OptionChosenQuery(new Var.FireDelegate(Bits.DoWork), int_);
                        if (fireDelegate4 != null)
                        {
                            return(fireDelegate4);
                        }
                        break;
                    }

                    case 5:
                    {
                        Follow.Set();
                        Var.FireDelegate fireDelegate5 = Program.OptionChosenQuery(new Var.FireDelegate(Follow.DoWork), int_);
                        if (fireDelegate5 != null)
                        {
                            return(fireDelegate5);
                        }
                        break;
                    }

                    case 6:
                    {
                        Sub.Set();
                        Var.FireDelegate fireDelegate6 = Program.OptionChosenQuery(new Var.FireDelegate(Sub.DoWork), int_);
                        if (fireDelegate6 != null)
                        {
                            return(fireDelegate6);
                        }
                        break;
                    }

                    default:
                        Console.WriteLine("Please choose a valid option.");
                        Console.ReadKey();
                        Console.Clear();
                        break;
                    }
                    continue;
                }
                catch (Exception)
                {
                    RDesign.Error("Please only use numbers to select an option.");
                    Thread.Sleep(2000);
                    Console.Clear();
                    continue;
                }
                break;
            }
            Var.FireDelegate result;
            return(result);
        }