Exemplo n.º 1
0
    def generator(self):
        '''
        TODO: I need a way to calculate the __len__ of this generator in order
              to avoid the "iterable = list(iterable)" in pool.py
        '''
        pwd_chain = chain(self._special_passwords(), self._read_pwd_file())

        for pwd in unique_everseen(pwd_chain):
            yield pwd

            if self.l337_p4sswd:
                for pwd in unique_everseen(make_leet(pwd)):
                    yield pwd
Exemplo n.º 2
0
    def generator(self):
        '''
        TODO: I need a way to calculate the __len__ of this generator in order
              to avoid the "iterable = list(iterable)" in pool.py
        '''
        pwd_chain = chain(self._special_passwords(),
                          self._read_pwd_file())

        for pwd in unique_everseen(pwd_chain):
            yield pwd

            if self.l337_p4sswd:
                for pwd in unique_everseen(make_leet(pwd)):
                    yield pwd
Exemplo n.º 3
0
    def generator(self):
        '''
        :return: A tuple with user and password strings.

        TODO: I need a way to calculate the __len__ of this generator in order
              to avoid the "iterable = list(iterable)" in pool.py
        '''
        for user, pwd in self._combo():
            yield user, pwd

        user_chain = chain(self._special_users(), self._user_from_file())

        for user in unique_everseen(user_chain):

            if self.pass_eq_user:
                yield user, user

            yield user, ''

            for pwd in self._new_password_bruteforcer():
                yield user, pwd
Exemplo n.º 4
0
    def generator(self):
        '''
        :return: A tuple with user and password strings.

        TODO: I need a way to calculate the __len__ of this generator in order
              to avoid the "iterable = list(iterable)" in pool.py
        '''
        for user, pwd in self._combo():
            yield user, pwd

        user_chain = chain(self._special_users(),
                           self._user_from_file())

        for user in unique_everseen(user_chain):

            if self.pass_eq_user:
                yield user, user

            yield user, ''

            for pwd in self._new_password_bruteforcer():
                yield user, pwd