예제 #1
0
 private void UpdateStatus()
 {
     try
     {
         GenerateFunctions.EditStatus(_index, _status);
     }
     catch
     {
     }
 }
예제 #2
0
        public static void GenerateAccount(Gui.MainUI UI, string _provider)
        {
            string txtEmail = "";
            string txtAlias = "";
            string txtPass  = "";
            int    t        = 0;
            int    c        = 0;

            for (var i = 0; i < Globals.iAccountsToGenerate; i++)
            {
                Globals.bGenCooldown  = true;
                Globals.iGenCooldown += 15000;
                if (t == Globals.iThreads)
                {
                    delay(Globals.iThreadCooldwon * 1000);
                    t = 0;
                }
                t += 1;
                var Random  = new Random();
                var numberR = Random.Next(300, 800);
                //MessageBox.Show(Globals.iAccountsToGenerate.ToString());
                try
                {
                    Thread.Sleep(numberR); //prevents things
                    int _index = GenerateFunctions.newIndexID();
                    //HTMLObjects.sProxy
                    if (Globals.SelectedGame == "")
                    {
                        var accCreator = new GenerateThread(UI, txtEmail, txtAlias, txtPass, _index, HTMLObjects.sProxy, _provider, -1, HTMLObjects.bGameAdd, HTMLObjects.bSteamGuard, HTMLObjects.bUseProxy);
                        //MessageBox.Show(-1 + "");
                        var thread = new Thread(accCreator.Run);
                        thread.Start();
                    }
                    else
                    {
                        int d = Int32.Parse(Regex.Split(Globals.SelectedGame, ",")[1]);
                        //MessageBox.Show(d + "");
                        var accCreator = new GenerateThread(UI, txtEmail, txtAlias, txtPass, _index, HTMLObjects.sProxy, _provider, d, HTMLObjects.bGameAdd, HTMLObjects.bSteamGuard, HTMLObjects.bUseProxy);
                        var thread     = new Thread(accCreator.Run);
                        thread.Start();
                    }
                }
                catch (Exception d) { MessageBox.Show(d.InnerException.Message + Environment.NewLine + d.InnerException.StackTrace); return; }
            }
        }
예제 #3
0
        public async void Run()
        {
            bool RandomAlias = true;
            bool RandomPass  = true;
            bool RandomMail  = true;

            if (RandomAlias)
            {
                _alias = GetRandomString(12, false);
            }
            else
            {
                _alias = _enteredAlias + _index;
            }
            if (RandomPass)
            {
                _pass = GetRandomString(24, true);
            }
            if (RandomMail)
            {
                MailHandler.Provider = _provider;
            }
            _mail = GetRandomString(12, false) + _provider; //"@tmempail.tw"; //+ _provider;

            GenerateFunctions.AddAccountToTable(_mail, _alias, _pass, _index);
            _status = "Creating account...";
            UpdateStatus();

            StartCreation();

            bool verified;

            do
            {
                await Task.Delay(5000);

                VerifyMail();
                verified = CheckIfMailIsVerified();
                UpdateStatus();
                await Task.Delay(2000);
            } while (!verified);
            UpdateStatus();



            FinishCreation();
            UpdateStatus();

            if (_steamGuard)
            {
                _status = "Disabling Steamguard";
                UpdateStatus();
                //do else
                SteamGuard();
            }

            if (_game != -1 && _gameAdd)
            {
                _status = "Adding Games";
                UpdateStatus();
                //do else
                addGame();
            }

            WriteAccountIntoFile();

            _status = "Finished";
            UpdateStatus();
        }