fix: SpringBoot Tomcat Shell Inject failed

This commit is contained in:
ReaJason
2025-04-23 00:10:48 +08:00
parent a5a5780eac
commit d8079e5d0f
6 changed files with 40 additions and 23 deletions
@@ -1,9 +1,7 @@
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
/**
@@ -14,9 +12,11 @@ public class TestServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
req.getMethod();
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
req.getMethod();
}
}