executeNetGroup enumerates groups on a domain controller
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 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) { |
| 103 | target, _ := action.Parameters["target"].(string) // optional |
| 104 | groupName, _ := action.Parameters["group_name"].(string) // optional |
| 105 | resp, err := client.NetGroup(ctx, beaconID, target, groupName) |
| 106 | if err != nil { |
| 107 | return "", err |
| 108 | } |
| 109 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 110 | } |
| 111 | |
| 112 | // executeNetDomainTrusts lists domain trusts for the specified domain |
| 113 | func (e *Executor) executeNetDomainTrusts(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected