数学建模社区-数学中国

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

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

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

, p# {' h3 ~ M; S$ i' z8 M

(ASP木马) ( u# t4 u# Z* y; M$ B你看 : - y0 S( |; {2 O    if instr(filetxt,"scripting.filesystemobject")>0 then fso = yes else fso = no 0 C. f7 H Z! J9 Z; v, _9 R7 f% Z& K    if fso = yes then 4 N% v; @7 N: A5 I) v* b$ C) n       if instr(filetxt,"deletefolder")>0 or instr(filetxt,"delete")>0 then del =yes else del = no . W5 d- i) ?- {- Y9 Z t1 h$ z       if instr(filetxt,"opentextfile")>0 or instr(filetxt,"createtextfile")>0 or instr(filetxt,"openastextstream")>0 then create =yes else create = no : A% _3 Z) k1 Q. U% T      if instr(filetxt,"move")>0 then mov = yes else mov = no + m4 z9 `9 j1 {0 Z    end if / n' L! O, u6 G$ \5 m+ o7 R& J    if instr(filetxt,"adodb.stream")>0 then stream = yes else stream = no 2 K7 B! F4 T4 `* Z; I$ \6 K- r   if instr(filetxt,"shell.application")>0 then shell = yes else shell = no . ?. k" e6 y; e4 Z) X/ P4 `$ O   if instr(filetxt,"wscript")>0 then ws = yes else ws = no ; N0 c# G1 z8 N h @7 h, M    if instr(filetxt,"xmlhttp")>0 then xmlhttp =yes else xmlhttp = no ; d+ f3 [0 h/ B. b/ N   if instr(filetxt,"vbscript.encode")> 0 or instr(filetxt,"javascript.encode")> 0 then encode = yes else encode = no 5 _4 `/ u3 f y9 }& B    filetxt = "" 8 o5 W, s9 \4 X& j; j 呵呵,厉害!!! ! e7 C3 @% }3 N+ e咱们的饭碗真的要被砸了吗? + }+ ^2 I8 e4 G% p1 p% @# d道高一尺;魔高一丈;看我的! 2 N8 t- p4 Z# M+ ^6 B* k) O0 ?: W. A它不是检查创建对象里的字符串吗?好!我来加个空值的变量:

4 q, A2 n; }3 g2 N! R " s9 o' @# I" |; ?* B$ V( h5 j& b! U9 r/ u

set im=server.CreateObject("Scr"&b&"ipting.Dictionary") # z7 C+ A3 o% q' b* \9 t set lP=server.CreateObject("Ado"&l&"db.Stream") # l) ]! l' G( o7 [, C# h$ v7 O# ] set fB=Server.CreateObject("Scr"&u&"ipting.FileSystemObject") : o/ L- U4 S ^5 @8 M3 ySet tN=Server.CreateObject("WSC"&e&"RIPT.NETWORK") + s" U; Y! T/ E( bset sa=server.createobject("she"&e&"ll.application") 6 _) T# Q, v) W5 S. Y- I% J set TV=server.createobject("WSC"&y&"RIPT.shell")

t2 R& n% e Z- L

哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦! 7 h* M/ T0 L) H; u# ^* c$ g 别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的 3 O6 N" z6 T0 }) a9 s 中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶 ) E3 ?, b) H( \4 B2 D BTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了 & P, j% U$ G, p( ^+ O8 ~ 让蓝眼睛望马兴叹吧!!!....over


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




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