bruteforce-http-auth.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:bruteforce-http-auth 作者: erforschr 项目源码 文件源码
def run(self):

        while True:
            if self.count >= self.workers_number:
                break

            try:
                test = self.queue_logging.get()

                if test is None:
                    self.count += 1

                else:
                    if test['success']:
                        log.success('Authentication successful: Username: \"{}\" Password: \"{}\" URL: {}'.format(test['username'], test['password'], test['target']['url']))

                    else:
                        if self.verbose:
                            log.debug('Authentication failed: Username: \"{}\" Password: \"{}\" URL: {}'.format(test['username'], test['password'], test['target']['url']))

                    self.progress += 1

                    if self.progress % 10 == 0:
                        if self.verbose:
                            log.info('Progress : {}'.format(self.progress))
                        else:
                            log.info('Progress : {}'.format(self.progress), update=True)

            except Exception as e:
                traceback.print_exc()
                log.error('WorkerLogging => {} : {}'.format(type(e), e))

        log.info('Progress : {} (end)'.format(self.progress))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号