MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeNetGroup

Method executeNetGroup

workflow/executor_network.go:102–110  ·  view source on GitHub ↗

executeNetGroup enumerates groups on a domain controller

(ctx context.Context, client *csclient.Client, beaconID string, action Action)

Source from the content-addressed store, hash-verified

100
101// executeNetGroup enumerates groups on a domain controller
102func (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
113func (e *Executor) executeNetDomainTrusts(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected