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

Method executeSetSyscallMethod

workflow/executor_config.go:187–198  ·  view source on GitHub ↗

executeSetSyscallMethod sets the syscall method for the beacon

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

Source from the content-addressed store, hash-verified

185
186// executeSetSyscallMethod sets the syscall method for the beacon
187func (e *Executor) executeSetSyscallMethod(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
188 method, ok := action.Parameters["method"].(string)
189 if !ok {
190 return "", fmt.Errorf("method parameter required for set_syscall_method")
191 }
192
193 resp, err := client.SetSyscallMethod(ctx, beaconID, method)
194 if err != nil {
195 return "", err
196 }
197 return e.fireAndForget(resp.TaskID, "set syscall method "+method)
198}
199
200// ============================================================
201// Beacon Management Action Handlers

Callers 1

executeActionMethod · 0.95

Calls 1

fireAndForgetMethod · 0.95

Tested by

no test coverage detected