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

Method executeNetLocalGroup

workflow/executor_network.go:91–99  ·  view source on GitHub ↗

executeNetLocalGroup enumerates local groups on a specific system

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

Source from the content-addressed store, hash-verified

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) {
92 target, _ := action.Parameters["target"].(string) // optional
93 groupName, _ := action.Parameters["group_name"].(string) // optional
94 resp, err := client.NetLocalGroup(ctx, beaconID, target, groupName)
95 if err != nil {
96 return "", err
97 }
98 return e.waitForOutput(ctx, client, resp.TaskID)
99}
100
101// executeNetGroup enumerates groups on a domain controller
102func (e *Executor) executeNetGroup(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