修改日志输出

This commit is contained in:
shmilylty
2019-08-03 22:34:59 +08:00
parent 3635f8f0a6
commit 2f1c1fed97
6 changed files with 14 additions and 28 deletions
+2 -4
View File
@@ -37,15 +37,15 @@ class CheckCDX(Module):
"""
类执行入口
"""
self.begin()
logger.log('DEBUG', f'开始执行{self.source}检查{self.domain}域的crossdomain.xml')
self.check()
self.save_json()
self.gen_result()
self.save_db()
rx_queue.put(self.results)
logger.log('DEBUG', f'结束执行{self.source}检查{self.domain}域的crossdomain.xml')
self.finish()
def do(domain, rx_queue): # 统一入口名字 方便多线程调用
@@ -56,8 +56,6 @@ def do(domain, rx_queue): # 统一入口名字 方便多线程调用
"""
check = CheckCDX(domain)
check.run(rx_queue)
logger.log('INFOR', f'{check.source}模块耗时{check.elapsed}秒发现子域{len(check.subdomains)}')
logger.log('DEBUG', f'{check.source}模块发现的子域 {check.subdomains}')
if __name__ == '__main__':