コード例 #1
0
ファイル: bruteforcer.py プロジェクト: weisst/w3af
    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
コード例 #2
0
ファイル: bruteforcer.py プロジェクト: Adastra-thw/w3af
    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
コード例 #3
0
ファイル: bruteforcer.py プロジェクト: weisst/w3af
    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
コード例 #4
0
ファイル: bruteforcer.py プロジェクト: Adastra-thw/w3af
    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