Advertisement
Guest User

Untitled

a guest
Aug 11th, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. using Newtonsoft.Json;
  2. using Nuget_AntiCaptcha;
  3. using Nuget_AntiCaptcha.Captchas;
  4. using Nuget_AntiCaptcha.Responses;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Net;
  10. using System.Net.Http;
  11. using System.Text;
  12. using System.Threading;
  13. using System.Threading.Tasks;
  14.  
  15. namespace PlatinCreator
  16. {
  17. class Program
  18. {
  19.  
  20. public class FingerPRINT
  21. {
  22. public long[][] assignments { get; set; }
  23. public string fingerprint { get; set; }
  24. }
  25.  
  26. static string GetFingerPrint()
  27. {
  28. string response = new HttpClient().GetAsync("https://discordapp.com/api/v6/experiments").Result.Content.ReadAsStringAsync().Result;
  29.  
  30. FingerPRINT lol = JsonConvert.DeserializeObject<FingerPRINT>(response.ToString());
  31.  
  32. return lol.fingerprint;
  33.  
  34. }
  35.  
  36. static async void CreateDiscordAccount(string proxyUrl, string email, string username, string password, string invonCreation = null)
  37. {
  38. try
  39. {
  40. Nuget_AntiCaptcha.AntiCaptcha ac = new Nuget_AntiCaptcha.AntiCaptcha("750a8d4725f569ad58d0d8d73f634a04");
  41. NoCaptchaTaskProxyless task = new NoCaptchaTaskProxyless
  42. {
  43. websiteKey = "6Lef5iQTAAAAAKeIvIY-DeexoO3gj7ryl9rLMEnn",
  44. websiteURL = "https://discordapp.com/api/v6/auth/register"
  45. };
  46. TaskResponse CaptchaResponse = await ac.SubmitTask(task);
  47. WebProxy proxy = new WebProxy(proxyUrl, false)
  48. {
  49. UseDefaultCredentials = true
  50. };
  51. HttpClient cl = null;
  52. HttpClientHandler httpClientHandler = new HttpClientHandler()
  53. {
  54. Proxy = proxy,
  55. PreAuthenticate = true,
  56. UseDefaultCredentials = true,
  57. };
  58. NoCaptchaSolution solution = await ac.GetNoCaptchaSolution(CaptchaResponse.taskId);
  59. Console.ForegroundColor = ConsoleColor.Red;
  60. //Console.WriteLine($"ip: {solution.ip.ToString()} | cost: {solution.cost.ToString()} | solution: {solution.solution.ToString()}");
  61. Console.ForegroundColor = ConsoleColor.White;
  62. cl = new HttpClient(httpClientHandler);
  63. cl.DefaultRequestHeaders.Clear();
  64. cl.DefaultRequestHeaders.Add("Accept-Language", "en-US");
  65. cl.DefaultRequestHeaders.Add("X-Fingerprint", $"{GetFingerPrint()}");
  66. var response = cl.PostAsync("https://discordapp.com/api/v6/auth/register", new StringContent(JsonConvert.SerializeObject(new CreationStuff { fingerprint = $"{GetFingerPrint()}", email = email, username = username, password = password, invite = null, consent = true, captcha_key = solution.solution })));
  67. Console.WriteLine(response.Result.StatusCode);
  68. if (response.Result.StatusCode == HttpStatusCode.OK)
  69. {
  70. Console.WriteLine($"Successfully registered [{proxyUrl}]{email}:{password}!");
  71. }
  72. else
  73. {
  74. Console.WriteLine("error occurred.. " + response.Result.Content.ReadAsStringAsync().Result);
  75. if (response.Result.Content.ReadAsStringAsync().Result.Contains("captcha-required"))
  76. {
  77.  
  78. Console.WriteLine($"[{proxyUrl}/{email}/{password}]Captcha required, attempting to solve captcha...");
  79. }
  80. else
  81. {
  82. if (response.Result.Content.ReadAsStringAsync().Result.Contains("limited"))
  83. {
  84. Console.WriteLine("Rate limited.REEEEEEEEEEEEEEEEEEEEEEE");
  85. Thread.Sleep(35000);
  86. Console.WriteLine("ok, lets try again.");
  87. }
  88. else
  89. {
  90. if (response.Result.Content.ReadAsStringAsync().Result.Contains("Email is already registered."))
  91. {
  92. Console.WriteLine("Email is registered REEEEEEEEEEEEEEEEE");
  93. return;
  94. }
  95. }
  96. }
  97.  
  98. }
  99. }
  100. catch(Exception ex) { Console.WriteLine(ex); }
  101. }
  102. private static Random random = new Random();
  103. public static string RandomString(int length)
  104. {
  105. const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  106. return new string(Enumerable.Repeat(chars, length)
  107. .Select(s => s[random.Next(s.Length)]).ToArray());
  108. }
  109. static void Main(string[] args)
  110. {
  111. Console.Title = "DAC -- Made by Tada and Yaekith.";
  112.  
  113. if (!File.Exists("info.txt"))
  114. {
  115. File.Create("info.txt");
  116. Environment.Exit(0);
  117. }
  118. else
  119. {
  120. if (!File.Exists("Proxies.txt"))
  121. {
  122. Console.WriteLine("Proxy file doesn't exist. Creating one right now and inserting proxies");
  123. var close = File.Create("Proxies.txt");
  124. close.Close();
  125. File.WriteAllText("Proxies.txt", new WebClient().DownloadString("https://proxyscra.pe/proxies/HTTP_Working_Proxies.txt"));
  126. Console.WriteLine("Done!");
  127. }
  128. else
  129. {
  130. Console.WriteLine("Proxy file exists. Creating one right now and inserting proxies");
  131. File.WriteAllText("Proxies.txt", new WebClient().DownloadString("https://proxyscra.pe/proxies/HTTP_Working_Proxies.txt"));
  132. Console.WriteLine("Done!");
  133. }
  134. Nuget_AntiCaptcha.AntiCaptcha anticaptcha = new Nuget_AntiCaptcha.AntiCaptcha("750a8d4725f569ad58d0d8d73f634a04");
  135.  
  136. Console.WriteLine($"Logged in! Balance: " +
  137. anticaptcha.GetBalance().Result.balance);
  138. //foreach(string line in File.ReadLines("Proxies.txt"))
  139. //{
  140. var lines = File.ReadAllLines("Proxies.txt");
  141. var r = new Random();
  142. var randomLineNumber = r.Next(0, lines.Length - 1);
  143. var RandomLine = lines[randomLineNumber];
  144. new Thread(() => CreateDiscordAccount(RandomLine, $"{RandomString(7)}@gmail.com", $"{RandomString(20)}", $"{RandomString(20)}", "test")).Start();
  145. //}
  146. while (true) { }
  147. }
  148. }
  149.  
  150. public class CreationStuff
  151. {
  152. public string fingerprint { get; set; }
  153. public string email { get; set; }
  154. public string username { get; set; }
  155. public string password { get; set; }
  156. public object invite { get; set; }
  157. public bool consent { get; set; }
  158. public object captcha_key { get; set; }
  159. }
  160.  
  161. public class CaptchaKeyResponse
  162. {
  163. public string[] captcha_key { get; set; }
  164. }
  165.  
  166.  
  167. }
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement