Example #1
0
        public static int attackhash(string[] passwords, IAttackMethod attackmethod, Func <string, string> hashfunction)
        {
            int got = 0;

            foreach (string password in passwords)
            {
                string str = attackmethod.attackhash(password, hashfunction);
                if (!str.Equals(""))
                {
                    got++;
                }
            }
            return(got);
        }
Example #2
0
        public static int attack(string[] passwords, IAttackMethod attackmethod)
        {
            int got = 0;

            foreach (string password in passwords)
            {
                string str = attackmethod.attack(password);
                if (!str.Equals(""))
                {
                    got++;
                }
            }
            return(got);
        }