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

Function resultHandler

lib/controller/engine.py:97–114  ·  view source on GitHub ↗
(status, payload)

Source from the content-addressed store, hash-verified

95
96
97def resultHandler(status, payload):
98 if status is False or status is POC_RESULT_STATUS.FAIL:
99 return
100 elif status is POC_RESULT_STATUS.RETRAY:
101 changeScanCount(-1)
102 th.queue.put(payload)
103 return
104 elif status is True or status is POC_RESULT_STATUS.SUCCESS:
105 msg = payload
106 else:
107 msg = str(status)
108 changeFoundCount(1)
109 if th.s_flag:
110 printMessage(msg)
111 if th.f_flag:
112 output2file(msg)
113 if th.single_mode:
114 singleMode()
115
116
117def setThreadLock():

Callers 1

scanFunction · 0.85

Calls 5

changeScanCountFunction · 0.85
changeFoundCountFunction · 0.85
printMessageFunction · 0.85
output2fileFunction · 0.85
singleModeFunction · 0.85

Tested by

no test coverage detected