Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Action method = null;
- Action action2 = null;
- Action action3 = null;
- Action action4 = null;
- string[] lp = null;
- string input = null;
- string str2 = null;
- string str3 = null;
- foreach (string str4 in this.textBox1.Lines)
- {
- <>c__DisplayClass9 class2;
- lp = str4.Split(new char[] { ':' });
- if (lp.Count<string>() != 2)
- {
- continue;
- }
- cookBox = new CookieContainer();
- string s = "email=" + lp[0] + "&pass=" + lp[1];
- try
- {
- HttpWebRequest request = (HttpWebRequest) WebRequest.Create("https://login.vk.com/?act=login&_origin=https://m.vk.com&role=pda&utf8=1");
- request.Timeout = 0x2710;
- request.AllowAutoRedirect = true;
- request.Method = "GET";
- request.CookieContainer = cookBox;
- request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36";
- if (s != null)
- {
- request.Method = "POST";
- byte[] bytes = new UTF8Encoding().GetBytes(s);
- request.ContentLength = bytes.Length;
- Stream requestStream = request.GetRequestStream();
- requestStream.Write(bytes, 0, bytes.Length);
- requestStream.Close();
- }
- HttpWebResponse response = (HttpWebResponse) request.GetResponse();
- if (request.CookieContainer.GetCookies(new Uri("http://vk.com"))["remixsid"].ToString() == null)
- {
- }
- input = new StreamReader(response.GetResponseStream(), Encoding.UTF8).ReadToEnd();
- }
- catch
- {
- if (method == null)
- {
- method = new Action(class2, (IntPtr) this.<th>b__0);
- }
- base.Invoke(method);
- continue;
- }
- if (input.IndexOf("security_check") > -1)
- {
- if (lp[0].Length == 12)
- {
- str3 = lp[0].Substring(3, lp[0].Length - 5);
- }
- else
- {
- str3 = lp[0].Substring(2, lp[0].Length - 4);
- }
- 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();
- }
- if (input.IndexOf("security_check") > -1)
- {
- continue;
- }
- input = new StreamReader(post(appUrl, null).GetResponseStream(), Encoding.UTF8).ReadToEnd();
- if (input.IndexOf("settings") <= -1)
- {
- continue;
- }
- id = Regex.Match(input, "viewer_id\":(.*?),").Groups[1].Value;
- auth = Regex.Match(input, "auth_key\":\"(.*?)\"").Groups[1].Value;
- game = Regex.Match(input, @"Apps.runApp\(this, '(.*?)',").Groups[1].Value;
- if (!(auth == ""))
- {
- goto Label_0593;
- }
- str2 = Regex.Match(input, game + "', '(.*?)'").Groups[1].Value;
- 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();
- id = Regex.Match(input, "viewer_id\\\\\":(.*?),").Groups[1].Value;
- auth = Regex.Match(input, "auth_key\\\\\":\\\\\"(.*?)\\\\\"").Groups[1].Value;
- if (!(id == "") || !(auth == ""))
- {
- goto Label_0593;
- }
- goto Label_0563;
- Label_0424:
- this.captcha(chash);
- if (action2 == null)
- {
- action2 = new Action(this, (IntPtr) this.<th>b__1);
- }
- base.BeginInvoke(action2);
- while (cap)
- {
- Thread.Sleep(100);
- }
- if (action3 == null)
- {
- action3 = new Action(this, (IntPtr) this.<th>b__2);
- }
- base.BeginInvoke(action3);
- 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();
- cap = true;
- id = Regex.Match(input, "viewer_id\\\\\":(.*?),").Groups[1].Value;
- auth = Regex.Match(input, "auth_key\\\\\":\\\\\"(.*?)\\\\\"").Groups[1].Value;
- if ((id != null) && (auth != null))
- {
- goto Label_0593;
- }
- Label_0563:
- chash = Regex.Match(input, "2,\"(.*?)\"").Groups[1].Value;
- if (this.numCheck(chash))
- {
- goto Label_0424;
- }
- Label_0593:
- if (action4 == null)
- {
- action4 = new Action(class2, (IntPtr) this.<th>b__3);
- }
- base.Invoke(action4);
- auth = "";
- }
- base.BeginInvoke(new Action(this, (IntPtr) this.<th>b__4));
Advertisement
Add Comment
Please, Sign In to add comment