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

Method executeNetSessions

workflow/executor_network.go:71–78  ·  view source on GitHub ↗

executeNetSessions lists sessions on a target

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

Source from the content-addressed store, hash-verified

69
70// executeNetSessions lists sessions on a target
71func (e *Executor) executeNetSessions(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
72 target, _ := action.Parameters["target"].(string) // optional
73 resp, err := client.NetSessions(ctx, beaconID, target)
74 if err != nil {
75 return "", err
76 }
77 return e.waitForOutput(ctx, client, resp.TaskID)
78}
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) {

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected