韩冰 发表于 2004-10-6 02:16

从容应对ASP木马追捕

<P>网上盛传ASP木马追捕,据说有位叫blueeyes的大侠编制了一ASP代码检查你的网站中是否含有可疑ASP..</P>
<P>(ASP木马)
你看 :
   if instr(filetxt,"scripting.filesystemobject")&gt;0 then fso = yes else fso = no
   if fso = yes then
      if instr(filetxt,"deletefolder")&gt;0 or instr(filetxt,"delete")&gt;0 then del =yes else del = no
      if instr(filetxt,"opentextfile")&gt;0 or instr(filetxt,"createtextfile")&gt;0 or instr(filetxt,"openastextstream")&gt;0 then create =yes else create = no
      if instr(filetxt,"move")&gt;0 then mov = yes else mov = no
   end if
   if instr(filetxt,"adodb.stream")&gt;0 then stream = yes else stream = no
   if instr(filetxt,"shell.application")&gt;0 then shell = yes else shell = no
   if instr(filetxt,"wscript")&gt;0 then ws = yes else ws = no
   if instr(filetxt,"xmlhttp")&gt;0 then xmlhttp =yes else xmlhttp = no
   if instr(filetxt,"vbscript.encode")&gt; 0 or instr(filetxt,"javascript.encode")&gt; 0 then encode = yes else encode = no
   filetxt = ""
呵呵,厉害!!!
咱们的饭碗真的要被砸了吗?
道高一尺;魔高一丈;看我的!
它不是检查创建对象里的字符串吗?好!我来加个空值的变量: </P>


<P>set im=server.CreateObject("Scr"&amp;b&amp;"ipting.Dictionary")
set lP=server.CreateObject("Ado"&amp;l&amp;"db.Stream")
set fB=Server.CreateObject("Scr"&amp;u&amp;"ipting.FileSystemObject")
Set tN=Server.CreateObject("WSC"&amp;e&amp;"RIPT.NETWORK")
set sa=server.createobject("she"&amp;e&amp;"ll.application")
set TV=server.createobject("WSC"&amp;y&amp;"RIPT.shell") </P>
<P>哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦!
别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的
中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶
BTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了
让蓝眼睛望马兴叹吧!!!....over</P>

ilikenba 发表于 2004-10-19 21:10

是不是可以找到CreateObject,然后将他的括号里面的东西付给一个变量运行后再判断!
页: [1]
查看完整版本: 从容应对ASP木马追捕