示例#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));
            }
        }
示例#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); }
 }
示例#3
0
        public static void LoadAllFIles()
        {
            string folder         = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            string specificFolder = Path.Combine(folder, "LothosGen");

            if (!Directory.Exists(specificFolder)) //Checks OR Makes Directory Folder
            {
                try
                {
                    Directory.CreateDirectory(specificFolder);
                }
                catch (Exception e) { MessageBox.Show(e.Message); }
            }
            MessageBox.Show("a");
            MainBrowser.LoadStartPage();
            RightBrowser.LoadUpdatesPage();
        }
示例#4
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;
        }
示例#5
0
        public static string get_settings(string ID, string Method)
        {
            if (Method == "name")
            {
                string _source = "";
                _source = RightBrowser.getSource();

                List <String> lines = Regex.Split(_source, "\n").ToList();

                foreach (string l in lines)
                {
                    string h = l.ToLower();
                    if (l.Contains(ID))
                    {
                        string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0];

                        return(name);
                    }
                }
            }
            if (Method == "value")
            {
                string _source = "";
                _source = RightBrowser.getSource();

                List <String> lines = Regex.Split(_source, "\n").ToList();

                foreach (string l in lines)
                {
                    string h = l.ToLower();
                    if (l.Contains(ID))
                    {
                        string name = Regex.Split(Regex.Split(h, "value=\"")[1], "\"")[0];

                        return(name);
                    }
                }
            }
            return("Not Found");
        }
示例#6
0
        public static void EditStatus(int indexID, string Newstatus)
        {
            string edit = GridPageEdit.getHistory();

            string[] split = Regex.Split(edit, "\n");
            foreach (string a in split)
            {
                if (a.Contains("Cell4Text"))
                {
                    if (a.Contains(indexID.ToString()))
                    {
                        string[] g      = a.Split('>');
                        string[] status = g[1].Split('<');
                        string   neww   = a.Replace(status[0], Newstatus);
                        string   now    = edit.Replace(a, neww);
                        GPGlobals.History = now;
                        if (RightBrowser.getSource().Contains("gridpage"))
                        {
                            RightBrowser.LoadGridPage();
                        }
                    }
                }
            }
        }
示例#7
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;
            }
        }
示例#8
0
 public static void Settings()
 {
     RightBrowser.browser.Invoke(new MethodInvoker(delegate { RightBrowser.browser.Visible = true; }));
     RightBrowser.LoadSettingsPage();
 }
示例#9
0
 public static void History()
 {
     RightBrowser.browser.Invoke(new MethodInvoker(delegate { RightBrowser.browser.Visible = true; }));
     RightBrowser.LoadHistoryPage();
 }
示例#10
0
 public static void Dashboard()
 {
     RightBrowser.browser.Invoke(new MethodInvoker(delegate { RightBrowser.browser.Visible = true; }));
     RightBrowser.LoadGridPage();
 }
示例#11
0
 public MainUI()
 {
     InitializeComponent();
     MainBrowser.StartBrowser(LeftBrowserWindow);
     RightBrowser.StartBrowser(RightBrowserWindow);
 }
示例#12
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);
            }
        }
示例#13
0
 public static void addProxyToList(string proxy)
 {
     ProxyHTML += "<option style='background-color: grey; font-weight: bold;' id='" + proxy + "'>" + proxy + "</option>";
     ProxyListFile.write(proxy);
     RightBrowser.LoadSettingsPage();
 }
示例#14
0
 public static void ReloadTable()
 {
     RightBrowser.LoadGridPage();
 }
示例#15
0
 public static void Reload()
 {
     RightBrowser.LoadHistoryPage();
 }