mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 15:10:43 +08:00
22 lines
621 B
Java
22 lines
621 B
Java
import org.mvel2.MVEL;
|
|
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.annotation.WebServlet;
|
|
import javax.servlet.http.HttpServlet;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* @author ReaJason
|
|
* @since 2024/12/14
|
|
*/
|
|
@WebServlet("/mvel")
|
|
public class MVELServlet extends HttpServlet {
|
|
@Override
|
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
|
String data = req.getParameter("data");
|
|
resp.getWriter().println(MVEL.eval(data));
|
|
}
|
|
}
|