Guest User

Untitled

a guest
Feb 3rd, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. Action method = null;
  2. Action action2 = null;
  3. Action action3 = null;
  4. Action action4 = null;
  5. string[] lp = null;
  6. string input = null;
  7. string str2 = null;
  8. string str3 = null;
  9. foreach (string str4 in this.textBox1.Lines)
  10. {
  11. <>c__DisplayClass9 class2;
  12. lp = str4.Split(new char[] { ':' });
  13. if (lp.Count<string>() != 2)
  14. {
  15. continue;
  16. }
  17. cookBox = new CookieContainer();
  18. string s = "email=" + lp[0] + "&pass=" + lp[1];
  19. try
  20. {
  21. HttpWebRequest request = (HttpWebRequest) WebRequest.Create("https://login.vk.com/?act=login&_origin=https://m.vk.com&role=pda&utf8=1");
  22. request.Timeout = 0x2710;
  23. request.AllowAutoRedirect = true;
  24. request.Method = "GET";
  25. request.CookieContainer = cookBox;
  26. request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36";
  27. if (s != null)
  28. {
  29. request.Method = "POST";
  30. byte[] bytes = new UTF8Encoding().GetBytes(s);
  31. request.ContentLength = bytes.Length;
  32. Stream requestStream = request.GetRequestStream();
  33. requestStream.Write(bytes, 0, bytes.Length);
  34. requestStream.Close();
  35. }
  36. HttpWebResponse response = (HttpWebResponse) request.GetResponse();
  37. if (request.CookieContainer.GetCookies(new Uri("http://vk.com"))["remixsid"].ToString() == null)
  38. {
  39. }
  40. input = new StreamReader(response.GetResponseStream(), Encoding.UTF8).ReadToEnd();
  41. }
  42. catch
  43. {
  44. if (method == null)
  45. {
  46. method = new Action(class2, (IntPtr) this.<th>b__0);
  47. }
  48. base.Invoke(method);
  49. continue;
  50. }
  51. if (input.IndexOf("security_check") > -1)
  52. {
  53. if (lp[0].Length == 12)
  54. {
  55. str3 = lp[0].Substring(3, lp[0].Length - 5);
  56. }
  57. else
  58. {
  59. str3 = lp[0].Substring(2, lp[0].Length - 4);
  60. }
  61. input = new StreamReader(post("http://m.vk.com/login.php?act=security_check&hash=" + Regex.Match(input, "check&to=&hash=(.*?)\">").Groups[1].Value, "code=" + str3).GetResponseStream(), Encoding.UTF8).ReadToEnd();
  62. }
  63. if (input.IndexOf("security_check") > -1)
  64. {
  65. continue;
  66. }
  67. input = new StreamReader(post(appUrl, null).GetResponseStream(), Encoding.UTF8).ReadToEnd();
  68. if (input.IndexOf("settings") <= -1)
  69. {
  70. continue;
  71. }
  72. id = Regex.Match(input, "viewer_id\":(.*?),").Groups[1].Value;
  73. auth = Regex.Match(input, "auth_key\":\"(.*?)\"").Groups[1].Value;
  74. game = Regex.Match(input, @"Apps.runApp\(this, '(.*?)',").Groups[1].Value;
  75. if (!(auth == ""))
  76. {
  77. goto Label_0593;
  78. }
  79. str2 = Regex.Match(input, game + "', '(.*?)'").Groups[1].Value;
  80. input = new StreamReader(post("http://vk.com/al_profile.php?__query=" + game + "&_ref=" + game + "&al=-1&captcha_key=&captcha_sid=759024676545&from_install=2&hash=" + str2 + "&join=1&sett=7", null).GetResponseStream(), Encoding.UTF8).ReadToEnd();
  81. id = Regex.Match(input, "viewer_id\\\\\":(.*?),").Groups[1].Value;
  82. auth = Regex.Match(input, "auth_key\\\\\":\\\\\"(.*?)\\\\\"").Groups[1].Value;
  83. if (!(id == "") || !(auth == ""))
  84. {
  85. goto Label_0593;
  86. }
  87. goto Label_0563;
  88. Label_0424:
  89. this.captcha(chash);
  90. if (action2 == null)
  91. {
  92. action2 = new Action(this, (IntPtr) this.<th>b__1);
  93. }
  94. base.BeginInvoke(action2);
  95. while (cap)
  96. {
  97. Thread.Sleep(100);
  98. }
  99. if (action3 == null)
  100. {
  101. action3 = new Action(this, (IntPtr) this.<th>b__2);
  102. }
  103. base.BeginInvoke(action3);
  104. input = new StreamReader(post("http://vk.com/al_profile.php?__query=" + game + "&_ref=" + game + "&al=-1&captcha_key=" + this.textBox4.Text + "&captcha_sid=" + chash + "&from_install=2&hash=" + str2 + "&join=1&sett=7", null).GetResponseStream(), Encoding.UTF8).ReadToEnd();
  105. cap = true;
  106. id = Regex.Match(input, "viewer_id\\\\\":(.*?),").Groups[1].Value;
  107. auth = Regex.Match(input, "auth_key\\\\\":\\\\\"(.*?)\\\\\"").Groups[1].Value;
  108. if ((id != null) && (auth != null))
  109. {
  110. goto Label_0593;
  111. }
  112. Label_0563:
  113. chash = Regex.Match(input, "2,\"(.*?)\"").Groups[1].Value;
  114. if (this.numCheck(chash))
  115. {
  116. goto Label_0424;
  117. }
  118. Label_0593:
  119. if (action4 == null)
  120. {
  121. action4 = new Action(class2, (IntPtr) this.<th>b__3);
  122. }
  123. base.Invoke(action4);
  124. auth = "";
  125. }
  126. base.BeginInvoke(new Action(this, (IntPtr) this.<th>b__4));
Advertisement
Add Comment
Please, Sign In to add comment