fast.py 文件源码

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

项目:moescan 作者: RicterZ 项目源码 文件源码
def _scan(self):
        while True:
            if self.queue.empty():
                break
            try:
                sub = self.queue.get_nowait()
                self.queue.task_done()
                domain = self.target + sub
                r = requests.head(domain, headers=header, timeout=5, stream=True)
                code = r.status_code
                if code in self.status_code:
                    logger.info('status code {} -> {}'.format(code, domain))

            except Exception, e:
                pass

        self.thread_count -= 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号