全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 5601|回复: 20

[疑问] 恶心的移动宽带,监控用户的HTTP访问,并在中间插入广告

[复制链接]
发表于 2013-1-12 23:34:25 | 显示全部楼层 |阅读模式
给狗日的移动宽带做个SEO

现在插入的是盛大的广告,以后万一狗日的没钱了,直接插网页木马可怎么办哦

PS: 多谢论坛里的404提醒,果然是FRAME嵌套,一开始没看到源代码还以为啥新技术

看看移动公司插的代码:
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  4. <title>&nbsp;</title>
  5. <style type="text/css">
  6. *{
  7.         margin:0;
  8.         padding:0;
  9. }
  10. #message{POSITION: fixed;_position:absolute; z-index:100; bottom:0;right:0;no-repeat left top;width:317px;}
  11. #dmsg_head{float:left; display:inline; font-size:12px;color:#FFFFFF;margin-left: 26px;margin-top: 6px;}
  12. #downmsgBar .close{float:right;width:11px;height:11px;margin-top:6px;display:block;margin-right:5px;}
  13. #downmsgBar{height:25px;}
  14. #dmsg_content{height:295px;overflow:hidden;}
  15. #dmsg_content p{position:absolute;left: 13px;top: 157px;}
  16. #dmsg_content .lb{padding:10px; font-size:16px; text-align:center;}
  17. #dmsg_content .lb a{color:#007cc1;font-weight:bold;}
  18. </style>
  19. <script type="text/javascript" src="http://211.140.10.212:3438/killrb.js"></script>
  20. <script type="text/javascript" language="javascript">
  21. //var location=document.location;
  22. //var location="";
  23. var $w = window;
  24. var $d = document;
  25. var $l = location;
  26. function $i(s){return $d.getElementById(s);}
  27. function $t(s){return $d.getElementsByTagName(s);}
  28. function $n(s){return $d.getElementsByName(s);}
  29. var js_div = {};
  30. js_div.client = (function(){
  31.         var t = {};
  32.         var b = navigator.userAgent.toLowerCase();
  33.         t.isOpera = (b.indexOf('opera') > -1);
  34.         t.isIE = (!t.isOpera && b.indexOf('msie') > -1);
  35.         t.isFF = (!t.isOpera &&!t.isIE&&b.indexOf('firefox') > -1);
  36.         return t;
  37. })();

  38. js_div.util = (function(){
  39.         var t = {};
  40.         t.addEvent = function(o,c,h){
  41.                 if(js_div.client.isIE){
  42.                         o.attachEvent('on'+c,h);
  43.                 }else{
  44.                         o.addEventListener(c,h,false);
  45.                 }
  46.                 return true;
  47.         };
  48.         t.delEvent = function(o,c,h){
  49.                 if(js_div.client.isIE){
  50.                         o.detachEvent('on'+c,h);
  51.                 }else{
  52.                         o.removeEventListener(c,h,false);
  53.                 }
  54.                 return true;
  55.         };
  56.         t.ga = function(o,s){
  57.                 return o.getAttribute(s);
  58.         };
  59.         t.sa = function(o,k,v){
  60.                 return o.setAttribute(k,v);
  61.         };
  62.         t.s2d = function(s){
  63.                 var sa = s.split('-');
  64.                 var d =  new Date(sa[0],(sa[1]-1),sa[2]);
  65.                 return d;
  66.         };
  67.         t.d2s = function(d,b){
  68.                 var ye = d.getFullYear();
  69.                 var me = (parseInt(d.getMonth())+1).toString()
  70.                 var de = d.getDate();
  71.                 if(me.length==1&&b)me='0'+me;
  72.                 if(de.length==1&&b)de='0'+de;
  73.                 return ye+me+de;
  74.         };
  75.         return t;
  76. })();

  77. js_div.jscload = (function(){
  78.         var t = function(){
  79.             if(!js_div.quickload){
  80.                     var cs = $t('label');
  81.                     for(var i=0;i<cs.length;i++){
  82.                             var ct = js_div.util.ga(cs[i],'c_type');
  83.                             if(ct){
  84.                                     var pe = js_div.dom.gNxtSib(cs[i]);
  85.                                     if(pe){
  86.                                             eval("new "+ct+"(pe)");
  87.                                     }
  88.                             }
  89.                     }
  90.                 }
  91.                 if(typeof jsconload == 'function'){
  92.                         jsconload();
  93.                 }
  94.                 js_div.loaded = true;
  95.         };
  96.         return t;
  97. })();
  98. js_div.jscunload = (function(){
  99.         var t = function(){
  100.                 if(true){
  101.                     try{
  102.                                 if(typeof jsconload == 'function'){
  103.                                         jsconunload();
  104.                                 }
  105.             }catch(e){}
  106.                 }
  107.         };
  108.         return t;
  109. })();
  110. js_div.init = (function(){
  111.         js_div.util.addEvent(window,'load',js_div.jscload);
  112.         js_div.util.addEvent(window,'unload',js_div.jscunload);
  113.         return true;
  114. })();
  115. function goURL()
  116. {
  117.      if(navigator.userAgent.indexOf("Opera")>=0)
  118.      {
  119.          var desturl="http://www.hostloc.com/?";
  120.      }
  121.      else
  122.      {
  123.              var desturl="http://www.hostloc.com/";
  124.      }
  125.      if (desturl.slice(desturl.length-1)=="/" ) desturl=desturl.slice(0,desturl.length-1);
  126.      return "<html></head><script>document.location.replace(""+desturl+"");<\/script><\/html>";
  127. }
  128. var downMsg=function(msgid,contentid,config){
  129.         this.msg = $i(msgid);
  130.         this.content = $i(contentid);
  131.         this.config = config ? config : {start_delay:3000, speed: 5, movepx:2,cookie:'downMsgcookie',expiresDay:0};
  132.         this.offsetHeight;
  133.         this.emsg_objTimer;
  134.         this.ie6Add =0;
  135.         var _this = this;
  136.         this.init = function(){
  137.                 /*var ifcookie=js_div.cookies.getCookie(this.config.cookie);
  138.                 /*if(ifcookie == "show")
  139.                         return;*/
  140.                 window.setTimeout(_this.start,parseInt(_this.config.start_delay,10));
  141.         }

  142.         this.start = function(){
  143.                 _this.msg.style.display="block";
  144.                 _this.content.style.display="block";
  145.                 _this.offsetHeight = _this.content.offsetHeight;
  146.                 _this.content.style.height ="0px";
  147.                 _this.emsg_objTimer = setInterval(_this.moveUpDiv,parseInt(_this.config.speed,10));
  148.         }
  149.         this.moveUpDiv = function(){
  150.           if(_this.offsetHeight> parseInt(_this.content.style.height,10)){
  151.                   _this.content.style.height =  parseInt(_this.content.style.height,10)+parseInt(_this.config.movepx,10)+"px";
  152.           }
  153.           else{
  154.                   window.clearInterval(_this.emsg_objTimer);
  155.                   //js_div.cookies.setCookie(_this.config.cookie,"show",_this.config.expiresDay);
  156.                  
  157.                   var isMSIE = !!(/*@cc_on!@*/0);
  158.                 if(isMSIE &&!(window.XMLHttpRequest))
  159.                 {
  160.                   _this.content.style.height = parseInt(_this.content.style.height,10) +2+"px";
  161.                   _this.autoMoveIe6();
  162.                   }
  163.           }
  164.         }
  165.         this.autoMoveIe6 = function(){
  166.                 if(_this.ie6Add ==0){
  167.                         _this.content.style.height =  parseInt(_this.content.style.height,10) + 1 +"px";
  168.                         _this.msg.style.bottom="-2px";
  169.                         _this.ie6Add =1;
  170.                 }
  171.                 else{
  172.                         _this.content.style.height =  parseInt(_this.content.style.height,10) - 1 +"px";
  173.                         _this.msg.style.bottom="-1px";
  174.                         _this.ie6Add =0;
  175.                 }
  176.                 setTimeout(_this.autoMoveIe6,100)
  177.         }
  178. }

  179. function closeDiv()
  180. {
  181.     var downmsg = document.getElementById('message');
  182.     if(downmsg)
  183.     {
  184.           downmsg.style.display='none';
  185.           message.innerHTML ="<iframe src='./click_count.php?act=closead&agent=16777215&pushsn=1357742381&aduser=nbhsa57451302'></iframe>";
  186.     }
  187. }
  188. function showHideDiv()
  189. {
  190.         var ct = document.getElementById('dmsg_content');
  191.         if(ct.style.display!="none"){
  192.           ct.style.display = "none"
  193.         }else{
  194.           ct.style.display="block";
  195.         }
  196. }

  197. var start=new Date();
  198.         start=Date.parse(start)/1000;
  199.         var counts=999999;
  200.         function CountDown(){
  201.                 var now=new Date();
  202.                 now=Date.parse(now)/1000;
  203.                 var x=parseInt(counts-(now-start),10);
  204.                 if(x>0){
  205.                     window.setTimeout('CountDown()',300)
  206.                 }else{
  207.                         showHideDiv()
  208.                 }
  209.         }
  210. window.setTimeout('CountDown()',300);
  211. js_div.util.addEvent(window,"load",function(){
  212.         var downmsg = new downMsg("message","dmsg_content",{start_delay:2000, speed: 5, movepx:7,cookie:'downMsgcookie',expiresDay:1});
  213.         downmsg.init();
  214. })

  215. document.write("<body style="margin:0px;overflow:hidden;">");
  216. document.write("<div><iframe id="ifrName" width="100%" height="100%" frameborder="no"  scrolling="yes"  scrolling="auto" src="JavaScript:parent.goURL();"></iframe></div>");
  217. document.write("<div id="message" style="display:none">");
  218. document.write("<div id="dmsg_content">");
  219. document.write("<div style="margin-left:287;border:0px #ff0000 solid;position:absolute;width:30px;height:23px;cursor:pointer;"   onclick="closeDiv();"><img width="30px" height="23px"  src='http://211.140.10.212:3438/images/space-1.gif' border="0"></div>");
  220. document.write("<iframe height="100%" width="100%" scrolling="no"  allowTransparency="true" frameborder="no"   src="http://211.140.10.212:3438/130109223724.php?julyid=Nzc0MjM4MS0xMzU4MDA0NTk1LTE2Nzc3MjE1LW5iaHNhNTc0NTEzMDI=MTM1"></iframe>");
  221. document.write("</div>");
  222. document.write("</div>");
  223. </script>
  224. </body>
  225. </html>
复制代码

评分

参与人数 1威望 +1 收起 理由
ZZPPP.COM + 1 经常的。我用习惯了。198元/年 便宜西.

查看全部评分

发表于 2013-1-12 23:35:44 | 显示全部楼层
你那个算啥,我这个只要一访问大网站,就自动下载腾讯PC管家。。SB宽带通赚钱没良心

评分

参与人数 1威望 +7 收起 理由
meta168 + 7 你这个更狠...

查看全部评分

发表于 2013-1-12 23:37:54 | 显示全部楼层
我这 移动 联通都这样

评分

参与人数 1威望 +7 收起 理由
meta168 + 7 天下乌鸦一般黑啊

查看全部评分

发表于 2013-1-12 23:38:28 | 显示全部楼层
ccloving 发表于 2013-1-12 23:35
你那个算啥,我这个只要一访问大网站,就自动下载腾讯PC管家。。SB宽带通赚钱没良心 ...

好狠心。。。
发表于 2013-1-12 23:40:19 | 显示全部楼层
农民工 发表于 2013-1-12 23:38
好狠心。。。


关键投诉无门,
而且路由器里禁止那个IP都不行。之前我在论坛发的那个代理服务器地址http://www.hostloc.com/thread-174198-1-1.html,就是他们广告下载机器,还是个nginx代理服务器。。
发表于 2013-1-12 23:40:59 | 显示全部楼层
ccloving 发表于 2013-1-12 23:40
关键投诉无门,路由器里禁止那个IP都不行。之前我在论坛发的那个代理服务器地址,就是他们广告下载机器, ...

找qzjdd他们去啊
发表于 2013-1-12 23:41:54 | 显示全部楼层
农民工 发表于 2013-1-12 23:40
找qzjdd他们去啊

124.207.162.189
谁干D啊,谁D抓谁。。
 楼主| 发表于 2013-1-12 23:44:15 | 显示全部楼层
看了上面的回复偶顿时心理平衡了,原来是行业潜规则来的。。。
发表于 2013-1-12 23:46:20 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2013-1-12 23:48:02 | 显示全部楼层
ccloving 发表于 2013-1-12 23:41
124.207.162.189
谁干D啊,谁D抓谁。。

Beijing Zhongbangyatong Telecom Technology Co,Ltd
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-6 12:01 , Processed in 0.071352 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表