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

Method executeNetTime

workflow/executor_network.go:51–58  ·  view source on GitHub ↗

executeNetTime shows time for a target

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

Source from the content-addressed store, hash-verified

49
50// executeNetTime shows time for a target
51func (e *Executor) executeNetTime(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
52 target, _ := action.Parameters["target"].(string) // optional
53 resp, err := client.NetTime(ctx, beaconID, target)
54 if err != nil {
55 return "", err
56 }
57 return e.waitForOutput(ctx, client, resp.TaskID)
58}
59
60// executeNetShare lists shares on a target
61func (e *Executor) executeNetShare(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