usezs.asp和top100.asp里面修改的内容,奇迹私服,传奇私服

usezs.asp和top100.asp里面修改的内容,奇迹私服,传奇私服
发布时间:2005-9-6 人气:: 作者::佚名
文章来源:不详
支持传奇发展,立即购 买会员

先声明 全部不是原创 呵呵 都是翻以前贴搞得
另外关于top100.asp的漏洞的补救 感谢斑竹field给我提供的解决方案
呵呵 不过他不会介意我共享的拉


usezs.asp 这个漏洞已经很多人知道了 我们这边一个网把的都会利用

解决办法

在这个asp里面找到

if instr(accountname,"")<>0 then response.end
if instr(accountname,"=")<>0 then response.end
if instr(accountname,"%")<>0 then response.end
if instr(accountname,"&")<>0 then response.end

后面添加

if instr(password,"")<>0 then response.end
if instr(password,"=")<>0 then response.end
if instr(password,"%")<>0 then response.end
if instr(password,"&")<>0 then response.end


完整的是

if instr(accountname,"")<>0 then response.end-----------------对账号的判断
if instr(accountname,"=")<>0 then response.end
if instr(accountname,"%")<>0 then response.end
if instr(accountname,"&")<>0 then response.end
if instr(password,"")<>0 then response.end---------------------------对密码的判断
if instr(password,"=")<>0 then response.end----------------------通常是没有对密码判断的
if instr(password,"%")<>0 then response.end
if instr(password,"&")<>0 then response.end


-----------------------------------------------------------
top100.asp的漏洞

漏洞是没有对job和sx的判断
在你的top100.asp前面加入

<%
set rs=server.createobject("adodb.recordset")
job=request("job")
sx=request("sx")
hk=0
if instr(job,"")<>0 then hk=1
if instr(job,"=")<>0 then hk=1
if instr(job,"%")<>0 then hk=1
if len(job)>2 then hk=1
if instr(sx,"")<>0 then hk=1
if instr(sx,"=")<>0 then hk=1
if instr(sx,"%")<>0 then hk=1
if len(sx)>9 then hk=1
if hk=1 then
response.write "<script language=javascript>alert(\n\n请不要尝试任何入侵方式!);history.back()</script>"
response.end
end if
%>

ok了

 

 

友情提示:

炎黄网络--国内最早的传奇私服之一!新开传奇私服、网通传奇私服、电信传奇私服,尽在炎黄网络

传 说 自 炎 黄 启 始 ,利 刃 开 天 地 豪 情
篆 刻 下 不 朽 神 话 ,昂 扬 我 万 世 图 腾

  • 上一篇文章:

  • 下一篇文章:
  • 关于好多网友提出…

  • 让[守卫]随机说些…

  • 添加帐号方法,奇迹…

  • 服务器报错的一些…

  • 手动添加帐号方法…

  • 有关MU最大在线人…

  • 进入后就断线的可…

  • 0.94修改连线人数…

  • 【更新卓越修改】…

  • 在商店中加入新物…

  •