PDD anti_content

直接上代码

930: function(t, e, n) {

            var i = n(836);

            e.__esModule = !0,

            e.default = void 0;

            var a, r, s, o = i(n(32)), f = n(793), h = 0, u = "", l = Math, d = Date;

            function c() {

                return new Promise((function(t) {

                    wx && wx.getStorage || t(""),

                    wx.getStorage({

                        key: "e488cb9fe650282",

                        success: function(e) {

                            if (!e || !e.data)

                                return "";

                            var n = JSON.parse(e.data);

                            u = n && n.a || "",

                            t(u)

                        },

                        fail: function(e) {

                            t("")

                        }

                    })

                }

                )).catch((function(t) {

                    return ""

                }

                ))

            }

            function _(t) {

                for (var e = "packN", n = t || {}, i = n.systemInfoAsync, a = n.fingerprintAsync, r = i || function() {

                    try {

                        return wx && wx.getSystemInfoSync ? wx.getSystemInfoSync() : {}

                    } catch (t) {

                        return {}

                    }

                }(), f = a || function() {

                    try {

                        if (!wx || !wx.getStorageSync)

                            return "";

                        var t = wx.getStorageSync("e488cb9fe650282");

                        if (!t || t === "" || t === "{}")

                            return "";

                        var e = JSON.parse(t);

                        return e && e.a || ""

                    } catch (t) {

                        return ""

                    }

                }() || u, h = r.version, l = r.platform, d = [].concat(v[e](), m[e](), y[e](), k[e]("scene"), b[e](), w[e](), k[e]("version", {

                    version: h

                }), k[e]("platform", {

                    platform: l

                }), k[e]("fingerprint", {

                    fingerprint: f

                }), p[e]()), c = d.length.toString(2).split(""), _ = 0; c.length < 16; _ += 1)

                    c.unshift("0");

                c = c.join("");

                var g = [];

                0 === d.length ? g.push(0, 0) : d.length > 0 && d.length <= 255 ? g.push(0, d.length) : d.length > 255 && g.push(parseInt(c.substring(0, 8), 2), parseInt(c.substring(8, 16), 2)),

                d = [].concat([3], [3, 0, 0], g, d);

                var S = o.default.deflate(d)

                  , x = [].map.call(S, (function(t) {

                    return String.fromCharCode(t)

                }

                ));

                return "3ak" + s.encode(x.join(""), s.budget)

            }

            var g, p = {

                init: function() {

                    p.data = f.GetNetworkType.networkTypeCache || {}

                },

                packN: function() {

                    return [].concat(s.ek(18, JSON.stringify(p.data)))

                }

            }, v = {

                init: function() {

                    v.data = function() {

                        var t = "undefined" == typeof process ? null : process

                          , e = [];

                        e[0] = t && t.versions && t.versions.modules ? 1 : 0;

                        for (var n = 0, i = 0; i < e.length; i++)

                            n += e[i] << i;

                        return n

                    }()

                },

                packN: function() {

                    return [].concat(s.ek(1), s.va(v.data))

                }

            }, m = {

                init: function() {

                    m.data = 0

                },

                packN: function() {

                    return [].concat(s.ek(4, m.data))

                }

            }, y = {

                init: function() {

                    y.data = "".concat(parseInt(l.random() * (l.pow(2, 52) + 1), 10) + parseInt(String(l.random() * (l.pow(2, 30) + 1)), 10), "-").concat(a)

                },

                packN: function() {

                    return y.init(),

                    [].concat(s.ek(6, y.data))

                }

            }, b = {

                init: function(t) {

                    b.data = t

                },

                packN: function() {

                    return [].concat(s.ek(9, b.data))

                }

            }, w = {

                init: function() {

                    w.data = d.now() - r

                },

                packN: function() {

                    return w.init(),

                    [].concat(s.ek(10, w.data))

                }

            }, k = {

                data: {},

                idx: {

                    platform: 14,

                    version: 12,

                    scene: 7,

                    fingerprint: 17

                },

                init: function(t) {

                    k.data = Object.assign(k.data, t)

                },

                packN: function(t, e) {

                    return e && k.init(e),

                    0 === (k.data[t] || "").length ? [] : [].concat(s.ek(k.idx[t], k.data[t]))

                }

            };

            function S() {

                var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};

                this.updateServerTime(t.serverTime || 879609302220),

                h = d.now(),

                c().then((function(t) {

                    u = t

                }

                )),

                function(t) {

                    [v, b, m, p].forEach((function(e) {

                        e.init(t)

                    }

                    ));

                    var e = (f.GetSceneAndTicket.init() || {}).scene;

                    k.init({

                        scene: e

                    })

                }(h)

            }

            S.prototype.updateServerTime = function(t) {

                r = d.now(),

                a = t

            }

            ,

            S.prototype.messageDepacketize = function() {

                return c(),

                m.data++,

                _()

            }

            ;

            var x = {

                setEncodeUtil: function(t) {

                    s = t,

                    g = new S

                },

                getInstance: function(t) {

                    return t.serverTime && g.updateServerTime(t.serverTime),

                    g

                }

            };

            e.default = x

        },

messageDepacketize 函数就是对外接口 调用此方法 返回anti_content

如有侵权请联系 wx 17607109181 删除

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值