V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
collen
V2EX  ›  程序员

虽然我拿到了它的 m38u 但是我还是不懂他是怎么做到的

  •  
  •   collen · 189 天前 · 952 次点击
    这是一个创建于 189 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://sflix.to/watch-tv/free-loki-hd-42258.4791523 屏蔽 js 是 https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.jshttps://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js 就不会跳了, 我用油猴写了 vue 和 window 的跳转都失效了,他是服务器给我跳走的吗

    honkew
        2
    honkew  
       189 天前
    你要干嘛
    你想解决什么问题

    先看看自己的提问
    pxiphx891
        3
    pxiphx891  
       189 天前
    不用上班吗同学们
    collen
        4
    collen  
    OP
       189 天前
    我想知道他按 F12 就跳到首页是怎么做到的,我要怎样才能让他停止跳转
    ymcHaojiubujian
        5
    ymcHaojiubujian  
       189 天前
    你想问的事切片器怎么实现的?
    ymcHaojiubujian
        6
    ymcHaojiubujian  
       189 天前
    看下这个

    function _0x39426c(e) {
    function t(e) {
    if ("string" == typeof e)
    return function(e) {}
    .constructor("while (true) {}").apply("counter");
    1 !== ("" + e / e).length || e % 20 == 0 ? function() {
    return !0
    }
    .constructor("debugger").call("action") : function() {
    return !1
    }
    .constructor("debugger").apply("stateObject"),
    t(++e)
    }
    try {
    if (e)
    return t;
    t(0)
    } catch (e) {}
    }
    setInterval(function() {
    _0x39426c()
    }, 4e3),
    collen
        7
    collen  
    OP
       189 天前
    上面的代码应该是
    (function anonymous(
    ) {
    debugger
    })
    调出 debugger 这个点调试就可以跳过了
    我看他代码顶端有个
    $.get("/ajax/verify?domain=" + window.location.hostname, function(e) {
    e.status || (window.location.href = e.redirectTo)
    }),
    {
    id: $(".detail_page-watch").attr("data-id"),
    type: $(".detail_page-watch").attr("data-type")
    })
    我觉得是请求接口的时候后端判断的,因为我把 verify 请求拦截了,他会在 3 种情况下跳,1 是播放的时候在 app.min.js 里面有个逻辑跳了,2 是请求具体视频接口的时候会跳走,3 是请求一个后端的接口也会跳走,我估计是前面的 js.cookie.min.js 这里 cookie 塞东西, 后端看到了给调走了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   835 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:47 · PVG 03:47 · LAX 12:47 · JFK 15:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.