Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Newtonsoft.Json;
- using Nuget_AntiCaptcha;
- using Nuget_AntiCaptcha.Captchas;
- using Nuget_AntiCaptcha.Responses;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace PlatinCreator
- {
- class Program
- {
- public class FingerPRINT
- {
- public long[][] assignments { get; set; }
- public string fingerprint { get; set; }
- }
- static string GetFingerPrint()
- {
- string response = new HttpClient().GetAsync("https://discordapp.com/api/v6/experiments").Result.Content.ReadAsStringAsync().Result;
- FingerPRINT lol = JsonConvert.DeserializeObject<FingerPRINT>(response.ToString());
- return lol.fingerprint;
- }
- static async void CreateDiscordAccount(string proxyUrl, string email, string username, string password, string invonCreation = null)
- {
- try
- {
- Nuget_AntiCaptcha.AntiCaptcha ac = new Nuget_AntiCaptcha.AntiCaptcha("750a8d4725f569ad58d0d8d73f634a04");
- NoCaptchaTaskProxyless task = new NoCaptchaTaskProxyless
- {
- websiteKey = "6Lef5iQTAAAAAKeIvIY-DeexoO3gj7ryl9rLMEnn",
- websiteURL = "https://discordapp.com/api/v6/auth/register"
- };
- TaskResponse CaptchaResponse = await ac.SubmitTask(task);
- WebProxy proxy = new WebProxy(proxyUrl, false)
- {
- UseDefaultCredentials = true
- };
- HttpClient cl = null;
- HttpClientHandler httpClientHandler = new HttpClientHandler()
- {
- Proxy = proxy,
- PreAuthenticate = true,
- UseDefaultCredentials = true,
- };
- NoCaptchaSolution solution = await ac.GetNoCaptchaSolution(CaptchaResponse.taskId);
- Console.ForegroundColor = ConsoleColor.Red;
- //Console.WriteLine($"ip: {solution.ip.ToString()} | cost: {solution.cost.ToString()} | solution: {solution.solution.ToString()}");
- Console.ForegroundColor = ConsoleColor.White;
- cl = new HttpClient(httpClientHandler);
- cl.DefaultRequestHeaders.Clear();
- cl.DefaultRequestHeaders.Add("Accept-Language", "en-US");
- cl.DefaultRequestHeaders.Add("X-Fingerprint", $"{GetFingerPrint()}");
- 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 })));
- Console.WriteLine(response.Result.StatusCode);
- if (response.Result.StatusCode == HttpStatusCode.OK)
- {
- Console.WriteLine($"Successfully registered [{proxyUrl}]{email}:{password}!");
- }
- else
- {
- Console.WriteLine("error occurred.. " + response.Result.Content.ReadAsStringAsync().Result);
- if (response.Result.Content.ReadAsStringAsync().Result.Contains("captcha-required"))
- {
- Console.WriteLine($"[{proxyUrl}/{email}/{password}]Captcha required, attempting to solve captcha...");
- }
- else
- {
- if (response.Result.Content.ReadAsStringAsync().Result.Contains("limited"))
- {
- Console.WriteLine("Rate limited.REEEEEEEEEEEEEEEEEEEEEEE");
- Thread.Sleep(35000);
- Console.WriteLine("ok, lets try again.");
- }
- else
- {
- if (response.Result.Content.ReadAsStringAsync().Result.Contains("Email is already registered."))
- {
- Console.WriteLine("Email is registered REEEEEEEEEEEEEEEEE");
- return;
- }
- }
- }
- }
- }
- catch(Exception ex) { Console.WriteLine(ex); }
- }
- private static Random random = new Random();
- public static string RandomString(int length)
- {
- const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- return new string(Enumerable.Repeat(chars, length)
- .Select(s => s[random.Next(s.Length)]).ToArray());
- }
- static void Main(string[] args)
- {
- Console.Title = "DAC -- Made by Tada and Yaekith.";
- if (!File.Exists("info.txt"))
- {
- File.Create("info.txt");
- Environment.Exit(0);
- }
- else
- {
- if (!File.Exists("Proxies.txt"))
- {
- Console.WriteLine("Proxy file doesn't exist. Creating one right now and inserting proxies");
- var close = File.Create("Proxies.txt");
- close.Close();
- File.WriteAllText("Proxies.txt", new WebClient().DownloadString("https://proxyscra.pe/proxies/HTTP_Working_Proxies.txt"));
- Console.WriteLine("Done!");
- }
- else
- {
- Console.WriteLine("Proxy file exists. Creating one right now and inserting proxies");
- File.WriteAllText("Proxies.txt", new WebClient().DownloadString("https://proxyscra.pe/proxies/HTTP_Working_Proxies.txt"));
- Console.WriteLine("Done!");
- }
- Nuget_AntiCaptcha.AntiCaptcha anticaptcha = new Nuget_AntiCaptcha.AntiCaptcha("750a8d4725f569ad58d0d8d73f634a04");
- Console.WriteLine($"Logged in! Balance: " +
- anticaptcha.GetBalance().Result.balance);
- //foreach(string line in File.ReadLines("Proxies.txt"))
- //{
- var lines = File.ReadAllLines("Proxies.txt");
- var r = new Random();
- var randomLineNumber = r.Next(0, lines.Length - 1);
- var RandomLine = lines[randomLineNumber];
- new Thread(() => CreateDiscordAccount(RandomLine, $"{RandomString(7)}@gmail.com", $"{RandomString(20)}", $"{RandomString(20)}", "test")).Start();
- //}
- while (true) { }
- }
- }
- public class CreationStuff
- {
- public string fingerprint { get; set; }
- public string email { get; set; }
- public string username { get; set; }
- public string password { get; set; }
- public object invite { get; set; }
- public bool consent { get; set; }
- public object captcha_key { get; set; }
- }
- public class CaptchaKeyResponse
- {
- public string[] captcha_key { get; set; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement