吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1686|回复: 3
收起左侧

[求助] 百度翻译js逆向 document未定义 (和教程不一样啊) 求解是不是百度翻译改了是B....

[复制链接]
lihu5841314 发表于 2021-6-21 21:07
[Asm] 纯文本查看 复制代码
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`);
window = dom.window;
document = window.document;
XMLHttpRequest = window.XMLHttpRequest;
var require, define;
!function(e) {
    if (!require) {
        var r = document.getElementsByTagName("head")[0]
          , t = {}
          , n = {}
          , i = {}
          , a = {}
          , u = {}
          , o = {}
          , s = function(e, t) {
            for (var n = document.createDocumentFragment(), i = 0, u = e.length; u > i; i++) {
                var o = e[i].id
                  , s = e[i].url;
                if (!(s in a)) {
                    a[s] = !0;
                    var c = document.createElement("script");
                    t && !function(e, r) {
                        var n = setTimeout(function() {
                            t(r)
                        }, require.timeout);
                        e.onerror = function() {
                            clearTimeout(n),
                            t(r)
                        }
                        ;
                        var i = function() {
                            clearTimeout(n)
                        };
                        "onload"in e ? e.onload = i : e.onreadystatechange = function() {
                            ("loaded" === this.readyState || "complete" === this.readyState) && i()
                        }
                    }(c, o),
                    c.type = "text/javascript",
                    c.src = s,
                    n.appendChild(c)
                }
            }
            r.appendChild(n)
        }
          , c = function(e, r, n) {
            for (var i = [], a = 0, c = e.length; c > a; a++) {
                var l = e[a]
                  , p = t[l] || (t[l] = []);
                p.push(r);
                var f, d = u[l] || u[l + ".js"] || {}, h = d.pkg;
                f = h ? o[h].url || o[h].uri : d.url || d.uri || l,
                i.push({
                    id: l,
                    url: f
                })
            }
            s(i, n)
        };
        define = function(e, r) {
            e = e.replace(/\.js$/i, ""),
            n[e] = r;
            var i = t[e];
            if (i) {
                for (var a = 0, u = i.length; u > a; a++)
                    i[a]();
                delete t[e]
            }
        }
        ,
        require = function(e) {
            if (e && e.splice)
                return require.async.apply(this, arguments);
            e = require.alias(e);
            var r = i[e];
            if (r)
                return r.exports;
            var t = n[e];
            if (!t)
                throw "[ModJS] Cannot find module `" + e + "`";
            r = i[e] = {
                exports: {}
            };
            var a = "function" == typeof t ? t.apply(r, [require, r.exports, r]) : t;
            return a && (r.exports = a),
            r.exports
        }
        ,
        require.async = function(r, t, i) {
            function a(e) {
                for (var r, t = 0, i = e.length; i > t; t++) {
                    var o = require.alias(e[t]);
                    o in s || (s[o] = !0,
                    o in n ? (r = u[o] || u[o + ".js"],
                    r && "deps"in r && a(r.deps)) : (p.push(o),
                    l++,
                    r = u[o] || u[o + ".js"],
                    r && "deps"in r && a(r.deps)))
                }
            }
            function o() {
                if (0 === l--) {
                    for (var n = [], i = 0, a = r.length; a > i; i++)
                        n[i] = require(r[i]);
                    t && t.apply(e, n)
                }
            }
            "string" == typeof r && (r = [r]);
            var s = {}
              , l = 0
              , p = [];
            a(r),
            c(p, o, i),
            o()
        }
        ,
        require.ensure = function(e, r) {
            require.async(e, function() {
                r && r.call(this, require)
            })
        }
        ,
        require.resourceMap = function(e) {
            var r, t;
            t = e.res;
            for (r in t)
                t.hasOwnProperty(r) && (u[r] = t[r]);
            t = e.pkg;
            for (r in t)
                t.hasOwnProperty(r) && (o[r] = t[r])
        }
        ,
        require.loadJs = function(e) {
            if (!(e in a)) {
                a[e] = !0;
                var t = document.createElement("script");
                t.type = "text/javascript",
                t.src = e,
                r.appendChild(t)
            }
        }
        ,
        require.loadCss = function(e) {
            if (e.content) {
                var t = document.createElement("style");
                t.type = "text/css",
                t.styleSheet ? t.styleSheet.cssText = e.content : t.innerHTML = e.content,
                r.appendChild(t)
            } else if (e.url) {
                var n = document.createElement("link");
                n.href = e.url,
                n.rel = "stylesheet",
                n.type = "text/css",
                r.appendChild(n)
            }
        }
        ,
        require.alias = function(e) {
            return e.replace(/\.js$/i, "")
        }
        ,
        require.timeout = 5e3
    }
}(this);
function e(r) {
    var o = r.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g);
    if (null === o) {
        var t = r.length;
        t > 30 && (r = "" + r.substr(0, 10) + r.substr(Math.floor(t / 2) - 5, 10) + r.substr(-10, 10))
    } else {
        for (var e = r.split(/[\uD800-\uDBFF][\uDC00-\uDFFF]/), C = 0, h = e.length, f = []; h > C; C++)
            "" !== e[C] && f.push.apply(f, a(e[C].split(""))),
            C !== h - 1 && f.push(o[C]);
        var g = f.length;
        g > 30 && (r = f.slice(0, 10).join("") + f.slice(Math.floor(g / 2) - 5, Math.floor(g / 2) + 5).join("") + f.slice(-10).join(""))
    }
    var u = void 0
      , l = "" + String.fromCharCode(103) + String.fromCharCode(116) + String.fromCharCode(107);
    u = null !== i ? i : (i = window[l] || "") || "";
    for (var d = u.split("."), m = Number(d[0]) || 0, s = Number(d[1]) || 0, S = [], c = 0, v = 0; v < r.length; v++) {
        var A = r.charCodeAt(v);
        128 > A ? S[c++] = A : (2048 > A ? S[c++] = A >> 6 | 192 : (55296 === (64512 & A) && v + 1 < r.length && 56320 === (64512 & r.charCodeAt(v + 1)) ? (A = 65536 + ((1023 & A) << 10) + (1023 & r.charCodeAt(++v)),
        S[c++] = A >> 18 | 240,
        S[c++] = A >> 12 & 63 | 128) : S[c++] = A >> 12 | 224,
        S[c++] = A >> 6 & 63 | 128),
        S[c++] = 63 & A | 128)
    }
    for (var p = m, F = "" + String.fromCharCode(43) + String.fromCharCode(45) + String.fromCharCode(97) + ("" + String.fromCharCode(94) + String.fromCharCode(43) + String.fromCharCode(54)), D = "" + String.fromCharCode(43) + String.fromCharCode(45) + String.fromCharCode(51) + ("" + String.fromCharCode(94) + String.fromCharCode(43) + String.fromCharCode(98)) + ("" + String.fromCharCode(43) + String.fromCharCode(45) + String.fromCharCode(102)), b = 0; b < S.length; b++)
        p += S[b],
        p = n(p, F);
    return p = n(p, D),
    p ^= s,
    0 > p && (p = (2147483647 & p) + 2147483648),
    p %= 1e6,
    p.toString() + "." + (p ^ m)
}
var i = null;
t.exports = e

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

吾爱破解66 发表于 2021-6-21 22:17
会不会在其他JS 中
ysy2001 发表于 2021-6-22 06:37
QingYi. 发表于 2021-7-14 22:10
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-26 01:24

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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