Untitled

 avatar
user_2299906
plain_text
2 years ago
1.8 kB
12
Indexable
                            string urlcaptcha = RegexMatch(html_clickcontinue, "\"captcha_uri\":\"(.*?)\"").Groups[1].Value;
                            string captcha_persisted_data = RegexMatch(html_clickcontinue, "\"captcha_persisted_data\":\"(.*?)\"").Groups[1].Value;
                            string codecaptcha = "";
                            byte[] img = request.GetByte(urlcaptcha).Result;
                            AnyCaptchaHelper.AnyCaptcha any = new AnyCaptchaHelper.AnyCaptcha();
                            var anyres = any.ImageToTextFromBase64(api, Convert.ToBase64String(img),"FACEBOOK");
                            codecaptcha = anyres.Result;
                            if (string.IsNullOrEmpty(codecaptcha))
                            {
                                row.Status = $"Giải mã captcha lỗi!";
                                return;
                            }
                            string giaimacaptcha = request.GraphApi("&variables={\"input\":{\"client_mutation_id\":\"" + mutation_id + "\",\"actor_id\":\"" + job.JobData + "\",\"captcha_persisted_data\":\"" + captcha_persisted_data + "\",\"code\":\"" + codecaptcha + "\",\"token\":{\"sensitive_string_value\":\"" + token2 + "\"}},\"scale\":1}&doc_id=5521938444590959").Result;
                            mutation_id++;
                            token2 = RegexMatch(giaimacaptcha, "\"token\":\"(.*?)\"").Groups[1].Value;
                            if (string.IsNullOrEmpty(token2))
                            {
                                row.Status = $"Giải mã captcha lỗi!";
                                return;
                            }
                            row.Status = $"Giải mã captcha thành công!";
Editor is loading...