• 请不要在回答技术问题时复制粘贴 AI 生成的内容
LimboRunner
V2EX  ›  程序员

跳转的同时重定向当前页,求教这是如何做到的

  •  
  •   LimboRunner · Jun 21, 2016 · 5799 views
    This topic created in 3791 days ago, the information mentioned may be changed or developed.
    15 replies  •  2016-06-22 07:32:21 +08:00
    iLtc
    iLtc
    Jun 21, 2016❤️4
    1
    我还真的在那里认真的研究了一会儿……

    这个页面加载的时候会载入 http://static.4458521.com/page/common-ie.js 这个文件,在控制台里面可以看到。

    这个文件的代码送去解密一下( http://tool.chinaz.com/js.aspx ),结果中包含

    document.writeln("<script language=javascript>window.opener.navigate(\'" + ie_url + "\');</script>");
    document.writeln("<script>if(parent.window.opener) parent.window.opener.location=\'" + ie_url + "\';</script>");

    这个会操作当前窗口的打开者还有父窗口的打开者执行跳转。

    所以说谷歌没有 Bug ,我就放心啦
    morethansean
    morethansean
    Jun 21, 2016
    2
    很常见的流氓做法,但记得以前这样做是会导致页面甚至网站严重降级的,一般很难搜出来这样的页面
    iamjs
    iamjs
    Jun 21, 2016
    3
    非常规做法。。能不用尽量不用吧。。
    LimboRunner
    LimboRunner
    OP
    Jun 21, 2016
    4
    @iLtc 竟然还可以改 opener 的 location ,用这个搞个钓鱼页面岂不是很方便?
    yongzhong
    yongzhong
    Jun 21, 2016
    5
    js window.history
    wavingclear
    wavingclear
    Jun 21, 2016
    6
    链接 Not safe for work
    naver1
    naver1
    Jun 21, 2016
    7
    好屌。。。
    exoticknight
    exoticknight
    Jun 21, 2016
    8
    请注明是车……幸亏我在宿舍打开= =
    aligo
    aligo
    Jun 21, 2016
    9
    加 `rel="noreferrer"`
    lz3259
    lz3259
    Jun 21, 2016
    10
    @wavingclear 你怎么不早说
    hillw4h
    hillw4h
    Jun 21, 2016
    11
    我去,随手一点,差点出大事
    vus520
    vus520
    Jun 21, 2016
    12
    谁又山寨了 1024

    号外, 1024 也用了 https ,可以翻墙了哟
    https://t66y.xxx
    zhouyg
    zhouyg
    Jun 21, 2016
    13
    这车发的,猝不及防啊。
    ArtsXiaoLu
    ArtsXiaoLu
    Jun 21, 2016
    14
    既然问题已经解答,就把这文章关上或删掉吧,被人利用总是不好的
    iLtc
    iLtc
    Jun 22, 2016
    15
    @LimboRunner 我也没想到过原来还可以这么用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 09:05 · PVG 17:05 · LAX 01:05 · JFK 04:05
    ♥ Do have faith in what you're doing.