MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / secondArg

Function secondArg

internal/bridge/module_shell_adapters.go:27–32  ·  view source on GitHub ↗

secondArg returns the second argument from the request, or empty string.

(req *implantpb.Request)

Source from the content-addressed store, hash-verified

25
26// secondArg returns the second argument from the request, or empty string.
27func 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.
35func isWindows(osName string) bool {

Callers 5

cpCommandFunction · 0.85
mvCommandFunction · 0.85
chmodCommandFunction · 0.85
TestSecondArg_AdapterFunction · 0.85
TestSecondArgFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestSecondArg_AdapterFunction · 0.68
TestSecondArgFunction · 0.68