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

Function pwdCommand

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

Source from the content-addressed store, hash-verified

118}
119
120func pwdCommand(osName string, req *implantpb.Request) string {
121 if isWindows(osName) {
122 return "cd"
123 }
124 return "pwd"
125}
126
127func catCommand(osName string, req *implantpb.Request) string {
128 path := firstArg(req)

Callers 2

TestPwd_Command_LinuxFunction · 0.85
TestPwd_Command_WindowsFunction · 0.85

Calls 1

isWindowsFunction · 0.85

Tested by 2

TestPwd_Command_LinuxFunction · 0.68
TestPwd_Command_WindowsFunction · 0.68