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

Function catCommand

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

Source from the content-addressed store, hash-verified

125}
126
127func catCommand(osName string, req *implantpb.Request) string {
128 path := firstArg(req)
129 if isWindows(osName) {
130 return fmt.Sprintf(`type "%s"`, path)
131 }
132 return fmt.Sprintf(`cat "%s"`, path)
133}
134
135func envCommand(osName string, req *implantpb.Request) string {
136 if isWindows(osName) {

Callers 2

TestCat_Command_LinuxFunction · 0.85
TestCat_Command_WindowsFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 2

TestCat_Command_LinuxFunction · 0.68
TestCat_Command_WindowsFunction · 0.68