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(job.pro.SecrectKey))
{
if (isStopGetCookieLogin) return;
var tfa = new TwoFactorAuth();
string code = tfa.GetCode(job.pro.SecrectKey.Replace(" ", "" .ToUpper());
job.pro.Status = "Gửi 2FA : " + code;
string post2FA = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next";, $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&no_fido=true&approvals_code={code}&submit%5BContinue%5D=Continue" .Result;
if (post2FA.IsContains("id=\"approvals_code\"" )
{
job.pro.Status = "Nhập sai OTP";
return;
}
}
job.pro.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("checkpointSubmitButton" )
{
job.pro.Status = "Xác nhận đăng nhập địa điểm lạ";
string temp1 = request.PostAsync($"https://en-gb.facebook.com/checkpoint/?next";, $"jazoest={jozoest}&fb_dtsg={fb_dtsg}&nh={nh}&submit%5BContinue%5D=Continue" .Result;
string temp2 = 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;
string temp3 = 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 (temp1.IsContains("submit[Download Your Information]" || temp2.IsContains("submit[Download Your Information]" || temp3.IsContains("submit[Download Your Information]" )
{
job.pro.Status = "Tài khoản của bạn bị vô hiệu hóa";
return;
}
}
if (saveChrome.IsContains("submit[Download Your Information]" )
{
job.pro.Status = "Tài khoản của bạn bị vô hiệu hóa";
return;
}
job.pro.Status = "Kiểm tra đăng nhập";
job.pro.Cookie = request.GetCookie();
if(job.pro.UID.IsContains("@" )
{
string tempmail = job.pro.UID;
job.pro.UID = RegexMatch(job.pro.Cookie, "c_user \\d+)" .Groups[1].Value;
job.pro.Email = tempmail;
}
request.CheckWall(job.pro);