executeNetUserDetail gets information about a specific user
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 41 | target, _ := action.Parameters["target"].(string) // optional |
| 42 | user, _ := action.Parameters["user"].(string) // optional |
| 43 | resp, err := client.NetUserDetail(ctx, beaconID, target, user) |
| 44 | if err != nil { |
| 45 | return "", err |
| 46 | } |
| 47 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 48 | } |
| 49 | |
| 50 | // executeNetTime shows time for a target |
| 51 | func (e *Executor) executeNetTime(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected