()
| 15 | |
| 16 | |
| 17 | def initEngine(): |
| 18 | th.thread_mode = True if conf.ENGINE is ENGINE_MODE_STATUS.THREAD else False |
| 19 | th.module_name = conf.MODULE_NAME |
| 20 | th.f_flag = conf.FILE_OUTPUT |
| 21 | th.s_flag = conf.SCREEN_OUTPUT |
| 22 | th.output = conf.OUTPUT_FILE_PATH |
| 23 | th.thread_count = th.threads_num = th.THREADS_NUM |
| 24 | th.single_mode = conf.SINGLE_MODE |
| 25 | th.scan_count = th.found_count = 0 |
| 26 | th.console_width = getTerminalSize()[0] - 2 |
| 27 | th.is_continue = True |
| 28 | th.found_single = False |
| 29 | th.start_time = time.time() |
| 30 | setThreadLock() |
| 31 | msg = 'Set the number of concurrent: %d' % th.threads_num |
| 32 | logger.success(msg) |
| 33 | |
| 34 | |
| 35 | def singleMode(): |
no test coverage detected