Untitled

 avatar
unknown
plain_text
2 years ago
20 kB
7
Indexable
try
                            {
                                string errorStatus = "";
                                row.Status = "Load trang đăng nhập";
                                string loginID = pro.UID;
                                if (isUseEmailLogin && !string.IsNullOrEmpty(pro.Email)) loginID = pro.Email;
                                string html = request.Get("https://en-gb.facebook.com/").Result;
                                string publickey = RegexMatch(html?.Replace("\" ", "\""), "publicKey\":\"([^\"]+)\"").Groups[1].Value;
                                string keyID = RegexMatch(html?.Replace("\" ", "\""), "\"keyId\":(\\d+)").Groups[1].Value;
                                string privacy_mutation_token = RegexMatch(html, "privacy_mutation_token=(.*?)\"").Groups[1].Value;
                                row.Status = "Click Login";
                                string encpass = Encpassword.GenerateEncPassword(pro.Password, keyID, publickey);
                                string temp = request.PostAsync($"https://en-gb.facebook.com/login/?privacy_mutation_token={privacy_mutation_token}", $"jazoest={request.Jazoest}&lsd={request.LSD}&email={loginID.Replace("@", "%40")}&login_source=comet_headerless_login&next=&pass=" + WebUtility.UrlEncode(pro.Password)).Result;
                                if (string.IsNullOrEmpty(temp))
                                {
                                    row.Status = "Lỗi mạng";

                                    return;
                                }
                                if (temp.IsContains("input type=\"password\""))
                                {
                                    row.Status = "Sai uid hoặc mật khẩu";
                                    errorStatus = " : Sai uid hoặc mật khẩu";
                                    return;
                                }

                                string nh = RegexMatch(temp, "name=\"nh\" value=\"(.*?)\"").Groups[1].Value;
                                string jozoest = RegexMatch(temp, "name=\"jazoest\" value=\"(.*?)\"").Groups[1].Value;
                                string fb_dtsg = RegexMatch(temp, "name=\"fb_dtsg\" value=\"(.*?)\"").Groups[1].Value;
                                if (string.IsNullOrEmpty(fb_dtsg))
                                {
                                    if (request.ResponseURI.IsContains("disable"))
                                    {
                                        row.Status = "Tài khoản của bạn bị vô hiệu hóa";
                                        errorStatus = " : VHH";
                                        return;
                                    }
                                    else
                                    {
                                        row.Status = "Lỗi xảy ra";
                                        errorStatus = " : Lỗi xảy ra";
                                        return;
                                    }

                                }
                                if (!string.IsNullOrEmpty(pro.SecrectKey))
                                {
                                    var tfa = new TwoFactorAuth();
                                    string code1 = tfa.GetCode(pro.SecrectKey.Replace(" ", "").ToUpper());
                                    row.Status = "Gửi 2FA : " + code1;
                                    string post2FA = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&no_fido=true&approvals_code={code1}&submit%5BContinue%5D=Continue").Result;
                                    if (post2FA.IsContains("id=\"approvals_code\""))
                                    {
                                        row.Status = "Nhập sai OTP";
                                        errorStatus = " : Nhập sai OTP";
                                        return;
                                    }
                                }
                                row.Status = "Lưu trình duyệt";
                                string saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&name_action_selected=save_device&submit%5BContinue%5D=Continue").Result;

                                if (saveChrome.IsContains("name=\"submit[Yes]\""))
                                {
                                    saveChrome = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&nh={nh}&submit%5BYes%5D=Yes&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;

                                }
                                if (IsChangePass)
                                {

                                    if (saveChrome.IsContains("checkpointSubmitButton"))
                                    {
                                        row.Status = "Xác nhận đăng nhập địa điểm lạ";
                                        try
                                        {
                                            Task.Delay(rd.Next(100, 1500)).Wait();
                                            saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BContinue%5D=Continue").Result;
                                            Task.Delay(rd.Next(100, 1500)).Wait();
                                            if (saveChrome.IsContains("submit[This was me]"))
                                            {
                                                string newpass = PasswordCustom.GetRandomPass();
                                                saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BThis+wasn%27t+me%5D=This+wasn%27t+me").Result;
                                                Task.Delay(rd.Next(100, 1500)).Wait();
                                                row.Status = "Đổi pass mới " + newpass;
                                                string changepasssaveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&password_new={newpass}&password_confirm={newpass}&submit%5BChange+Password%5D=Change+Password").Result;
                                                Task.Delay(rd.Next(100, 1500)).Wait();
                                                if (!changepasssaveChrome.IsContains("name=\"password_new\""))
                                                {
                                                    row.Status = "Đổi pass mới thành công : " + newpass;
                                                    saveChrome = changepasssaveChrome;
                                                    pro.PasswordOld = pro.Password;
                                                    row.StoryID = pro.Password;
                                                    row.StoryID1 = newpass;
                                                    pro.Password = newpass;
                                                    SaveOneProfile(filedata, pro);
                                                    if (SaveDB)
                                                        SaveMaxProfile(filedbmax, pro, true);
                                                }
                                            }


                                        }
                                        catch { }
                                    }
                                }


                                int dem = 0;
                                while (saveChrome.IsContains("checkpointSubmitButton") && dem < 3 && !saveChrome.IsContains("name=\"eindex\"") && !saveChrome.IsContains("name=\"password_new\""))
                                {
                                    dem++;
                                    row.Status = "Xác nhận đăng nhập địa điểm lạ";
                                    try
                                    {
                                        Task.Delay(rd.Next(100, 1500)).Wait();
                                        saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BContinue%5D=Continue").Result;
                                        Task.Delay(rd.Next(100, 1500)).Wait();
                                        saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BThis+was+me%5D=This+was+me").Result;
                                        Task.Delay(rd.Next(100, 1500)).Wait();
                                        string verification_method = "";
                                        if (saveChrome.IsContains("name=\"verification_method\" value=\"37\"")) verification_method = "&verification_method=37";
                                        saveChrome = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&name_action_selected=save_device&submit%5BContinue%5D=Continue" + verification_method).Result;

                                        if (saveChrome.IsContains("submit[Download Your Information]"))
                                        {
                                            row.Status = "Tài khoản của bạn bị vô hiệu hóa";
                                            errorStatus = " : VHH";
                                            return;
                                        }
                                        if (saveChrome.IsContains("disabled_account_content"))
                                        {
                                            pro.Status = "Tài khoản của bạn bị vô hiệu hóa";
                                            errorStatus = " : VHH";
                                            return;
                                        }
                                    }
                                    catch { }
                                }
                                if (saveChrome.IsContains("submit[Download Your Information]"))
                                {
                                    row.Status = "Tài khoản của bạn bị vô hiệu hóa";
                                    errorStatus = " : VHH";
                                    return;
                                }

                                row.Status = "Kiểm tra đăng nhập";
                                if (!string.IsNullOrEmpty(errorStatus))
                                {
                                    row.Status += errorStatus;
                                    return;
                                }
                                string eindex = Regex.Match(saveChrome, "name=\"eindex\" value=\"(.*?)\"").Groups[1].Value;
                                if (!string.IsNullOrEmpty(eindex))
                                {
                                    eindex = HttpUtility.HtmlDecode(eindex);
                                    row.Status = $"Nhận mã gửi về email {eindex}";

                                    string clickcontinue = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&send_code=1&eindex={eindex}&nh={nh}&submit%5BContinue%5D=Continue&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;
                                    //getcode từ mail
                                    row.Status = "Vào email tìm code otp...";
                                    string code = "";
                                    if (domaintempmailprivate.IsContains(domain) || domainmailtm.IsContains(domain) || domainfvia.IsContains(domain) || domaininboxes.IsContains(domain) || domainmailmoakt.IsContains(domain) || domaintempm.IsContains(domain))
                                        code = tmail.GetCode("facebook");
                                    else
                                        code = pro.GetMail(textsearch: "security@facebookmail.com", proxyemail: listproxyemail.GetRandom());
                                    if (string.IsNullOrEmpty(code) || code.IsContains("Lỗi : "))
                                    {
                                        row.Status = $"Lỗi lấy otp từ mail. {code}";
                                        return;
                                    }
                                    else row.Status = $"Code từ mail {code}";
                                    string clicksubmit = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&captcha_response={code}&nh={nh}&submit%5BContinue%5D=Continue&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;


                                    Task.Delay(rd.Next(100, 1000)).Wait();
                                    if (clicksubmit.IsContains("name=\"submit[Yes]\""))
                                    {
                                        row.Status = "SubmitCode thành công";
                                        string save = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&nh={nh}&submit%5BYes%5D=Yes&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;
                                        if (!save.IsContains("name=\"password_new\"") && save.IsContains("checkpointSubmitButton"))
                                        {
                                            save = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next", $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BContinue%5D=Continue").Result;

                                        }
                                        if (save.IsContains("name=\"password_new\""))
                                        {
                                            row.StoryID = pro.Password;
                                            string password = passwordinput;
                                            if (string.IsNullOrEmpty(password)) password = job.TargetID;
                                            if (string.IsNullOrEmpty(password)) password = RandomPassword(12);

                                            string savepass = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&password_new={password}&password_confirm={password}&nh={nh}&submit%5BNext%5D=Next&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;
                                            if (savepass.IsContains("name=\"password_new\""))
                                            {
                                                row.Status = "Lỗi change Password";
                                                return;
                                            }
                                            else row.Status = "Change Password thành công";
                                            string savecontinue = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&nh={nh}&submit%5BContinue%5D=Continue&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;


                                            //thanh cong
                                            row.StoryID1 = password;
                                            SaveOneProfile(filebackup, pro);
                                            string passold = "";
                                            passold = pro.Password;
                                            pro.PasswordOld = passold;
                                            pro.Password = password;
                                            pro.Cookie = request.GetCookie();
                                            SaveOneProfile(filedata, pro);
                                            if (SaveDB)
                                                SaveMaxProfile(filedbmax, pro, true);
                                            Task.Delay(rd.Next(100, 2000)).Wait();
                                        }
                                    }
                                    else
                                    {
                                        row.Status = "Lỗi SubmitCode";
                                    }

                                }
                                else if (saveChrome.IsContains("name=\"password_new\""))
                                {
                                    row.StoryID = pro.Password;
                                    string password = passwordinput;
                                    if (string.IsNullOrEmpty(password)) password = job.TargetID;
                                    if (string.IsNullOrEmpty(password)) password = RandomPassword(12);

                                    string savepass = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&password_new={password}&password_confirm={password}&nh={nh}&submit%5BNext%5D=Next&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;
                                    if (savepass.IsContains("name=\"password_new\""))
                                    {
                                        row.Status = "Lỗi change Password";
                                        return;
                                    }
                                    else row.Status = "Change Password thành công";
                                    string savecontinue = request.PostAsync("https://en-gb.facebook.com/checkpoint/", $"checkpoint_data=&nh={nh}&submit%5BContinue%5D=Continue&fb_dtsg={fb_dtsg}&jazoest={jozoest}&lsd={request.LSD}&__dyn=&__csr=&__req=2&__a=&__user=0").Result;


                                    //thanh cong
                                    row.StoryID1 = password;
                                    SaveOneProfile(filebackup, pro);
                                    string passold = "";
                                    passold = pro.Password;
                                    pro.PasswordOld = passold;
                                    pro.Password = password;
                                    pro.Cookie = request.GetCookie();
                                    SaveOneProfile(filedata, pro);
                                    if (SaveDB)
                                        SaveMaxProfile(filedbmax, pro, true);
                                    Task.Delay(rd.Next(100, 2000)).Wait();
                                }
                                else
                                {
                                    row.Status = $"Không có options gửi mail hoặc đổi pass.Check Wall...";
                                    request.CheckWall(pro);
                                    row.Status = pro.Status;
                                    pro.Cookie = request.GetCookie();
                                    SaveOneProfile(filedata, pro);
                                    return;
                                }


                            }
                            catch { }
Editor is loading...