- 论坛徽章:
- 0
|
本帖最后由 zhblue 于 2010-09-03 21:28 编辑
手头有700Masp代码,两个问题。
1、感染某注入脚本 <iframe>
例: <iframE Width=1 name='5504' height=1></ifraMe><ifraMe width=1 naMe='5504' heIght=1></Iframe>
2、大量access链接打开后未关
有<!--#include file="include/conn.asp"-->
无 conn.close
自己凑合了一个,没敢用,请高手看看。
find . -name "*.asp" -exec fixasp.sh {} \;
fixasp.sh:- #!/bin/bash
- sed "s/<[iI][fF][rR][aA][Mm][eE].*<\/[iI][fF][rR][aA][Mm][eE]>//" $1 > $1.tmp
- mv $1.tmp $1
- if grep -q "include/conn.asp" $1 ;
- then
- if ! grep -q "conn.close" $1; then
- echo "<%conn.close%>" >> $1 ;
- fi;
- fi
复制代码 |
|