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

Method executeNetUser

workflow/executor_network.go:30–37  ·  view source on GitHub ↗

executeNetUser lists users on a system

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

Source from the content-addressed store, hash-verified

28
29// executeNetUser lists users on a system
30func (e *Executor) executeNetUser(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
31 target, _ := action.Parameters["target"].(string) // optional
32 resp, err := client.NetUser(ctx, beaconID, target)
33 if err != nil {
34 return "", err
35 }
36 return e.waitForOutput(ctx, client, resp.TaskID)
37}
38
39// executeNetUserDetail gets information about a specific user
40func (e *Executor) executeNetUserDetail(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