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()
评论列表
文章目录