executeNetView lists domain hosts
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 18 | |
| 19 | // executeNetView lists domain hosts |
| 20 | func (e *Executor) executeNetView(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
| 21 | domain, _ := action.Parameters["domain"].(string) // optional |
| 22 | resp, err := client.NetView(ctx, beaconID, domain) |
| 23 | if err != nil { |
| 24 | return "", err |
| 25 | } |
| 26 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 27 | } |
| 28 | |
| 29 | // executeNetUser lists users on a system |
| 30 | func (e *Executor) executeNetUser(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected