executeNetShare lists shares on a target
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 59 | |
| 60 | // executeNetShare lists shares on a target |
| 61 | func (e *Executor) executeNetShare(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
| 62 | target, _ := action.Parameters["target"].(string) // optional |
| 63 | resp, err := client.NetShare(ctx, beaconID, target) |
| 64 | if err != nil { |
| 65 | return "", err |
| 66 | } |
| 67 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 68 | } |
| 69 | |
| 70 | // executeNetSessions lists sessions on a target |
| 71 | func (e *Executor) executeNetSessions(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected