Exemplo n.º 1
0
        // Token: 0x060000D2 RID: 210 RVA: 0x0000AE50 File Offset: 0x00009050
        public static bool Register(string user, string pass, string key, Color color)
        {
            WebRequest webRequest = WebRequest.Create(Var.authUrl + "/api/register_api.php");

            webRequest.Method = "POST";
            string s = string.Concat(new string[]
            {
                "username="******"&password="******"&hwid=",
                HWID.Value(),
                "&license=",
                key
            });

            byte[] bytes = Encoding.UTF8.GetBytes(s);
            webRequest.ContentType   = "application/x-www-form-urlencoded";
            webRequest.ContentLength = (long)bytes.Length;
            Stream stream = webRequest.GetRequestStream();

            stream.Write(bytes, 0, bytes.Length);
            stream.Close();
            WebResponse response = webRequest.GetResponse();

            stream = response.GetResponseStream();
            StreamReader streamReader = new StreamReader(stream);
            string       text         = streamReader.ReadToEnd();
            bool         result;

            if (text.Contains("successfully"))
            {
                RDesign.TimeText("You have registered successfully! Welcome, " + user + ".", color);
                Thread.Sleep(2000);
                result = true;
            }
            else if (text.Contains("already been used"))
            {
                RDesign.TimeText("The license, " + key + ", has already been used.", color);
                Thread.Sleep(1000);
                result = false;
            }
            else if (text.Contains("does not exist"))
            {
                RDesign.TimeText("The license, " + key + ", does not exist.", color);
                Thread.Sleep(1000);
                result = false;
            }
            else
            {
                streamReader.Close();
                stream.Close();
                response.Close();
                RDesign.TimeText(text, color);
                Thread.Sleep(5000);
                result = false;
            }
            return(result);
        }
Exemplo n.º 2
0
 // 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();
     }
 }
Exemplo n.º 3
0
 // Token: 0x06000093 RID: 147 RVA: 0x00009CEC File Offset: 0x00007EEC
 private static void t_Elapsed2(object sender, ElapsedEventArgs e)
 {
     Var.proxies.Clear();
     using (Stream stream = new WebClient().OpenRead(Var.proxyUrl))
     {
         using (StreamReader streamReader = new StreamReader(stream))
         {
             string item;
             while ((item = streamReader.ReadLine()) != null)
             {
                 Var.proxies.Add(item);
             }
         }
     }
     RDesign.TimeText("Loaded proxies:" + Var.proxies.Count, Var.color);
 }
Exemplo n.º 4
0
 // Token: 0x06000057 RID: 87 RVA: 0x000070D8 File Offset: 0x000052D8
 public static Var.FireDelegate OptionChosenQuery(Var.FireDelegate method, int int_0)
 {
     Console.WriteLine();
     RDesign.TimeText("Confirmation needed. You have selected module: " + int_0 + ". To continue press Y else press any other key to return.");
     Var.FireDelegate result;
     if (Console.ReadKey().Key == ConsoleKey.Y)
     {
         Console.Clear();
         result = method;
     }
     else
     {
         Console.Clear();
         result = null;
     }
     return(result);
 }
Exemplo n.º 5
0
    public static bool Login(string user, string pass, Color color)
    {
        NameValueCollection values = new NameValueCollection
        {
            ["username"] = user,
            ["password"] = pass,
            ["hwid"]     = HWID.Value()
        };

        NOSRequest.NOSRequest nOSRequest = new NOSRequest.NOSRequest(Var.encryptionKey);
        Response response = nOSRequest.Request(Var.authUrl + "/api/login_api.php", values);
        string   message  = response.message;

        if (message.Contains("Login Successful"))
        {
            RDesign.TimeText("You have logged in successfully! Welcome, " + user + ".", color);
            Thread.Sleep(2000);
            Var.loggedIn = true;
            return(true);
        }
        if (message.Contains("Invalid HWID"))
        {
            RDesign.TimeText("Your HWID, " + HWID.Value() + ", is invalid!", color);
            Thread.Sleep(2000);
            return(false);
        }
        if (message.Contains("Invalid Credentials"))
        {
            RDesign.TimeText("Your credentials are invalid!", color);
            Thread.Sleep(1000);
            return(false);
        }
        if (message.Contains("Subscription expired on"))
        {
            RDesign.TimeText("Your license has expired!", color);
            Thread.Sleep(1000);
            return(false);
        }
        RDesign.TimeText(message, color);
        Thread.Sleep(5000);
        return(false);
    }
Exemplo n.º 6
0
 // Token: 0x060000BC RID: 188 RVA: 0x00003BE9 File Offset: 0x00001DE9
 public static bool Auth(Color color)
 {
     RDesign.ClearLastLine(4);
     return(true);
 }
Exemplo n.º 7
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);
        }
Exemplo n.º 8
0
        // 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);
                }
            }
        }
Exemplo n.º 9
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);
        }
Exemplo n.º 10
0
 // Token: 0x06000056 RID: 86 RVA: 0x00003711 File Offset: 0x00001911
 public static void DisplayMenuOptions(string text, int time)
 {
     RDesign.TimeText(text, Var.color);
     Thread.Sleep(time);
 }