Exemple #1
0
        public static void TestProxies(string proxyIP, int proxyPort)
        {
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://store.steampowered.com/");

            try { WebProxy myproxy = new WebProxy(proxyIP, proxyPort); } catch { }

            try
            {
                WebProxy myProxy = default(WebProxy);
                myProxy = new WebProxy(proxyIP, proxyPort);
                HttpWebRequest r = request;
                r.UserAgent = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36";
                r.Timeout   = 3000;
                r.Proxy     = myProxy;
                HttpWebResponse re = (HttpWebResponse)r.GetResponse();

                string o = "document.getElementById('" + proxyIP + ":" + proxyPort + "').style.backgroundColor = '" + "lime" + "'; " + "\n";
                RightBrowser.EvaluateScript(o, TimeSpan.FromMilliseconds(1));
            }
            catch (Exception)
            {
                string o = "document.getElementById('" + proxyIP + ":" + proxyPort + "').style.backgroundColor = '" + "#fc5b53" + "'; " + "\n";
                RightBrowser.EvaluateScript(o, TimeSpan.FromMilliseconds(1));
            }
        }
Exemple #2
0
 public static void editProxyColor(string proxy, string color)
 {
     try
     {
         RightBrowser.EvaluateScript("document.getElementById('" + proxy + "').style.backgroundColor = '" + color + "';", TimeSpan.FromMilliseconds(10));
     }catch (Exception k) { MessageBox.Show(k.Message); }
 }
Exemple #3
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            Bitmap BottomPanel       = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 1466, 53, 0, 651);
            Bitmap TopPanel          = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 1466, 29, 0, 0);
            Bitmap RightSidePanel    = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 220, 624, 0, 313);
            Bitmap LeftBrowserPanel  = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 520, 625, 0, 29);
            Bitmap RightBrowserPanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 729, 625, 519, 29);

            LeftBrowserPanel.Save(@"LBP.bmp");
            RightBrowserPanel.Save(@"RBP.bmp");
            MainBrowser.EvaluateScript("document.getElementById('booty').style.backgroundImage = 'url(https://i.imgur.com/ZFi2bAs.png)';", TimeSpan.FromMilliseconds(1));
            MainBrowser.EvaluateScript("document.getElementById('cons').style.backgroundColor = 'transparent';", TimeSpan.FromMilliseconds(1));
            MainBrowser.EvaluateScript("document.getElementById('sb').style.backgroundColor = 'transparent';", TimeSpan.FromMilliseconds(1));
            RightBrowser.EvaluateScript("document.getElementById('bootys').style.backgroundImage = 'url(https://i.imgur.com/iaNeUAu.png)';", TimeSpan.FromMilliseconds(1));
            b_panel.BackgroundImage = BottomPanel;
            Bar.BackgroundImage     = TopPanel;
        }
Exemple #4
0
        public static void Initalize()
        {
            switch (cb)
            {
            case "cb_emaila":
                if (value == "none")
                {
                }
                else
                {
                    string[] split = value.Split('|');
                    HTMLObjects.EmailProvider = split[0];
                    try { HTMLObjects.EmailProviderURL = split[1]; }catch { }
                }
                break;

            case "cb_proxy":
                if (value == "none")
                {
                }
                else
                {
                    if (value.Contains("+"))
                    {
                        new AddProxies().ShowDialog();
                        RightBrowser.EvaluateScript("document.getElementById('cb_proxy').setAttribute('value', '');", TimeSpan.FromMilliseconds(1));
                    }
                    else
                    {
                        try { HTMLObjects.sProxy = value; } catch { }
                    }
                }

                break;
            }
        }
Exemple #5
0
        public void Run()
        {
            while (true)
            {
                _source      = MainBrowser.getSource();
                _sourceRight = RightBrowser.getSource();

                List <String> lines    = Regex.Split(_source, "<button ").ToList();
                List <String> linesCB  = Regex.Split(_sourceRight, "<select ").ToList();
                List <String> linesBtn = Regex.Split(_sourceRight, "<button ").ToList();
                foreach (string l in lines)
                {
                    string h = l.ToLower();
                    if (h.Contains("id=\""))
                    {
                        string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0];
                        if (h.Contains("name=\"") && btn.Contains("btn_"))
                        {
                            string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0];
                            if (clicked(name))
                            {
                                MainBrowser.EvaluateScript("document.getElementById('" + btn + "').setAttribute('name', 'false')", TimeSpan.FromMilliseconds(1));
                                buttons btnT = new buttons(btn);
                                Thread  exe  = new Thread(buttons.Initalize);
                                exe.Start();
                            }
                        }

                        string chk = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0];
                        if (h.Contains("name=\"") && chk.Contains("chk_"))
                        {
                            string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0];

                            chks   chkT = new chks(chk, name);
                            Thread exe  = new Thread(chks.Initalize);
                            exe.Start();
                        }
                    }
                }
                foreach (string a in linesCB)
                {
                    string h = a.ToLower();
                    if (h.Contains("id=\""))
                    {
                        string cb = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0];
                        if (h.Contains("value=\"") && cb.Contains("cb_"))
                        {
                            string value = Regex.Split(Regex.Split(h, "value=\"")[1], "\"")[0];

                            cbs    cbT = new cbs(cb, value);
                            Thread exe = new Thread(cbs.Initalize);
                            exe.Start();
                        }
                        string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0];
                        if (h.Contains("value=\"") && btn.Contains("btn_"))
                        {
                            string value = Regex.Split(Regex.Split(h, "value=\"")[1], "\"")[0];

                            buttons btnT = new buttons(btn);
                            Thread  exe  = new Thread(buttons.Initalize);
                            exe.Start();
                        }
                    }
                }
                foreach (string a in linesBtn)
                {
                    string h = a.ToLower();
                    if (h.Contains("id=\""))
                    {
                        string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0];
                        if (h.Contains("name=\"") && btn.Contains("btn_"))
                        {
                            string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0];
                            if (clicked(name))
                            {
                                RightBrowser.EvaluateScript("document.getElementById('" + btn + "').setAttribute('name', 'false')", TimeSpan.FromMilliseconds(1));
                                buttons btnT = new buttons(btn);
                                Thread  exe  = new Thread(buttons.Initalize);
                                exe.Start();
                            }
                        }
                    }
                }
                Thread.Sleep(5);
            }
        }