数学建模社区-数学中国

标题: 从容应对ASP木马追捕 [打印本页]

作者: 韩冰    时间: 2004-10-6 02:16
标题: 从容应对ASP木马追捕

网上盛传ASP木马追捕,据说有位叫blueeyes的大侠编制了一ASP代码检查你的网站中是否含有可疑ASP..

6 u9 l* [" b. y) O& N' s8 k

(ASP木马) ) ?( @, a5 m* ]" z 你看 : : i# w$ m- I2 r; v: Z( b8 J   if instr(filetxt,"scripting.filesystemobject")>0 then fso = yes else fso = no $ F, A) }- {/ W    if fso = yes then # c' d+ H, ^; F; N2 |+ u; P" X       if instr(filetxt,"deletefolder")>0 or instr(filetxt,"delete")>0 then del =yes else del = no : L+ m T$ v" c9 h+ Q: p7 Q       if instr(filetxt,"opentextfile")>0 or instr(filetxt,"createtextfile")>0 or instr(filetxt,"openastextstream")>0 then create =yes else create = no I* ^$ |3 {3 X      if instr(filetxt,"move")>0 then mov = yes else mov = no * z" @& o" C: s% F. Y/ r; f    end if 2 {, P: S, |2 L4 r9 f. O   if instr(filetxt,"adodb.stream")>0 then stream = yes else stream = no - n! m% U% ]2 x1 n    if instr(filetxt,"shell.application")>0 then shell = yes else shell = no , W) k# P& h9 Y    if instr(filetxt,"wscript")>0 then ws = yes else ws = no 0 v* u" A: \2 ]6 l    if instr(filetxt,"xmlhttp")>0 then xmlhttp =yes else xmlhttp = no - I# N9 D S+ _+ L: b; w   if instr(filetxt,"vbscript.encode")> 0 or instr(filetxt,"javascript.encode")> 0 then encode = yes else encode = no $ I/ b- O6 L7 N; F% q ]0 D    filetxt = "" ' j, R! T( e' Y/ g! O8 L( K! v呵呵,厉害!!! 5 ?& E y8 ^9 y1 b 咱们的饭碗真的要被砸了吗? - A( c# @+ x. M: i1 l w; ^道高一尺;魔高一丈;看我的! 4 b8 y' Y( \' c它不是检查创建对象里的字符串吗?好!我来加个空值的变量:

# t1 l0 X! C% J( d- \$ Z, b! T " Z7 x# Z; c; f+ |' u2 k

set im=server.CreateObject("Scr"&b&"ipting.Dictionary") 1 }: q$ r# f: _; |; ~1 S" i8 U4 ^set lP=server.CreateObject("Ado"&l&"db.Stream") & u9 p# x5 d4 q& O0 W6 G7 D" } set fB=Server.CreateObject("Scr"&u&"ipting.FileSystemObject") * g+ |. e7 X. Z3 I$ U, c F Set tN=Server.CreateObject("WSC"&e&"RIPT.NETWORK") ( C7 @, ]6 d! U5 \7 F* zset sa=server.createobject("she"&e&"ll.application") + h2 _/ V" [' I5 q1 P set TV=server.createobject("WSC"&y&"RIPT.shell")

- E4 w( e, h$ q

哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦! 8 r$ d, J% u! h# a. t- k8 |- a别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的 7 h( B$ [0 X* y W中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶 9 x3 j/ s5 P% h8 O" O0 P9 v! { BTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了 ( D3 R h: \+ H& l6 I _0 b5 {4 x 让蓝眼睛望马兴叹吧!!!....over


作者: ilikenba    时间: 2004-10-19 21:10
是不是可以找到CreateObject,然后将他的括号里面的东西付给一个变量运行后再判断!




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5