private string AntiCaptcha(CaptchaAPI model) { NoCaptchaProxyless api = new NoCaptchaProxyless { ClientKey = model.api, WebsiteUrl = new Uri("https://club.pokemon.com/us/pokemon-trainer-club/parents/sign-up"), WebsiteKey = "6LdpuiYTAAAAAL6y9JNUZzJ7cF3F8MQGGKko1bCy", }; if (!api.CreateTask() || !api.WaitForResult()) { if (api.ErrorMessage.Contains("ERROR_KEY_DOES_NOT_EXIST") || api.ErrorMessage.Contains("ERROR_ZERO_BALANCE") || api.ErrorMessage.Contains("ERROR_IP_NOT_ALLOWED") || api.ErrorMessage.Contains("ERROR_IP_BLOCKED") ) { model.IncrementFail(); model.enabled = false; } return(""); } else { model.IncrementSuccess(); return(api.GetTaskSolution()); } }
private void resetStatsToolStripMenuItem_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in CaptchaDataGrid.SelectedRows) { CaptchaAPI c = row.DataBoundItem as CaptchaAPI; c.fail_count = 0; c.success_count = 0; } CaptchaDataGrid.Refresh(); }
private void moveUPToolStripMenuItem_Click(object sender, EventArgs e) { CaptchaAPI c = CaptchaDataGrid.SelectedRows[0].DataBoundItem as CaptchaAPI; if (c.order == 1) { MessageBox.Show("1 is the highest priority."); return; } GlobalSettings.captchaSettings.FirstOrDefault(_ => (c.order - _.order) == 1).order += 1; c.order -= 1; CaptchaDataGrid.Refresh(); }
private void moveDownToolStripMenuItem_Click(object sender, EventArgs e) { CaptchaAPI c = CaptchaDataGrid.SelectedRows[0].DataBoundItem as CaptchaAPI; if (c.order == Enum.GetValues(typeof(CaptchaProvider)).Length) { MessageBox.Show(Enum.GetValues(typeof(CaptchaProvider)).Length + " is the lowest priority."); return; } GlobalSettings.captchaSettings.FirstOrDefault(_ => (_.order - c.order) == 1).order -= 1; c.order += 1; CaptchaDataGrid.Refresh(); }
private void moveToFirstToolStripMenuItem_Click(object sender, EventArgs e) { if (CaptchaDataGrid.SelectedRows.Count > 1) { MessageBox.Show("You can only select one row."); return; } CaptchaAPI c = CaptchaDataGrid.SelectedRows[0].DataBoundItem as CaptchaAPI; foreach (CaptchaAPI _ in GlobalSettings.captchaSettings) { if (_ == c) { continue; } else if (_.order < c.order) { _.order += 1; } } c.order = 1; CaptchaDataGrid.Refresh(); }
private string ImageTyperz(CaptchaAPI model) { ImagetyperzAPI i = new ImagetyperzAPI(model.api); try { string id = i.submit_recaptcha("https://club.pokemon.com/us/pokemon-trainer-club/parents/sign-up", "6LdpuiYTAAAAAL6y9JNUZzJ7cF3F8MQGGKko1bCy"); while (i.in_progress(id)) { Thread.Sleep(10000); } model.IncrementSuccess(); return(i.retrieve_captcha(id)); } catch (Exception e) { if (e.Message.Contains("AUTHENTICATION_FAILED")) { model.IncrementFail(); model.enabled = false; } return(""); } }
private string TwoCaptcha(CaptchaAPI model) { string captcha_response = ""; string captcha_id = ""; string post_end_point = "http://2captcha.com/in.php?" + "key=" + model.api + "&" + "method=userrecaptcha&" + "googlekey=6LdpuiYTAAAAAL6y9JNUZzJ7cF3F8MQGGKko1bCy&" + "pageurl=https://club.pokemon.com/us/pokemon-trainer-club/parents/sign-up&" + "here=now&" + "soft_id=2099"; //Do not change without Shuffle Permission using (HttpClient client = new HttpClient()) { using (HttpResponseMessage response = client.GetAsync(post_end_point).Result) { captcha_id = response.Content.ReadAsStringAsync().Result; captcha_id = captcha_id.Replace("\"", ""); if (captcha_id.Contains("OK")) { captcha_id = captcha_id.Replace("OK|", ""); } else if (captcha_id.Contains("ERROR_WRONG_USER_KEY") || captcha_id.Contains("ERROR_KEY_DOES_NOT_EXIST") || captcha_id.Contains("ERROR_ZERO_BALANCE") || captcha_id.Contains("ERROR_IP_NOT_ALLOWED") || captcha_id.Contains("IP_BANNED") ) { model.IncrementFail(); model.enabled = false; return(""); } else { return(""); } } string get_end_point = "http://2captcha.com/res.php?" + "key=" + model.api + "&" + "action=get&" + "id=" + captcha_id; int count = 0; while (count < 8) { Thread.Sleep(15000); using (HttpResponseMessage response = client.GetAsync(get_end_point).Result) { captcha_response = response.Content.ReadAsStringAsync().Result; if (captcha_response.Contains("OK|")) { model.IncrementSuccess(); return(captcha_response.Replace("OK|", "").Replace("\"", "")); } else if (captcha_response.Contains("ERROR_WRONG_USER_KEY") || captcha_response.Contains("ERROR_KEY_DOES_NOT_EXIST") ) { model.IncrementFail(); model.enabled = false; break; } else if (captcha_response.Contains("ERROR_CAPTCHA_UNSOLVABLE")) { break; } count += 1; } } return(""); } }