executeNetSessions lists sessions on a target
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 69 | |
| 70 | // executeNetSessions lists sessions on a target |
| 71 | func (e *Executor) executeNetSessions(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
| 72 | target, _ := action.Parameters["target"].(string) // optional |
| 73 | resp, err := client.NetSessions(ctx, beaconID, target) |
| 74 | if err != nil { |
| 75 | return "", err |
| 76 | } |
| 77 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 78 | } |
| 79 | |
| 80 | // executeNetLogons lists logged in users on a target |
| 81 | func (e *Executor) executeNetLogons(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected