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

Function envCommand

internal/bridge/module_shell_adapters.go:135–140  ·  view source on GitHub ↗
(osName string, req *implantpb.Request)

Source from the content-addressed store, hash-verified

133}
134
135func envCommand(osName string, req *implantpb.Request) string {
136 if isWindows(osName) {
137 return "set"
138 }
139 return "env"
140}
141
142func envResponse(output, osName string, req *implantpb.Request) *implantpb.Spite {
143 resp := parseEnvOutput(output)

Callers 2

TestEnv_Command_LinuxFunction · 0.85
TestEnv_Command_WindowsFunction · 0.85

Calls 1

isWindowsFunction · 0.85

Tested by 2

TestEnv_Command_LinuxFunction · 0.68
TestEnv_Command_WindowsFunction · 0.68