MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / awaitTaskResult

Function awaitTaskResult

internal/bridge/commands.go:82–85  ·  view source on GitHub ↗

awaitTaskResult waits on the per-task channel for a result. The channel is dedicated to this task, so no taskID filtering is needed.

(ch <-chan *sessions.CommandResult, _ uint32)

Source from the content-addressed store, hash-verified

80// awaitTaskResult waits on the per-task channel for a result.
81// The channel is dedicated to this task, so no taskID filtering is needed.
82func awaitTaskResult(ch <-chan *sessions.CommandResult, _ uint32) (*sessions.CommandResult, bool) {
83 result, ok := <-ch
84 return result, ok
85}
86
87// acquireShellSession waits for the session and picks a shell tool.
88// On failure it marks the task as failed and returns nil.

Callers 8

handleDirectUploadMethod · 0.85
executeChunksMethod · 0.85
enqueueAndAwaitFunction · 0.85
handleDirectDownloadMethod · 0.85
probeAndDownloadMethod · 0.85
waitForReadResultMethod · 0.85
executeSingleShellMethod · 0.85
executeChunksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected