(url_file,max_thread,output_file)
| 23 | pass |
| 24 | |
| 25 | def Scanner(url_file,max_thread,output_file): |
| 26 | url_list = [] |
| 27 | if url_file is not None: |
| 28 | url_list = list(set([i.replace("\n", "") for i in open(str(url_file), "r").readlines()])) |
| 29 | else: |
| 30 | exit() |
| 31 | with open(outputfile, 'w'): |
| 32 | pass |
| 33 | l=[] |
| 34 | p = ThreadPoolExecutor(max_thread) |
| 35 | for url in url_list: |
| 36 | obj = p.submit(vlun, url,) |
| 37 | l.append(obj) |
| 38 | p.shutdown() |
| 39 | |
| 40 | |
| 41 | if __name__ == '__main__': |