MCPcopy Create free account
hub / github.com/FalconOpsLLC/goexec / argsRpcClient

Function argsRpcClient

cmd/args.go:132–152  ·  view source on GitHub ↗
(proto string, endpoint string)

Source from the content-addressed store, hash-verified

130}
131
132func argsRpcClient(proto string, endpoint string) func(cmd *cobra.Command, args []string) error {
133 return args(
134 argsTarget(proto),
135
136 func(cmd *cobra.Command, args []string) (err error) {
137 switch {
138 case rpcClient.Endpoint != "":
139 case rpcClient.Filter != "":
140 case endpoint == "":
141 rpcClient.UseEpm = true
142 default:
143 rpcClient.Endpoint = endpoint
144 }
145 rpcClient.Target = target
146 rpcClient.Credential = credential
147 rpcClient.Proxy = proxy
148
149 return rpcClient.Parse(context.TODO())
150 },
151 )
152}
153
154func argsOutput(methods ...string) func(cmd *cobra.Command, args []string) error {
155

Callers 4

tsch.goFile · 0.85
scmr.goFile · 0.85
dcom.goFile · 0.85
wmi.goFile · 0.85

Calls 3

argsFunction · 0.85
argsTargetFunction · 0.85
ParseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…