public List<string> GetPublicProxies()
        {
            List<string> lst_Proxies = new List<string>();
            try
            {
                clsDBQueryManager setting = new clsDBQueryManager();
                DataSet ds = setting.SelectPublicProxyData();
                if (ds.Tables != null && ds.Tables["tb_Proxies"].Rows.Count > 0)
                {
                    foreach (DataRow dRow in ds.Tables["tb_Proxies"].Rows)
                    {
                        string Proxy = dRow.ItemArray[0].ToString() + ":" + dRow.ItemArray[1].ToString() + ":" + dRow.ItemArray[2].ToString() + ":" + dRow.ItemArray[3].ToString();
                        lst_Proxies.Add(Proxy);
                    }
                }
            }
            catch { }

            return lst_Proxies;
        }
        public List <string> GetPublicProxies()
        {
            List <string> lst_Proxies = new List <string>();

            try
            {
                clsDBQueryManager setting = new clsDBQueryManager();
                DataSet           ds      = setting.SelectPublicProxyData();
                if (ds.Tables != null && ds.Tables["tb_Proxies"].Rows.Count > 0)
                {
                    foreach (DataRow dRow in ds.Tables["tb_Proxies"].Rows)
                    {
                        string Proxy = dRow.ItemArray[0].ToString() + ":" + dRow.ItemArray[1].ToString() + ":" + dRow.ItemArray[2].ToString() + ":" + dRow.ItemArray[3].ToString();
                        lst_Proxies.Add(Proxy);
                    }
                }
            }
            catch { }

            return(lst_Proxies);
        }
Пример #3
0
        public void SignupPage()
        {
            clsDBQueryManager SetDb = new clsDBQueryManager();
            DataSet ds = new DataSet();
            //bool UsePublicProxy = false;
            int counter_Username = 0;
            foreach (string EmailPassword in LstAccountcreationEmailPassword)
            {
            StartAgain:
                try
                {
                    GlobusHttpHelper httpHelper = new GlobusHttpHelper();
                    string[] array = Regex.Split(EmailPassword, ":");
                    string email = array[0];
                    string password = array[1];
                    string username = string.Empty;
                    string ProxyAdress = string.Empty;
                    string ProxyPort = string.Empty;
                    string Proxy = string.Empty;
                    AddToProxyAccountCreationLog("Clearing Cookies");
                    ClearCookies();
                    if (chkboxUsePublicProxies.Checked)
                    {
                        try
                        {
                            ds = SetDb.SelectPublicProxyData();
                            if (ds.Tables[0].Rows.Count != 0)
                            {
                                int index = RandomNumberGenerator.GenerateRandom(0, ds.Tables[0].Rows.Count);
                                DataRow dr = ds.Tables[0].Rows[countForInstance];
                                Proxy = dr.ItemArray[0].ToString() + ":" + dr.ItemArray[1].ToString() + ":" + dr.ItemArray[2].ToString() + ":" + dr.ItemArray[3].ToString();
                                string[] ProxyList = Regex.Split(Proxy, ":");
                                ProxyAdress = ProxyList[0];
                                ProxyPort = ProxyList[1];
                                
                                AddToProxyAccountCreationLog("Using Proxy Address : - " + ProxyAdress + ":" + ProxyPort);
                            }
                            else
                            {
                                AddToProxyAccountCreationLog("Please Uplaod Public Proxies");
                                break;
                            }
                        }
                        catch (Exception ex)
                        {

                        }
                    }

                    AddToProxyAccountCreationLog("Setting Proxy");

                    Thread.Sleep(2000);

                    SetProxy(ProxyAdress, ProxyPort);

                    Thread.Sleep(2000);

                    IE explorer = new IE();

                    Thread.Sleep(1000);

                    if (LstAccountcreationUsername.Count > 0)
                    {
                        if (counter_Username < LstAccountcreationUsername.Count)
                        {
                            username = LstAccountcreationUsername[counter_Username];
                            counter_Username++;
                        }
                        else
                        {
                            AddToProxyAccountCreationLog("*********** /n All Usernames have been taken /n ***********");
                            break;
                        }
                    }
                    else
                    {
                        AddToProxyAccountCreationLog("Please Upload Usernames To Create Twitter Accounts");
                        break;
                    }

                    string name = LstAccountCreationName[countForInstance];
                    string capcthaUrl = string.Empty;

                    try
                    {
                        explorer.GoTo("https://twitter.com/signup");

                        string PageSource = explorer.Html.ToString();
                        if (PageSource.Contains("Sign out"))
                        {
                            explorer.Link(Find.ById("signout-button")).Click();
                            Thread.Sleep(2000);
                            explorer.GoTo("https://twitter.com/signup");
                            Thread.Sleep(2000);
                        }
                    }
                    catch (Exception ex)
                    {
                        AddToProxyAccountCreationLog("Taking too Long To respond.Page Not Loaded Fully");
                        break;
                    }

                    try
                    {

                        foreach (TextField item in explorer.TextFields)
                        {
                            string Html = item.OuterHtml.ToString();
                            if (item.Name == "user[name]")
                            {
                                AddToProxyAccountCreationLog("Name :" + name);
                                item.TypeText(name);
                                Thread.Sleep(1000);
                                break;
                            }
                        }

                        foreach (TextField item in explorer.TextFields)
                        {
                            if (item.Name == "user[email]")
                            {
                                AddToProxyAccountCreationLog("Email :" + email);
                                item.TypeText(email);
                                Thread.Sleep(1000);
                                break;
                            }
                        }

                        string EmailCheck = explorer.Html.ToString();
                        Thread.Sleep(8000);
                        if (EmailCheck.Contains("taken error active") || EmailCheck.Contains("invalid error active") || EmailCheck.Contains("blank error active"))
                        {
                            AddToProxyAccountCreationLog("Error In Email - " + email);
                            GlobusFileHelper.AppendStringToTextfileNewLine(email + ":" + password + ":" + ProxyAdress + ":" + ProxyPort, Globals.path_DesktopFolder + "\\TwtDominator\\BrowserAccountUnsuccessfull.txt");
                        }
                        else
                        {
                            foreach (TextField item in explorer.TextFields)
                            {
                                string Html = item.OuterHtml.ToString();
                                if (item.Name == "user[user_password]")
                                {
                                    AddToProxyAccountCreationLog("Password :"******"invalid error active") || !CheckPassword.Contains("blank error active") || !CheckPassword.Contains("blank error active") || CheckPassword.Contains("weak error active"))
                            {
                                AddToProxyAccountCreationLog("Password Not Secure creating Other");
                                password = password + RandomStringGenerator.RandomString(5);
                                if (password.Count() > 15)
                                {
                                    password = password.Remove(13); //Removes the extra characters
                                }

                                foreach (TextField item in explorer.TextFields)
                                {
                                    string Html = item.OuterHtml.ToString();
                                    if (item.Name == "user[user_password]")
                                    {
                                        AddToProxyAccountCreationLog("Password :"******"Username : "******""))
                                //{
                                if (item.Name == "user[screen_name]")
                                {
                                    item.TypeText(username);
                                    Thread.Sleep(1000);
                                    break;
                                }
                                //}
                            }

                            string Usernamecheck = explorer.Html.ToString();
                            if (!Usernamecheck.Contains("taken error active") || !Usernamecheck.Contains("invalid error active") || !Usernamecheck.Contains("blank error active"))
                            {
                                if (username.Count() > 12)
                                {
                                    username = username.Remove(8); //Removes the extra characters
                                }
                                username = username + RandomStringGenerator.RandomString(5);
                                if (username.Count() > 15)
                                {
                                    username = username.Remove(13); //Removes the extra characters
                                }
                                foreach (TextField item in explorer.TextFields)
                                {
                                    if (item.Name == "user[screen_name]")
                                    {
                                        item.TypeText(username);
                                        Thread.Sleep(1000);
                                        break;
                                    }
                                }
                            }


                            Thread.Sleep(2000);

                            string PageSource = explorer.Html.ToString();

                            if (PageSource.Contains("sign-up-box"))
                            {
                                AddToProxyAccountCreationLog("Creating Twitter Account With Email : " + email);
                                explorer.Button(Find.ByValue("Create my account")).Click();
                                Thread.Sleep(2000);
                            }
                           
                                string PageSourceSignup = explorer.Html.ToString();


                                if (PageSource.Contains("signout-button") && PageSource.Contains("js-signout-button"))
                                {
                                    AddToProxyAccountCreationLog("Creating Twitter Account With Email : " + email);
                                    GlobusFileHelper.AppendStringToTextfileNewLine(email + ":" + password, Globals.Path_BrowserCreatedAccounts);
                                    string GetSignout = explorer.Html.ToString();
                                    if (GetSignout.Contains("Sign out"))
                                    {
                                        explorer.Link(Find.ById("signout-button")).Click();
                                        Thread.Sleep(2000);
                                        countForInstance++;
                                    }
                                }
                                else if (PageSource.Contains("Are you human?"))
                                {
                               
                                    AddToProxyAccountCreationLog("Checking For Human??");
                                
                                    Thread.Sleep(3000);
                                    try
                                    {
                                        foreach (Div Item in explorer.Divs)
                                        {
                                            string Url = Item.OuterHtml.ToString();
                                            if (Item.Id == "recaptcha_image")
                                            {
                                                int startIndex = Url.IndexOf("src=\"");
                                                string start = Url.Substring(startIndex).Replace("src=\"", "");
                                                int endIndex = start.IndexOf("\"");
                                                string end = start.Substring(0, endIndex);
                                                capcthaUrl = end;
                                                break;
                                            }
                                        }
                                        int i = 0;
                                       WebClient webclient = new WebClient();
                                   StartWebClient:
                                        Thread.Sleep(2000);
                                        try
                                        {
                                            byte[] args = webclient.DownloadData(capcthaUrl);
                                            string[] arr1 = new string[] { BaseLib.Globals.DBCUsername, BaseLib.Globals.DBCPassword, "" };
                                            string CapcthaString = DecodeDBC(arr1, args);
                                            foreach (TextField item in explorer.TextFields)
                                            {

                                                string Html = item.OuterHtml.ToString();
                                                if (item.Id == "recaptcha_response_field")
                                                {
                                                    AddToProxyAccountCreationLog("Adding Capctha Response");
                                                    item.TypeText(CapcthaString);
                                                    break;
                                                }
                                            }
                                            explorer.Button(Find.ByValue("Create my account")).Click();
                                        }
                                        catch (Exception ex)
                                        {
                                            i++;
                                            if (ex.Message.Contains("An exception occurred during a WebClient request."))
                                            {
                                                AddToProxyAccountCreationLog("Error In Capctha Download Trying Again - " + i);
                                                if (i <= 3)
                                                {
                                                    goto StartWebClient;
                                                }
                                                else
                                                {
                                                    GlobusFileHelper.AppendStringToTextfileNewLine(email + ":" + password + ":" + ProxyAdress + ":" + ProxyPort, Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\TwtDominator\\UnsuccessfullBrowserAcounts.txt");
                                                }
                                            }
                                        }
                                    }

                                    catch (Exception ex)
                                    {
                                       
                                    }

                                    string ConfirmId = explorer.Html.ToString();

                                    AddToProxyAccountCreationLog("Confirming created Account");
                                    if (!ConfirmId.Contains("Sign out"))
                                    {
                                        AddToProxyAccountCreationLog("Account Not Created : " + email + ":" + password);
                                        GlobusFileHelper.AppendStringToTextfileNewLine(email + ":" + password + ":" + ProxyAdress + ":" + ProxyPort, Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\TwtDominator\\UnsuccessfullBrowserAcounts.txt");
                                    }
                                    else if (ConfirmId.Contains("Sign out"))
                                    {
                                        GlobusFileHelper.AppendStringToTextfileNewLine(email + ":" + password + ":" + ProxyAdress + ":" + ProxyPort, Globals.Path_BrowserCreatedAccounts);
                                        explorer.GoTo("https://twitter.com/");
                                        explorer.Link(Find.ById("signout-button")).Click();
                                        Thread.Sleep(1000);
                                    }
                                }
                            }
                        
                    }
                    catch (Exception ex)
                    {
                        if (ex.Message == "The remote server returned an error: (504) Gateway Timeout.")
                        {
                            AddToProxyAccountCreationLog("Remote Server Returned Error - Time out");
                        }
                        explorer.Close();
                        AddToProxyAccountCreationLog("Closing Explorer Due To Error");
                        goto StartAgain;
                    }
                         
                    explorer.Close();
                    countForInstance++;
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("Error :: - " + DateTime.Now.ToString() + " || Error - " + ex.Message);
                        if (ex.Message.Contains("Creating an instance of the COM component with"))
                        {
                            goto StartAgain;
                        }
                    }
            }
        
        }
Пример #4
0
        private void chkboxPublicProxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chkboxPublicProxy.Checked == true)
                {
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPublicProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        MessageBox.Show("Please Import Proxy Files. We Are redirecting you to Proxy Tab");
                        tabMain.SelectedIndex = 7;
                    }
                    AddToListAccountsLogs(ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase");
                    AddToGeneralLogs(ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase");
                }
            }
            catch (Exception ex)
            {
                AddToListAccountsLogs(ex.Message);
            }
        }
Пример #5
0
        private void StartSignUpMultithreaded()
        {
            try
            {
                clsDBQueryManager SetDb = new clsDBQueryManager();
                DataSet ds = new DataSet();
                //bool UsePublicProxy = false;
                if (chkboxPublicProxy.Checked)
                {
                    ds = SetDb.SelectPublicProxyData();
                }
                else if (chkboxPrivateProxy.Checked)
                {
                    ds = SetDb.SelectPrivateProxyData();
                }

                if (chkboxUseFakeEmailAccounts.Checked)
                {
                    listEmails = Globals.FakeEmailList;
                }

                int numberOfThreads = 10;

                if (Globals.IdCheck.IsMatch(txtNumberOfThreads.Text) && !string.IsNullOrEmpty(txtNumberOfThreads.Text))
                {
                    numberOfThreads = int.Parse(txtNumberOfThreads.Text);
                }

                TwitterSignup.TwitterSignUp twitterSignUp = new TwitterSignup.TwitterSignUp();

                int counter_Name = 0;
                int counter_Username = 0;

                listEmails = listEmails.Distinct().ToList();

                if (listEmails.Count > 0)
                {
                    foreach (string email in listEmails)
                    {
                        string Proxy = string.Empty;
                        if (chkboxPublicProxy.Checked)
                        {
                            try
                            {
                                if (ds.Tables[0].Rows.Count != 0)
                                {
                                    int index = RandomNumberGenerator.GenerateRandom(0, ds.Tables[0].Rows.Count);
                                    DataRow dr = ds.Tables[0].Rows[index];
                                    Proxy = dr.ItemArray[0].ToString() + ":" + dr.ItemArray[1].ToString() + ":" + dr.ItemArray[2].ToString() + ":" + dr.ItemArray[3].ToString();
                                }
                                else
                                {
                                    AddToListAccountsLogs("Please Uplaod Public Proxies");
                                    break;
                                }
                            }
                            catch (Exception ex)
                            {
                                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> Getting Public Proxy From Data Bas --> " + ex.Message, Globals.Path_AccountCreatorErrorLog);
                                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> Getting Public Proxy From Data Base >>>> " + ex.Message + " || DateTime :- " + DateTime.Now, Globals.Path_TwtErrorLogs);
                            }
                        }
                        else if (chkboxPrivateProxy.Checked)
                        {
                            if (ds.Tables[0].Rows.Count != 0)
                            {
                                int index = RandomNumberGenerator.GenerateRandom(0, ds.Tables[0].Rows.Count);
                                DataRow dr = ds.Tables[0].Rows[index];
                                Proxy = dr.ItemArray[0].ToString() + ":" + dr.ItemArray[1].ToString() + ":" + dr.ItemArray[2].ToString() + ":" + dr.ItemArray[3].ToString();
                            }
                            else
                            {
                                AddToListAccountsLogs("Please Upload Private Proxy");
                                break;
                            }
                        }


                        if (listUserNames.Count > 0)
                        {
                            if (counter_Username < listUserNames.Count)
                            {
                            }
                            else
                            {
                                AddToListAccountsLogs("*********** /n All Usernames have been taken /n ***********");
                                break;
                            }
                        }
                        else
                        {
                            AddToListAccountsLogs("Please Upload Usernames To Create Twitter Accounts");
                            break;
                        }


                        if (listNames.Count > 0)
                        {
                            if (counter_Name < listNames.Count)
                            {
                            }
                            else
                            {
                                counter_Name = 0;
                            }
                        }
                        else
                        {
                            AddToListAccountsLogs("Please Upload Names To Create Twitter Accounts");
                            break;
                        }



                        string username = string.Empty;
                        string name = string.Empty;

                        try
                        {
                            username = listUserNames[counter_Username];
                        }
                        catch (Exception ex)
                        {
                            GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> Getting UserName for Twt Account Creator --> " + ex.Message, Globals.Path_AccountCreatorErrorLog);
                            GlobusFileHelper.AppendStringToTextfileNewLine("Error --> Getting UserName for Twt Account Creator >>>> " + ex.Message + " || DateTime :- " + DateTime.Now, Globals.Path_TwtErrorLogs);
                        }

                        try
                        {
                            name = listNames[counter_Name];
                        }
                        catch (Exception ex)
                        {
                            GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> Getting Name for Twt Account Creator --> " + ex.Message, Globals.Path_AccountCreatorErrorLog);
                            GlobusFileHelper.AppendStringToTextfileNewLine("Error --> Getting Name for Twt Account Creator >>>> " + ex.Message + " || DateTime :- " + DateTime.Now, Globals.Path_TwtErrorLogs);
                        }

                        ThreadPool.SetMaxThreads(numberOfThreads, 5);
                        //twitterSignUp.SignupMultiThreaded(new object[] { email, username, name, Proxy });
                        ThreadPool.QueueUserWorkItem(new WaitCallback(twitterSignUp.SignupMultiThreaded), new object[] { email, username, name, Proxy });
                        counter_Name++;
                        counter_Username++;
                        Thread.Sleep(1000);
                    }
                }
                else
                {
                    MessageBox.Show("Please Add Email Accounts to Create Accounts");
                    AddToListAccountsLogs("Please Add Email Accounts to Create Accounts");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> In StartSignUpMultithreaded() --> " + ex.Message, Globals.Path_AccountCreatorErrorLog);
                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> In StartSignUpMultithreaded() >>>> " + ex.Message + " || DateTime :- " + DateTime.Now, Globals.Path_TwtErrorLogs);
            }
        }
Пример #6
0
        public void CheckingProxies()
        {
            try
            {
                clsDBQueryManager Db = new clsDBQueryManager();
                DataSet ds = Db.SelectPublicProxyData();

                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    ThreadPool.SetMaxThreads(25, 5);

                    ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadPoolCheckProxies), new object[] { dr });

                    Thread.Sleep(1000);
                }
            }
            catch (Exception ex)
            {
                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> CheckingProxies()  --> " + ex.Message, Globals.Path_ProxySettingErroLog);
                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> CheckingProxies() --> " + ex.Message, Globals.Path_TwtErrorLogs);
            }
        }
Пример #7
0
        private void chk_RetweetAndFavoritePublicproxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chk_RetweetAndFavoritePublicproxy.Checked == true)
                {
                    ProxyUpload();
                    chk_RetweetAndFavoritePrivateproxy.Checked = false;
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPublicProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        //MessageBox.Show("Please Import Proxy Files. We Are redirecting you to Proxy Tab");
                        //Tb_AccountManager.SelectedIndex = 5;
                        DialogResult dr = MessageBox.Show("Please Import Proxy Files. We Are redirecting you to Proxy Tab", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                        if (dr == DialogResult.Yes)
                        {
                            Tb_AccountManager.SelectedIndex = 5;
                        }
                        else
                        {
                            //do whatever you want
                        }
                    }
                    AddToLog_RetweetAndFavorite("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase ]");
                    AddToGeneralLogs("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase ]");

                }
            }
            catch (Exception ex)
            {
                //AddToLog_RetweetAndFavorite(ex.Message);
            }
        }