secondArg returns the second argument from the request, or empty string.
(req *implantpb.Request)
| 25 | |
| 26 | // secondArg returns the second argument from the request, or empty string. |
| 27 | func secondArg(req *implantpb.Request) string { |
| 28 | if req != nil && len(req.Args) > 1 { |
| 29 | return req.Args[1] |
| 30 | } |
| 31 | return "" |
| 32 | } |
| 33 | |
| 34 | // isWindows returns true if osName indicates Windows. |
| 35 | func isWindows(osName string) bool { |
no outgoing calls