コード例 #1
0
        /// <summary>
        /// Main part of the program
        /// create a reference to PasswordList and AttackLogic
        /// Initiates the brute force attack
        /// </summary>
        private void AttackMainSequence()
        {
            PasswordList passwordList = new PasswordList();
            AttackLogic  attackLogic  = new AttackLogic();

            StartBruteForce(passwordList, attackLogic);
        }
コード例 #2
0
        /// <summary>
        /// The main attack sequence
        /// </summary>
        /// <param name="passwordList">a reference to an isntance of class containing the list to use for the brute force</param>
        /// <param name="attackLogic">a reference to an instance of the class containing the attack logic</param>
        private void StartBruteForce(PasswordList passwordList, AttackLogic attackLogic)
        {
            bool doingAttack;

            do
            {
                attackLogic.MainAttackAnswerParser();
                attackLogic.CountDown();
                doingAttack = attackLogic.DoAttack(passwordList);
            }while (doingAttack);

            bool redo = AttackRedo();

            if (redo)
            {
                StartBruteForce(passwordList, attackLogic);
            }
        }