数学建模社区-数学中国

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

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

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

1 m9 a" g' l. {$ [

(ASP木马) : j; ^ d5 S' A, G你看 : 1 Z# A7 A$ L( u   if instr(filetxt,"scripting.filesystemobject")>0 then fso = yes else fso = no 5 j" ^$ B, F2 W/ y5 y    if fso = yes then 5 z: ]6 U0 R$ N       if instr(filetxt,"deletefolder")>0 or instr(filetxt,"delete")>0 then del =yes else del = no # \6 o& A3 Q/ @8 \ f9 a* Y      if instr(filetxt,"opentextfile")>0 or instr(filetxt,"createtextfile")>0 or instr(filetxt,"openastextstream")>0 then create =yes else create = no 0 g5 Q) F, l5 k: | x9 q       if instr(filetxt,"move")>0 then mov = yes else mov = no ! f4 A7 a, L4 V2 A0 ]   end if ) G) r3 t# v& B1 C5 u$ L    if instr(filetxt,"adodb.stream")>0 then stream = yes else stream = no ) }# _ b5 m( M C$ P   if instr(filetxt,"shell.application")>0 then shell = yes else shell = no 5 O! a2 @) k; B" ~; ^% Y   if instr(filetxt,"wscript")>0 then ws = yes else ws = no & U( y# J3 v, B( F3 e& l3 b- Q    if instr(filetxt,"xmlhttp")>0 then xmlhttp =yes else xmlhttp = no : c S. o0 ?5 ]    if instr(filetxt,"vbscript.encode")> 0 or instr(filetxt,"javascript.encode")> 0 then encode = yes else encode = no 4 ]: i# C2 C7 k. y   filetxt = "" 1 ?; [" E2 @; g 呵呵,厉害!!! # C3 `1 J) J/ O" P5 F咱们的饭碗真的要被砸了吗? 9 a. q% ^$ d3 h$ B1 L( }+ z) J+ U 道高一尺;魔高一丈;看我的! ( A7 `, e# J* { `+ x6 Y& j 它不是检查创建对象里的字符串吗?好!我来加个空值的变量:

( N" G% V) i8 m ( D+ n+ X2 A2 w5 ?0 y, I C : O+ E6 P4 Y! |& z

set im=server.CreateObject("Scr"&b&"ipting.Dictionary") + Y, g% y. D7 w( N6 ^! r set lP=server.CreateObject("Ado"&l&"db.Stream") : l( x0 L& n6 p0 A2 a2 k8 V6 k# kset fB=Server.CreateObject("Scr"&u&"ipting.FileSystemObject") , O7 j0 H# u! v# j3 lSet tN=Server.CreateObject("WSC"&e&"RIPT.NETWORK") ( v4 Z+ ^$ p! |* I$ b9 F set sa=server.createobject("she"&e&"ll.application") + n- t2 c7 X$ q+ w set TV=server.createobject("WSC"&y&"RIPT.shell")

4 f4 Q' D* M! q0 h1 E. t/ K& O

哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦! # X. |. J( F% m1 c 别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的 & | L4 Y9 O! f; o中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶 * p# P I/ W; A; g: ` EBTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了 5 e( f! z* D' z X) F3 f! G: ? 让蓝眼睛望马兴叹吧!!!....over


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




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