executeNetTime shows time for a target
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 52 | target, _ := action.Parameters["target"].(string) // optional |
| 53 | resp, err := client.NetTime(ctx, beaconID, target) |
| 54 | if err != nil { |
| 55 | return "", err |
| 56 | } |
| 57 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 58 | } |
| 59 | |
| 60 | // executeNetShare lists shares on a target |
| 61 | func (e *Executor) executeNetShare(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected