executeNetLocalGroup enumerates local groups on a specific system
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 92 | target, _ := action.Parameters["target"].(string) // optional |
| 93 | groupName, _ := action.Parameters["group_name"].(string) // optional |
| 94 | resp, err := client.NetLocalGroup(ctx, beaconID, target, groupName) |
| 95 | if err != nil { |
| 96 | return "", err |
| 97 | } |
| 98 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 99 | } |
| 100 | |
| 101 | // executeNetGroup enumerates groups on a domain controller |
| 102 | func (e *Executor) executeNetGroup(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected