MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeRunNoOutput

Method executeRunNoOutput

workflow/executor_spawn.go:81–92  ·  view source on GitHub ↗

executeRunNoOutput executes a command without blocking or returning output

(ctx context.Context, client *csclient.Client, beaconID string, action Action)

Source from the content-addressed store, hash-verified

79
80// executeRunNoOutput executes a command without blocking or returning output
81func (e *Executor) executeRunNoOutput(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
82 cmd, ok := action.Parameters["command"].(string)
83 if !ok {
84 return "", fmt.Errorf("command parameter required for run_no_output")
85 }
86
87 resp, err := client.RunNoOutput(ctx, beaconID, cmd)
88 if err != nil {
89 return "", err
90 }
91 return e.fireAndForget(resp.TaskID, "execute (no output): "+cmd)
92}
93
94// --- Privilege Elevation ---
95

Callers 1

executeActionMethod · 0.95

Calls 1

fireAndForgetMethod · 0.95

Tested by

no test coverage detected