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

Method executeNetLogons

workflow/executor_network.go:81–88  ·  view source on GitHub ↗

executeNetLogons lists logged in users on a target

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

Source from the content-addressed store, hash-verified

79
80// executeNetLogons lists logged in users on a target
81func (e *Executor) executeNetLogons(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
82 target, _ := action.Parameters["target"].(string) // optional
83 resp, err := client.NetLogons(ctx, beaconID, target)
84 if err != nil {
85 return "", err
86 }
87 return e.waitForOutput(ctx, client, resp.TaskID)
88}
89
90// executeNetLocalGroup enumerates local groups on a specific system
91func (e *Executor) executeNetLocalGroup(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