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

Method executeNetDomainControllers

workflow/executor_network.go:123–130  ·  view source on GitHub ↗

executeNetDomainControllers lists hosts from the Domain Controllers group on the specified domain

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

Source from the content-addressed store, hash-verified

121
122// executeNetDomainControllers lists hosts from the Domain Controllers group on the specified domain
123func (e *Executor) executeNetDomainControllers(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
124 domain, _ := action.Parameters["domain"].(string) // optional
125 resp, err := client.NetDomainControllers(ctx, beaconID, domain)
126 if err != nil {
127 return "", err
128 }
129 return e.waitForOutput(ctx, client, resp.TaskID)
130}
131
132// executeNetDcList lists domain controllers for the specified domain
133func (e *Executor) executeNetDcList(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