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

Method executeNetDomain

workflow/executor_network.go:11–17  ·  view source on GitHub ↗

executeNetDomain gets the current domain

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

Source from the content-addressed store, hash-verified

9
10// executeNetDomain gets the current domain
11func (e *Executor) executeNetDomain(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {
12 resp, err := client.NetDomain(ctx, beaconID)
13 if err != nil {
14 return "", err
15 }
16 return e.waitForOutput(ctx, client, resp.TaskID)
17}
18
19// executeNetView lists domain hosts
20func (e *Executor) executeNetView(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