executeNetUser lists users on a system
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 31 | target, _ := action.Parameters["target"].(string) // optional |
| 32 | resp, err := client.NetUser(ctx, beaconID, target) |
| 33 | if err != nil { |
| 34 | return "", err |
| 35 | } |
| 36 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 37 | } |
| 38 | |
| 39 | // executeNetUserDetail gets information about a specific user |
| 40 | func (e *Executor) executeNetUserDetail(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected