tasks.py 文件源码

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

项目:sec-scan-agent_v1.0 作者: Canbing007 项目源码 文件源码
def run_task_in_gevent(url_list, poc_file_dict):
    poc = Poc_Launcher()
    pool = Pool(100)
    for target in url_list:
        for poc_file in poc_file_dict:
            if target and poc_file:
                try:
                    target = fix_domain(target)
                except Exception as e:
                    target = fix_host(target)
                #print target,poc_file,"^^^^^^^^"
                pool.add(gevent.spawn(poc.poc_verify, target, poc_file))
    pool.join()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号