public List<string> GetPrivateProxies()
        {
            List<string> lst_Proxies = new List<string>();
            try
            {
                clsDBQueryManager setting = new clsDBQueryManager();
                DataSet ds = setting.SelectPrivateProxyData();
                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> GetPrivateProxies()
        {
            List <string> lst_Proxies = new List <string>();

            try
            {
                clsDBQueryManager setting = new clsDBQueryManager();
                DataSet           ds      = setting.SelectPrivateProxyData();
                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);
        }
Esempio n. 3
0
        private void chkboxPrivateProxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chkboxPrivateProxy.Checked == true)
                {
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPrivateProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        MessageBox.Show("Please Import Private Proxy Files. We Are redirecting you to Proxy Tab");
                        tabMain.SelectedIndex = 7;
                    }
                    AddToListAccountsLogs(ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase");
                    AddToGeneralLogs(ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase");
                }
            }
            catch (Exception ex)
            {
                AddToListAccountsLogs(ex.Message);
            }
        }
Esempio n. 4
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);
            }
        }
Esempio n. 5
0
        private void chk_RetweetAndFavoritePrivateproxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chk_RetweetAndFavoritePrivateproxy.Checked == true)
                {
                    UploadPrivateProxy();
                    chk_RetweetAndFavoritePublicproxy.Checked = false;
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPrivateProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        //MessageBox.Show("Please Import Private Proxy Files. We Are redirecting you to Proxy Tab");
                        //Tb_AccountManager.SelectedIndex = 5;
                        DialogResult dr = MessageBox.Show("Please Import Private 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 + " Private Proxies loaded from DataBase ]");
                    AddToGeneralLogs("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase ]");

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