[C#] Авторизация Mojang (Minecraft) | ФОРУМ СОЦИАЛЬНОЙ ИНЖЕНЕРИИ ⭐️MeHack⭐️ - Читы, базы, раздачи аккаунтов, сливы скриптов, способы заработка
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 401

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 403

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 409

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 411

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 417

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 423

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 425

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 427

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 429

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 435

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 437

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 443

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 445

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 451

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 453

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 455

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 457

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 463

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 469

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 475

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 491

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/Siropu/AdsManager/Helper/General.php on line 2627

[C#] Авторизация Mojang (Minecraft)

Тема в разделе "C#", создана пользователем Forgeq, 26.07.18.Просмотров: 613

  1. Forgeq Гость

    Forgeq

    розыгрышей
    Приветствую, писал на заказ человеку софт на майнкрафт, он ему больше не нужен, разрешил слить.
    Сам софт выкладывать не собираюсь, но выложу авторизацию, кому нужно, запилите сами, этаки такой анти-нуб)
    Вид лога: account|PREMIUM|suspended: false|blocked: false|secured: false|migrated: true|emailVerified: true|registrationCountry: RU
    Сам код:
    Код:
                        request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0";
                        request.AllowAutoRedirect = false;
                        request.AddHeader("Accept", "application/json, text/javascript, */*; q=0.01");
                        request.AddHeader("X-Requested-With", "XMLHttpRequest");
                        request.IgnoreProtocolErrors = true;
                        string resp = request.Post("https://authserver.mojang.com/authenticate", "{\"agent\": {\"name\":\"Minecraft\",\"version\":\"1\"},\"username\":\"" + emailFull + "\",\"password\":\"" + password + "\",\"requestUser\":\"true\"}", "application/json").ToString();
                        if (resp.Contains("\"id\":\""))
                        {
                            string ID = Functions.Pars(resp, "\"id\":\"", "\"", 0);
                            string suspended = "suspended: " + Functions.Pars(resp, "\"suspended\":", ",", 0);
                            string blocked = "blocked: " + Functions.Pars(resp, "\"blocked\":", ",", 0);
                            string secured = "secured: " + Functions.Pars(resp, "\"secured\":", ",", 0);
                            string migrated = "migrated: " + Functions.Pars(resp, "\"migrated\":", ",", 0);
                            string emailVerified = "emailVerified: " + Functions.Pars(resp, "\"emailVerified\":", ",", 0);
                            string registrationCountry = "registrationCountry: " + Functions.Pars(resp, "\"name\":\"registrationCountry\",\"value\":\"", "\"", 0);
                            request.AddHeader("Accept", "application/json, text/javascript, */*; q=0.01");
                            request.AddHeader("X-Requested-With", "XMLHttpRequest");
                            resp = request.Get("https://api.mojang.com/user/profiles/" + ID + "/names").ToString();
                            string prem = string.Empty;
                            string name = string.Empty;
                            if (resp.Contains("\"name\":\""))
                            {
                                prem = "PREMIUM";
                                name = Functions.Pars(resp, "\"name\":\"", "\"", 0);
                            }
                            else
                            {
                                prem = "NOT_PREMIUM";
                            }
    
                            string allinfo = suspended + "|" + blocked + "|" + secured + "|" + migrated + "|" + emailVerified + "|" + registrationCountry;
                            return "true=" + allinfo + "=" + name + "-" + prem;
                        }
                        if (resp.Contains("Invalid credentials. Invalid username or password."))
                        {
                            return "false";
                        }
                        else
                        {
                            return "error";
                        }