Example #1
0
        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());
            }
        }
Example #2
0
        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("");
            }
        }
Example #3
0
        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("");
            }
        }