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

Method executeNetView

workflow/executor_network.go:20–27  ·  view source on GitHub ↗

executeNetView lists domain hosts

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

Source from the content-addressed store, hash-verified

18
19// executeNetView lists domain hosts
20func (e *Executor) executeNetView(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
21 domain, _ := action.Parameters["domain"].(string) // optional
22 resp, err := client.NetView(ctx, beaconID, domain)
23 if err != nil {
24 return "", err
25 }
26 return e.waitForOutput(ctx, client, resp.TaskID)
27}
28
29// executeNetUser lists users on a system
30func (e *Executor) executeNetUser(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