executeNetLogons lists logged in users on a target
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 82 | target, _ := action.Parameters["target"].(string) // optional |
| 83 | resp, err := client.NetLogons(ctx, beaconID, target) |
| 84 | if err != nil { |
| 85 | return "", err |
| 86 | } |
| 87 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 88 | } |
| 89 | |
| 90 | // executeNetLocalGroup enumerates local groups on a specific system |
| 91 | func (e *Executor) executeNetLocalGroup(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected