예제 #1
0
        public static void LoadDecaptchaSettings()
        {
            try
            {
                Globals.CapchaTag = true;

                clsDBQueryManager DataBase = new clsDBQueryManager();
                DataTable dt = DataBase.SelectSettingData();
                foreach (DataRow dRow in dt.Rows)
                {
                    if ("Captcha_ID" == dRow[1].ToString())
                    {
                        Globals.CapchaLoginID = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                    if ("Captcha_Password" == dRow[1].ToString())
                    {
                        Globals.CapchaLoginPassword = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                }

            }
            catch
            {
            }
        }
예제 #2
0
        private void LoadDBCSettings()
        {
            clsDBQueryManager objclsSettingDB = new clsDBQueryManager();

            try
            {
                DataTable dt = objclsSettingDB.SelectSettingData();
                foreach (DataRow row in dt.Rows)
                {
                    if ("DeathByCaptcha" == row[1].ToString())
                    {
                        txtDBCUsername.Text = StringEncoderDecoder.Decode(row[0].ToString());
                        txtDBCPassword.Text = StringEncoderDecoder.Decode(row[2].ToString());
                        BaseLib.Globals.DBCUsername = StringEncoderDecoder.Decode(txtDBCUsername.Text);
                        BaseLib.Globals.DBCPassword = StringEncoderDecoder.Decode(txtDBCPassword.Text);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
예제 #3
0
        private void btnSaveDBC_Click(object sender, EventArgs e)
        {
            
            if (!string.IsNullOrEmpty(txtDBCUsername.Text.Trim()) && !string.IsNullOrEmpty(txtDBCPassword.Text.Trim()))
            {
                BaseLib.Globals.DBCUsername = txtDBCUsername.Text;
                BaseLib.Globals.DBCPassword = txtDBCPassword.Text;

                //***  Save tb_Setting**************************///////

                clsDBQueryManager objclsSettingDB = new clsDBQueryManager();

                try
                {
                    DataTable dt = objclsSettingDB.SelectSettingData();
                    foreach (DataRow row in dt.Rows)
                    {
                        if ("DeathByCaptcha" == row[1].ToString())
                        {
                            objclsSettingDB.DeleteDBCDecaptcherData("DeathByCaptcha");
                        }
                    }
                    objclsSettingDB.InsertDBCData(StringEncoderDecoder.Encode(txtDBCUsername.Text), "DeathByCaptcha", StringEncoderDecoder.Encode(txtDBCPassword.Text));
                    MessageBox.Show("Settings Saved");
                    this.Close();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.StackTrace);
                }
            }
            else
            {
                MessageBox.Show("Please fill all Death By Captcha Details");
            }
        }
예제 #4
0
        private void FrmCapchaLogin_Load(object sender, EventArgs e)
        {
            try
            {
                Globals.CapchaTag = true;
                image = Properties.Resources.background;
                txtDBpath.Text = Globals.path_AppDataFolder;

                clsDBQueryManager DataBase = new clsDBQueryManager();
                DataTable dt = DataBase.SelectSettingData();
                foreach (DataRow dRow in dt.Rows)
                {

                    if ("Captcha_ID" == dRow[1].ToString())
                    {
                        txtCapchaID.Text = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                    if ("Captcha_Password" == dRow[1].ToString())
                    {
                        txtCapchaPaswrd.Text = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }

                    Globals.CapchaLoginID = txtCapchaID.Text;
                    Globals.CapchaLoginPassword = txtCapchaPaswrd.Text;
                }

                //string[] arr1 = new string[] { BaseLib.Globals.CapchaLoginID, BaseLib.Globals.CapchaLoginPassword};
                //DeathByCaptcha.Client clnt = null;
                //string capcthaResponse = DecodeDBC(arr1, out clnt);
            }
            catch
            {
            }
        }
예제 #5
0
        public void copyGroupCreator()
        {
            listGroupName = new List<string>();
            listWebsite = new List<string>();
            listSummary = new List<string>();
            listDesciption = new List<string>();

            string groupNameSettings = string.Empty;
            string groupWebsiteSettings = string.Empty;
            string groupSummarySettings = string.Empty;
            string groupDescriptionSetting = string.Empty;

            clsDBQueryManager DataBase = new clsDBQueryManager();
            DataTable dt = DataBase.SelectSettingData();
            foreach (DataRow row in dt.Rows)
            {
                if ("GroupName" == row[1].ToString())
                {
                    groupNameSettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupSummary" == row[1].ToString())
                {
                    groupSummarySettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupDescription" == row[1].ToString())
                {
                    groupDescriptionSetting = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupWebsite" == row[1].ToString())
                {
                    groupWebsiteSettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
            }

            if (File.Exists(groupNameSettings))
            {
                listGroupName = GlobusFileHelper.ReadFiletoStringList(groupNameSettings);
                txtGroupName.Text = groupNameSettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listGroupName.Count + " Group Names loaded ]");
            }
            if (File.Exists(groupSummarySettings))
            {
                listSummary = GlobusFileHelper.ReadFiletoStringList(groupSummarySettings);
                txtSummary.Text = groupSummarySettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listSummary.Count + " Group Summary loaded ]");
            }
            if (File.Exists(groupDescriptionSetting))
            {
                listDesciption = GlobusFileHelper.ReadFiletoStringList(groupDescriptionSetting);
                txtDesc.Text = groupDescriptionSetting;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listDesciption.Count + " Group Description loaded ]");
            }
            if (File.Exists(groupWebsiteSettings))
            {
                listWebsite = GlobusFileHelper.ReadFiletoStringList(groupWebsiteSettings);
                txtWebsite.Text = groupWebsiteSettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listWebsite.Count + " Group Websites loaded ]");
            }
        }
예제 #6
0
 private void CopyUpdateStatus()
 {
     try
     {
         clsDBQueryManager DataBase = new clsDBQueryManager();
         DataTable dt = DataBase.SelectSettingData();
         foreach (DataRow row in dt.Rows)
         {
             if ("StatusUpdate" == row[0].ToString() && "StatusMessage" == row[1].ToString())
             {
                 txtStatusUpd.Text = StringEncoderDecoder.Decode(row[2].ToString());
                 if (File.Exists(txtStatusUpd.Text))
                 {
                     List<string> temp = GlobusFileHelper.ReadFiletoStringList(txtStatusUpd.Text);
                     foreach (string item in temp)
                     {
                         if (!string.IsNullOrEmpty(item.Replace(" ", "").Replace("\t", "")))
                         {
                             listStatusMessages.Add(item);
                         }
                     }
                     AddLoggerStatusUpdate("[ " + DateTime.Now + " ] => [ " + listStatusMessages.Count + " Status Update Messages loaded ]");
                     break;
                 }
                 else
                 {
                     AddLoggerStatusUpdate("[ " + DateTime.Now + " ] => [ File Does not Exsist ]");
                     break;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Status Update --> CopyUpdateStatus() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinErrorLogs);
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Status Update --> CopyUpdateStatus() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinStatusUpdateErrorLogs);
     }
 }
예제 #7
0
        public void LoadFileData()
        {
            string accountData = string.Empty;
            string laoddata = string.Empty;

            clsDBQueryManager DataBase = new clsDBQueryManager();
            DataTable dt = DataBase.SelectSettingData();
            foreach (DataRow row in dt.Rows)
            {
                if ("LoadAccounts" == row[1].ToString())
                {
                    accountData = StringEncoderDecoder.Decode(row[2].ToString());
                }
            }
            this.Invoke(new MethodInvoker(delegate
                {
                    if (File.Exists(accountData))
                    {
                        textBox12.Text = accountData;
                        AddToListBox("[ " + DateTime.Now + " ] => [ Last Accounts Loaded From : " + accountData + " ]");
                    }
                    else
                    {
                        //AddToListBox("[ " + DateTime.Now + " ] => [ File : " + accountData + " : Does not exsist ]");
                        AddToListBox("[ " + DateTime.Now + " ] => [ Please upload accounts ]");
                    }
                }));
        }