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

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

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

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

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