MCPcopy
hub / github.com/Xyntax/POC-T / initEngine

Function initEngine

lib/controller/engine.py:17–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def 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
35def singleMode():

Callers 1

runFunction · 0.85

Calls 3

getTerminalSizeFunction · 0.90
setThreadLockFunction · 0.85
successMethod · 0.80

Tested by

no test coverage detected