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

Function lsResponse

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

Source from the content-addressed store, hash-verified

98}
99
100func lsResponse(output, osName string, req *implantpb.Request) *implantpb.Spite {
101 path := firstArg(req)
102 if path == "" {
103 path = "."
104 }
105 resp := parseLsOutput(output, osName, path)
106 return &implantpb.Spite{
107 Name: consts.ModuleLs,
108 Body: &implantpb.Spite_LsResponse{LsResponse: resp},
109 }
110}
111
112// ---------------------------------------------------------------------------
113// Simple text response modules

Callers

nothing calls this directly

Calls 2

firstArgFunction · 0.85
parseLsOutputFunction · 0.85

Tested by

no test coverage detected