推荐:如何用asp程序处理数据库被挂马的问题数据库被挂马后很多人不知怎么处理,或处理的不完全,导致网页打开后仍有木马,本文介绍一种比较好的处理办法,供大家参考。 第一步 :为现有数据库做好备份。 第二步 :执行如下ASP文件,就可以去掉数据库当中的JS木马。(注:conn.asp从略) ’这里放入JS木
这是一个正常的网页文件| html> <head> <metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/> <title>新闻图片轮换</title> </head> <body> <!--#Includefile=diaoyong.asp--> </body> </html> |
任何网页只要调用下面这个文件(diaoyong.asp)就可以了,所用flash文件在附件里面。
| <% ’新闻图片轮换 Db=../Data/Data.Asp Setconn=Server.CreateObject(ADODB.Connection) Connstr=Provider=Microsoft.Jet.OLEDB.4.0;DataSource=&Server.MapPath(db) Conn.OpenConnstr sql=selecttop5*from[Music_List_Tupian_System]whereIswNumsSex= ’轮换图片 ’orderbyIswNumsIDdesc setrs=server.createobject(adodb.recordset) rs.opensql,conn,1,1 ifnotrs.eofthen k=1 Num_total=rs.recordcount fori=1to5 ifi>Num_totalthenexitfor ifi=1then imgUrl11=Img/&rs(IswNumsPhoto) iflen(rs(IswNumsUser))>=18then imgtext11=left(rs(IswNumsUser),18)&... else imgtext11=rs(IswNumsUser) endif imgLink11=rs(IswNumsClass) endif ifi=2then imgUrl22=Img/&rs(IswNumsPhoto) iflen(rs(IswNumsUser))>=18then imgtext22=left(rs(IswNumsUser),18)&... else imgtext22=rs(IswNumsUser) endif imgLink22=rs(IswNumsClass) endif ifi=3then imgUrl33=Img/&rs(IswNumsPhoto) iflen(rs(IswNumsUser))>=18then imgtext33=left(rs(IswNumsUser),18)&... else imgtext33=rs(IswNumsUser) endif imgLink33=rs(IswNumsClass) endif ifi=4then imgUrl44=Img/&rs(IswNumsPhoto) iflen(rs(IswNumsUser))>=18then imgtext44=left(rs(IswNumsUser),18)&... else imgtext44=rs(IswNumsUser) endif imgLink44=rs(IswNumsClass) endif ifi=5then imgUrl55=Img/&rs(IswNumsPhoto) iflen(rs(IswNumsUser))>=18then imgtext55=left(rs(IswNumsUser),18)&... else imgtext55=rs(IswNumsUser) endif imgLink55=rs(IswNumsClass) endif rs.movenext k=k+1 next else response.write暂时没有数据! endif %> |
分享:详解asp之FileSystemObject对象指定的驱动器存在吗? 本例演示如何使用DriveExists方法来探测某个驱动器是否存在。 代码如下: html body % Setfs=Server.CreateObject(Scripting.FileSystemObject) iffs.driveexists(c:)=truethen Response.Write(驱动器c:存在。) Else Response.Wr
共2页上一页12下一页