static public void Main(string[] argv) { string dbcUsername = argv[0], dbcPassword = argv[1]; // Put your DBC username & password here. //Client client = (Client)new HttpClient(dbcUsername, dbcPassword); Client client = (Client) new HttpClient(dbcUsername, dbcPassword); //Put your Proxy credentials and type here string proxy = "http://*****:*****@127.0.0.1:1234"; string proxyType = "HTTP"; Console.WriteLine("Your balance is {0:F2} US cents", client.Balance); if (argv.Length == 4) { //Create the Json payload, Put the Site url and Sitekey here. string tokenParams = "{\"proxy\": \"" + proxy + "\"," + "\"proxytype\": \"" + proxyType + "\"," + "\"googlekey\": \"" + argv[3] + "\"," + "\"pageurl\": \"" + argv[2] + "\"}"; // Upload a CAPTCHA and poll for its status. Put the Token CAPTCHA // Json payload, CAPTCHA type and desired solving timeout (in seconds) // here. If solved, you'll receive a DeathByCaptcha.Captcha object. Captcha captcha = client.Decode(Client.DefaultTimeout, new Hashtable() { { "type", 4 }, { "token_params", tokenParams } }); if (null != captcha) { Console.WriteLine("CAPTCHA {0:D} solved: {1}", captcha.Id, captcha.Text); // Report an incorrectly solved CAPTCHA. Make sure the // CAPTCHA was in fact incorrectly solved, do not just // report them all or at random, or you might be banned // as abuser. if (false /* put your CAPTCHA correctness check here */) { if (client.Report(captcha)) { Console.WriteLine("Reported as incorrectly solved"); } else { Console.WriteLine("Failed reporting as incorrectly solved"); } } } else { Console.WriteLine("CAPTCHA was not solved"); } } Console.WriteLine("Your balance is {0:F2} US cents", client.Balance); }
static public void Main(string[] argv) { string dbcUsername = argv[0], dbcPassword = argv[1]; // Put your DBC username & password here. //Client client = (Client)new HttpClient(dbcUsername, dbcPassword); Client client = (Client) new HttpClient(dbcUsername, dbcPassword); Console.WriteLine("Your balance is {0:F2} US cents", client.Balance); for (int i = 2, l = argv.Length; i < l; i++) { Console.WriteLine("Solving CAPTCHA {0}", argv[i]); // Upload a CAPTCHA and poll for its status. Put the CAPTCHA // image file name, file object, stream, or a vector of bytes, // and desired solving timeout (in seconds) here. If solved, // you'll receive a DeathByCaptcha.Captcha object. Captcha captcha = client.Decode(argv[i], Client.DefaultTimeout); /* * //Uploading captchas with type = 2 (Coordinates API) * Captcha captcha = client.Decode(argv[i], Client.DefaultTimeout, * new Hashtable (){ * { "type", 2 } * }); * * //Uploading captchas with type = 3 (Image Group API) * Captcha captcha = client.Decode(argv[i], Client.DefaultTimeout, * new Hashtable (){ * { "type", 3 }, * { "grid", "2x4" }, //optional grid parameter * {"banner_text", "Select all images with meat"}, * {"banner", bannerFileName} * }); */ /* * //Uploading captchas with type = 3 (Image Group API) and grid * Captcha captcha = client.Decode(argv[i], Client.DefaultTimeout, * new Hashtable (){ * { "type", 3 }, * {"banner_text", "Select all images with meat"}, * {"banner", bannerFileName}, * {"grid", "4x4"} * }); */ /* * // Upload a CAPTCHA and poll for its status. Put the Token CAPTCHA * // Json payload, CAPTCHA type and desired solving timeout (in seconds) * // here. If solved, you'll receive a DeathByCaptcha.Captcha object. * Captcha captcha = client.Decode( Client.DefaultTokenTimeout, * new Hashtable (){ * { "type", 4 }, * {"token_params", "{\"proxy\": \"http://*****:*****@127.0.0.1:1234\",\"proxytype\": \"HTTP\",\"googlekey\": \"6Lc2fhwTAAAAAGatXTzFYfvlQMI2T7B6ji8UVV_f\",\"pageurl\": \"http://google.com\"}"} * * }); */ if (null != captcha) { Console.WriteLine("CAPTCHA {0:D} solved: {1}", captcha.Id, captcha.Text); // Report an incorrectly solved CAPTCHA. Make sure the // CAPTCHA was in fact incorrectly solved, do not just // report them all or at random, or you might be banned // as abuser. if (false /* put your CAPTCHA correctness check here */) { if (client.Report(captcha)) { Console.WriteLine("Reported as incorrectly solved"); } else { Console.WriteLine("Failed reporting as incorrectly solved"); } } } else { Console.WriteLine("CAPTCHA was not solved"); } } Console.WriteLine("Your balance is {0:F2} US cents", client.Balance); }
private static async Task <int> CreateAccounts(int refferalCount) { string[] emailDomains = { "@hotmail.com", "@ok.de", "@yahoo.com", "@yahoo.de", "@ymail.com", "@rocketmail.com", "@mail.ru", "@googlemail.com", "@gmail.de", "@outlook.com", "@hotmail.de", "@live.de", "@hotmail.com", "@t-online.de" }; OutputDebugString("Creating accounts[" + refferalCount.ToString() + "]"); DeathByCaptcha.Client dbc_client = (DeathByCaptcha.Client) new SocketClient("Username", "Password");; OutputDebugString("DBC Success!"); try { for (int i = 0; i < refferalCount; ++i) { retry: try { using (HttpClient client = new HttpClient()) using (HttpContent content = client.GetAsync(refLink).Result.Content) { bool created = false; while (!created) { string strContent = content.ReadAsStringAsync().Result; string username = Generate() + randomGenerator.Next(99).ToString(); string password = Generate() + randomGenerator.Next(10).ToString(); var captcha = CrackCaptcha(dbc_client, client, strContent).Result; string tokenKey = GetTokenKey(strContent); string tokenFields = GetTokenFields(strContent); var pairs = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("_method", "POST"), new KeyValuePair <string, string>("data[_Token][key]", tokenKey), new KeyValuePair <string, string>("data[PvpnetAccount][name]", username), new KeyValuePair <string, string>("data[PvpnetAccount][password]", password), new KeyValuePair <string, string>("data[PvpnetAccount][confirm_password]", password), new KeyValuePair <string, string>("data[PvpnetAccount][email_address]", Generate() + emailDomains[randomGenerator.Next(0, emailDomains.Length)]), new KeyValuePair <string, string>("data[PvpnetAccount][date_of_birth_day]", randomGenerator.Next(1, 29).ToString()), new KeyValuePair <string, string>("data[PvpnetAccount][date_of_birth_month]", randomGenerator.Next(1, 13).ToString()), new KeyValuePair <string, string>("data[PvpnetAccount][date_of_birth_year]", randomGenerator.Next(1990, 1999).ToString()), new KeyValuePair <string, string>("data[PvpnetAccount][realm]", platform), new KeyValuePair <string, string>("data[PvpnetAccount][tou_agree]", "0"), new KeyValuePair <string, string>("data[PvpnetAccount][tou_agree]", "1"), new KeyValuePair <string, string>("data[PvpnetAccount][newsletter]", randomGenerator.Next(2).ToString()), new KeyValuePair <string, string>("recaptcha_response_field", captcha.captcha.Text), new KeyValuePair <string, string>("recaptcha_challenge_field", captcha.challenge), new KeyValuePair <string, string>("data[_Token][fields]", tokenFields), }; if (captcha != null) { OutputDebugString("CAPTCHA:" + captcha.captcha.Text); var postData = new FormUrlEncodedContent(pairs); repost: try { var response2 = client.PostAsync(new Uri("https://signup.leagueoflegends.com/de/signup/index"), postData).Result; var responseContent = response2.Content.ReadAsStringAsync().Result; //System.IO.File.WriteAllText("Reponse2.html", responseContent); if (!responseContent.Contains("Dein Konto wurde erstellt!")) { OutputDebugString("ACC: FAILED! -> " + username + ":" + password + ":" + captcha.captcha.Text); if (responseContent.Contains("The reCaptcha code was incorrect")) { dbc_client.Report(captcha.captcha); } } else { OutputDebugString(username + ":" + password); Console.WriteLine(username + ":" + password); created = true; } } catch (Exception e) { OutputDebugString("EXCEPTION____ : " + e.Message); } } } } } catch (Exception e) { OutputDebugString("EXCEPTION : " + e.Message); } } } catch (Exception e) { OutputDebugString("CreateAccounts() => " + e.Message); } return(1); }