(output, osName string, req *implantpb.Request)
| 98 | } |
| 99 | |
| 100 | func 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 |
nothing calls this directly
no test coverage detected