executeSetSyscallMethod sets the syscall method for the beacon
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 185 | |
| 186 | // executeSetSyscallMethod sets the syscall method for the beacon |
| 187 | func (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 |
no test coverage detected