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

Function lsCommand

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

Source from the content-addressed store, hash-verified

87}
88
89func lsCommand(osName string, req *implantpb.Request) string {
90 path := firstArg(req)
91 if path == "" {
92 path = "."
93 }
94 if isWindows(osName) {
95 return fmt.Sprintf(`dir /a "%s"`, path)
96 }
97 return fmt.Sprintf(`ls -la "%s"`, path)
98}
99
100func lsResponse(output, osName string, req *implantpb.Request) *implantpb.Spite {
101 path := firstArg(req)

Callers 3

TestLs_Command_WindowsFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 3

TestLs_Command_WindowsFunction · 0.68